Expose Print API to webContents and webView.
Also move the print implementation from window to webContents.
This commit is contained in:
parent
57580e00f9
commit
47eac062f6
11 changed files with 62 additions and 65 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "atom/browser/web_dialog_helper.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "chrome/browser/printing/print_preview_message_handler.h"
|
||||
#include "chrome/browser/printing/print_view_manager_basic.h"
|
||||
#include "chrome/browser/ui/browser_dialogs.h"
|
||||
#include "content/public/browser/child_process_security_policy.h"
|
||||
#include "content/public/browser/render_process_host.h"
|
||||
|
@ -103,6 +104,7 @@ void CommonWebContentsDelegate::InitWithWebContents(
|
|||
owner_window_ = owner_window;
|
||||
web_contents->SetDelegate(this);
|
||||
|
||||
printing::PrintViewManagerBasic::CreateForWebContents(web_contents);
|
||||
printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents);
|
||||
|
||||
// Create InspectableWebContents.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue