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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 6775013: PrintPreview: While printing the preview data, set the initiator tab title as print job name. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated the CL. Created 9 years, 9 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/renderer/print_web_view_helper.h
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 596740c5ae6d28144289579ebbf507ba3aee9da6..e7c2c80b4dced197efcc2a76fffbbd4f6eadd05e 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -241,6 +241,12 @@ class PrintWebViewHelper : public RenderViewObserver ,
int user_cancelled_scripted_print_count_;
bool is_preview_;
+ // For preview printing, |job_title_| is initiator tab title. Print view
+ // manager will use this value to set the print job name.
+ // For normal printing, |job_title_| is empty. Print view manager will use
+ // the current tab title as print job name.
stuartmorgan 2011/03/30 22:59:17 Again, too much detail for a header.
+ string16 job_title_;
+
DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
};

Powered by Google App Engine
This is Rietveld 408576698