- 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:
Marshall Greenblatt
2010-07-20 13:28:44 +00:00
parent 0e29c2e840
commit 38ded6eec6
5 changed files with 16 additions and 2 deletions

View File

@@ -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());