| Index: chrome/browser/printing/print_view_manager.h
|
| ===================================================================
|
| --- chrome/browser/printing/print_view_manager.h (revision 110058)
|
| +++ chrome/browser/printing/print_view_manager.h (working copy)
|
| @@ -33,6 +33,10 @@
|
| 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 @@
|
| // 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 @@
|
| 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_;
|
|
|