Skip to content

Commit

Permalink
Merge pull request #1 from kppullin/basicPrinting
Browse files Browse the repository at this point in the history
Added basic printing support
  • Loading branch information
ataranto committed Sep 14, 2011
2 parents 1e38df4 + b6b64b4 commit 0350f11
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CefSharp/CefFormsWebBrowser.cpp
Expand Up @@ -56,6 +56,13 @@ namespace CefSharp
}
}

void CefFormsWebBrowser::Print()
{
WaitForInitialized();

_clientAdapter->GetCefBrowser()->GetMainFrame()->Print();
}

String^ CefFormsWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine)
{
WaitForInitialized();
Expand Down
1 change: 1 addition & 0 deletions CefSharp/CefFormsWebBrowser.h
Expand Up @@ -83,6 +83,7 @@ namespace CefSharp
void Forward();
void Reload();
void Reload(bool ignoreCache);
void Print();
String^ RunScript(String^ script, String^ scriptUrl, int startLine);
String^ RunScript(String^ script, String^ scriptUrl, int startLine, int timeout);

Expand Down
7 changes: 7 additions & 0 deletions CefSharp/CefWpfWebBrowser.cpp
Expand Up @@ -64,6 +64,13 @@ namespace CefSharp
}
}

void CefWpfWebBrowser::Print()
{
WaitForInitialized();

_clientAdapter->GetCefBrowser()->GetMainFrame()->Print();
}

String^ CefWpfWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine)
{
WaitForInitialized();
Expand Down
1 change: 1 addition & 0 deletions CefSharp/CefWpfWebBrowser.h
Expand Up @@ -106,6 +106,7 @@ namespace CefSharp
void Forward();
void Reload();
void Reload(bool ignoreCache);
void Print();
String^ RunScript(String^ script, String^ scriptUrl, int startLine);
String^ RunScript(String^ script, String^ scriptUrl, int startLine, int timeout);

Expand Down

0 comments on commit 0350f11

Please sign in to comment.