diff options
Diffstat (limited to 'chrome/browser/printing/print_view_manager.h')
-rw-r--r-- | chrome/browser/printing/print_view_manager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/printing/print_view_manager.h b/chrome/browser/printing/print_view_manager.h index 58fcefb..d75e3d8 100644 --- a/chrome/browser/printing/print_view_manager.h +++ b/chrome/browser/printing/print_view_manager.h @@ -33,6 +33,10 @@ class PrintViewManager : public content::NotificationObserver, explicit PrintViewManager(TabContentsWrapper* tab); virtual ~PrintViewManager(); + // Override the title for this PrintViewManager's PrintJobs using the title + // in |tab_contents|. + void OverrideTitle(TabContents* tab_contents); + // Prints the current document immediately. Since the rendering is // asynchronous, the actual printing will not be completed on the return of // this function. Returns false if printing is impossible at the moment. @@ -61,6 +65,9 @@ class PrintViewManager : public content::NotificationObserver, // must be NULL if |observer| is non-NULL. void set_observer(PrintViewManagerObserver* observer); + // Reset |is_title_overridden_| to false. + void ResetTitleOverride(); + // PrintedPagesSource implementation. virtual string16 RenderSourceName() OVERRIDE; @@ -161,6 +168,10 @@ class PrintViewManager : public content::NotificationObserver, bool expecting_first_page_; #endif + // Title override. + bool is_title_overridden_; + string16 overridden_title_; + // Weak pointer to an observer that is notified when the print dialog is // shown. PrintViewManagerObserver* observer_; |