mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add window.print() JavaScript support.
- Add File -> Print option to cefclient. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@89 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -185,6 +185,12 @@ void BrowserWebViewDelegate::didAddMessageToConsole(
|
||||
}
|
||||
}
|
||||
|
||||
void BrowserWebViewDelegate::printPage(WebFrame* frame) {
|
||||
if(frame == NULL)
|
||||
frame = browser_->GetWebView()->mainFrame();
|
||||
browser_->UIT_PrintPages(frame);
|
||||
}
|
||||
|
||||
void BrowserWebViewDelegate::didStartLoading() {
|
||||
// clear the title so we can tell if it wasn't provided by the page
|
||||
browser_->UIT_SetTitle(std::wstring());
|
||||
|
Reference in New Issue
Block a user