Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2283)

Unified Diff: chrome/browser/printing/print_preview_message_handler.cc

Issue 388783003: Add support to send print preset options in one message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Android trybot failure Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/print_preview_message_handler.cc
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc
index e603806de61259ea4fa5bec2d210a63b40d5b627..a861540bd0c5a33a92a58ac36e9336411673f031 100644
--- a/chrome/browser/printing/print_preview_message_handler.cc
+++ b/chrome/browser/printing/print_preview_message_handler.cc
@@ -194,11 +194,12 @@ void PrintPreviewMessageHandler::OnInvalidPrinterSettings(int document_cookie) {
print_preview_ui->OnInvalidPrinterSettings();
}
-void PrintPreviewMessageHandler::OnPrintPreviewScalingDisabled() {
+void PrintPreviewMessageHandler::OnSetOptionsFromDocument(
+ const PrintHostMsg_SetOptionsFromDocument_Params& params) {
PrintPreviewUI* print_preview_ui = GetPrintPreviewUI();
if (!print_preview_ui)
return;
- print_preview_ui->OnPrintPreviewScalingDisabled();
+ print_preview_ui->OnSetOptionsFromDocument(params);
}
bool PrintPreviewMessageHandler::OnMessageReceived(
@@ -221,8 +222,8 @@ bool PrintPreviewMessageHandler::OnMessageReceived(
OnPrintPreviewCancelled)
IPC_MESSAGE_HANDLER(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
OnInvalidPrinterSettings)
- IPC_MESSAGE_HANDLER(PrintHostMsg_PrintPreviewScalingDisabled,
- OnPrintPreviewScalingDisabled)
+ IPC_MESSAGE_HANDLER(PrintHostMsg_SetOptionsFromDocument,
+ OnSetOptionsFromDocument)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698