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

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 a0339de7b1570586c780068addb8096c1b7429c2..f59ca22a0fbe66632fbacc93da4950b20d8d2507 100644
--- a/chrome/browser/renderer_host/render_message_filter.h
+++ b/chrome/browser/renderer_host/render_message_filter.h
@@ -37,6 +37,7 @@ class NotificationsPrefsCache;
class Profile;
class RenderWidgetHelper;
class URLRequestContextGetter;
+class Value;
struct ViewHostMsg_CreateWindow_Params;
struct ViewHostMsg_CreateWorker_Params;
@@ -272,6 +273,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