Move printToPDF API to WebContents.
Also expose in webview.
This commit is contained in:
parent
2597ded985
commit
c0a6cb69bf
6 changed files with 22 additions and 23 deletions
|
@ -265,12 +265,6 @@ void NativeWindow::Print(bool silent, bool print_background) {
|
|||
PrintNow(silent, print_background);
|
||||
}
|
||||
|
||||
void NativeWindow::PrintToPDF(const mate::Dictionary& options,
|
||||
const PrintToPDFCallback& callback) {
|
||||
printing::PrintPreviewMessageHandler::FromWebContents(GetWebContents())->
|
||||
PrintToPDF(options, callback);
|
||||
}
|
||||
|
||||
void NativeWindow::ShowDefinitionForSelection() {
|
||||
NOTIMPLEMENTED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue