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

Unified Diff: content/browser/renderer_host/render_message_filter.h

Issue 6533006: Print Preview: Hook up the print button to initiate printing without displaying a print dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed review comments. Created 9 years, 10 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: content/browser/renderer_host/render_message_filter.h
diff --git a/content/browser/renderer_host/render_message_filter.h b/content/browser/renderer_host/render_message_filter.h
index b8214665dec3984664ea9bb7800264d51cc6481f..4e198e6969d2805c8d203a9d00dd6f72a6a4a7c2 100644
--- a/content/browser/renderer_host/render_message_filter.h
+++ b/content/browser/renderer_host/render_message_filter.h
@@ -60,6 +60,7 @@ class PrintJobManager;
}
struct ViewHostMsg_ScriptedPrint_Params;
+struct ViewMsg_Print_Params;
// This class filters out incoming IPC messages for the renderer process on the
// IPC thread.
@@ -272,6 +273,18 @@ class RenderMessageFilter : public BrowserMessageFilter,
scoped_refptr<printing::PrinterQuery> printer_query,
IPC::Message* reply_msg);
+ // Get the current print settings right here synchronously.
+ void OnGetCurrentPrintSettings(int document_cookie,
+ ViewMsg_Print_Params* params);
+
+ // Update current print settings with new |job_settings|.
+ void OnUpdatePrintSettings(int document_cookie,
+ const std::string& job_settings,
+ IPC::Message* reply_msg);
+ void OnUpdatePrintSettingsReply(
+ scoped_refptr<printing::PrinterQuery> printer_query,
+ IPC::Message* reply_msg);
+
// A javascript code requested to print the current page. The renderer host
// have to show to the user the print dialog and returns the selected print
// settings.

Powered by Google App Engine
This is Rietveld 408576698