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

Unified Diff: chrome/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: '' 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: chrome/browser/renderer_host/render_message_filter.h
diff --git a/chrome/browser/renderer_host/render_message_filter.h b/chrome/browser/renderer_host/render_message_filter.h
index ff50fab7ea028632cd62ea51f687e6dc60f59213..31351081c24a22e934750af13ccb45da27bf6188 100644
--- a/chrome/browser/renderer_host/render_message_filter.h
+++ b/chrome/browser/renderer_host/render_message_filter.h
@@ -272,6 +272,17 @@ 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, IPC::Message* reply_msg);
+
+ // 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