Fix print() not working
This commit is contained in:
parent
86215d4300
commit
864a23f72b
2 changed files with 6 additions and 3 deletions
|
@ -194,7 +194,9 @@ void PrintViewManagerBase::OnShowInvalidPrinterSettingsError() {
|
||||||
LOG(ERROR) << "Invalid printer settings";
|
LOG(ERROR) << "Invalid printer settings";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PrintViewManagerBase::OnMessageReceived(const IPC::Message& message) {
|
bool PrintViewManagerBase::OnMessageReceived(
|
||||||
|
const IPC::Message& message,
|
||||||
|
content::RenderFrameHost* render_frame_host) {
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
IPC_BEGIN_MESSAGE_MAP(PrintViewManagerBase, message)
|
IPC_BEGIN_MESSAGE_MAP(PrintViewManagerBase, message)
|
||||||
IPC_MESSAGE_HANDLER(PrintHostMsg_DidGetPrintedPagesCount,
|
IPC_MESSAGE_HANDLER(PrintHostMsg_DidGetPrintedPagesCount,
|
||||||
|
|
|
@ -54,10 +54,11 @@ class PrintViewManagerBase : public content::NotificationObserver,
|
||||||
std::unique_ptr<IPC::Message> message);
|
std::unique_ptr<IPC::Message> message);
|
||||||
|
|
||||||
// Terminates or cancels the print job if one was pending.
|
// Terminates or cancels the print job if one was pending.
|
||||||
virtual void RenderProcessGone(base::TerminationStatus status) override;
|
void RenderProcessGone(base::TerminationStatus status) override;
|
||||||
|
|
||||||
// content::WebContentsObserver implementation.
|
// content::WebContentsObserver implementation.
|
||||||
virtual bool OnMessageReceived(const IPC::Message& message) override;
|
bool OnMessageReceived(const IPC::Message& message,
|
||||||
|
content::RenderFrameHost* render_frame_host) override;
|
||||||
|
|
||||||
// IPC Message handlers.
|
// IPC Message handlers.
|
||||||
virtual void OnPrintingFailed(int cookie);
|
virtual void OnPrintingFailed(int cookie);
|
||||||
|
|
Loading…
Reference in a new issue