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

Unified Diff: chrome/browser/renderer_host/render_view_host.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_view_host.h
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
index 88ff1df821dec0dd71d3159a41a1ce8e746aca69..a429695b031487c00a727e9263805da6dfdca9df 100644
--- a/chrome/browser/renderer_host/render_view_host.h
+++ b/chrome/browser/renderer_host/render_view_host.h
@@ -329,6 +329,10 @@ class RenderViewHost : public RenderWidgetHost {
// Prints the node that's under the context menu.
void PrintNodeUnderContextMenu();
+ // Triggers printing of the preview PDF. |job_settings| is a json string that
+ // contains print job settings information.
+ void PrintForPrintPreview(const std::string& job_settings);
+
// Copies the image at the specified point.
void CopyImageAt(int x, int y);

Powered by Google App Engine
This is Rietveld 408576698