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

Unified Diff: chrome/browser/printing/print_view_manager.h

Issue 6783005: Print Preview: Set a print job's title and url correctly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: tab helpers stay with friends Created 9 years, 8 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/printing/print_view_manager.h
===================================================================
--- chrome/browser/printing/print_view_manager.h (revision 80726)
+++ chrome/browser/printing/print_view_manager.h (working copy)
@@ -32,6 +32,10 @@
explicit PrintViewManager(TabContents* tab_contents);
virtual ~PrintViewManager();
+ // Override the title for this PrintViewManager's PrintJobs using the title
+ // in |tab_contents|.
+ void OverrideTitle(TabContents* tab_contents);
+
// PrintedPagesSource implementation.
virtual string16 RenderSourceName();
virtual GURL RenderSourceUrl();
@@ -128,6 +132,10 @@
bool expecting_first_page_;
#endif
+ // Title override.
+ bool is_title_overridden_;
+ string16 overridden_title_;
+
DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
};
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698