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

Unified Diff: chrome/common/print_messages.h

Issue 478183005: Added PrintingContext::Delegate to get parent view handle and application locale. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/common/print_messages.h
diff --git a/chrome/common/print_messages.h b/chrome/common/print_messages.h
index eabfc292f21befe1bcdc178b18e2489160815dd1..36ea42141dc3cf909748d694903593b70f060ae9 100644
--- a/chrome/common/print_messages.h
+++ b/chrome/common/print_messages.h
@@ -381,24 +381,26 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage,
PrintHostMsg_DidPrintPage_Params /* page content */)
// The renderer wants to know the default print settings.
-IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings,
- PrintMsg_Print_Params /* default_settings */)
+IPC_SYNC_MESSAGE_CONTROL1_1(PrintHostMsg_GetDefaultPrintSettings,
+ int /* render_view_id */,
+ PrintMsg_Print_Params /* default_settings */)
// The renderer wants to update the current print settings with new
// |job_settings|.
-IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_UpdatePrintSettings,
- int /* document_cookie */,
- base::DictionaryValue /* job_settings */,
- PrintMsg_PrintPages_Params /* current_settings */)
+IPC_SYNC_MESSAGE_CONTROL3_1(PrintHostMsg_UpdatePrintSettings,
+ int /* render_view_id */,
+ int /* document_cookie */,
+ base::DictionaryValue /* job_settings */,
+ PrintMsg_PrintPages_Params /* current_settings */)
// It's the renderer that controls the printing process when it is generated
// by javascript. This step is about showing UI to the user to select the
// final print settings. The output parameter is the same as
// ViewMsg_PrintPages which is executed implicitly.
-IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint,
- PrintHostMsg_ScriptedPrint_Params,
- PrintMsg_PrintPages_Params
- /* settings chosen by the user*/)
+IPC_SYNC_MESSAGE_CONTROL2_1(PrintHostMsg_ScriptedPrint,
+ int /* render_view_id */,
+ PrintHostMsg_ScriptedPrint_Params,
+ PrintMsg_PrintPages_Params /* user settings*/)
#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
// Asks the browser to create a temporary file for the renderer to fill

Powered by Google App Engine
This is Rietveld 408576698