Permalink
Browse files

Merge pull request #1 from kppullin/basicPrinting

Added basic printing support
  • Loading branch information...
2 parents 1e38df4 + b6b64b4 commit 0350f11ba3920b80876c52f175d4fe2350050e03 @ataranto ataranto committed Sep 14, 2011
@@ -56,6 +56,13 @@ namespace CefSharp
}
}
+ void CefFormsWebBrowser::Print()
+ {
+ WaitForInitialized();
+
+ _clientAdapter->GetCefBrowser()->GetMainFrame()->Print();
+ }
+
String^ CefFormsWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine)
{
WaitForInitialized();
@@ -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);
@@ -64,6 +64,13 @@ namespace CefSharp
}
}
+ void CefWpfWebBrowser::Print()
+ {
+ WaitForInitialized();
+
+ _clientAdapter->GetCefBrowser()->GetMainFrame()->Print();
+ }
+
String^ CefWpfWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine)
{
WaitForInitialized();
@@ -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);

0 comments on commit 0350f11

Please sign in to comment.