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

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

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_view_host.cc
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 88c47467b86b5ea0c3409d5e7c1e3397667d1338..648691f295d82cdfa5565657f2d872d3cded6071 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1261,8 +1261,8 @@ void RenderViewHost::PrintNodeUnderContextMenu() {
Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id()));
}
-void RenderViewHost::PrintForPrintPreview() {
- Send(new ViewMsg_PrintForPrintPreview(routing_id()));
+void RenderViewHost::PrintForPrintPreview(const std::string& job_settings) {
+ Send(new ViewMsg_PrintForPrintPreview(routing_id(), job_settings));
}
void RenderViewHost::OnMsgStartDragging(

Powered by Google App Engine
This is Rietveld 408576698