summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_process_impl.h
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-16 20:34:16 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-16 20:34:16 +0000
commitdbeebd5ee33f26e2f719e87546f51371a63801b5 (patch)
treefd9627decf2a31c88a866ff46139d4e9b302dfb5 /chrome/browser/browser_process_impl.h
parent3cd6bbf33030ba47b73a10d503e97fba3de2095f (diff)
downloadchromium_src-dbeebd5ee33f26e2f719e87546f51371a63801b5.zip
chromium_src-dbeebd5ee33f26e2f719e87546f51371a63801b5.tar.gz
chromium_src-dbeebd5ee33f26e2f719e87546f51371a63801b5.tar.bz2
Implement print preview tab controller.
For print preview, a PP tab should be linked with the tab that initiated the printing operation. If the tab initiates a second printing operation while the first print preview tab is still open, that PP tab should be focused/activated. There may be more than one PP tab open. Hook ctrl+p to show print preview tab. BUG=59653, 57893 TEST=new unittest created. Review URL: http://codereview.chromium.org/4338001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.h')
-rw-r--r--chrome/browser/browser_process_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index 727cfb2..0aeb976 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -62,6 +62,7 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
virtual unsigned int ReleaseModule();
virtual bool IsShuttingDown();
virtual printing::PrintJobManager* print_job_manager();
+ virtual printing::PrintPreviewTabController* print_preview_tab_controller();
virtual GoogleURLTracker* google_url_tracker();
virtual IntranetRedirectDetector* intranet_redirect_detector();
virtual const std::string& GetApplicationLocale();
@@ -110,6 +111,7 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
void CreateNotificationUIManager();
void CreateStatusTrayManager();
void CreateTabCloseableStateWatcher();
+ void CreatePrintPreviewTabController();
#if defined(IPC_MESSAGE_LOG_ENABLED)
void SetIPCLoggingEnabledForChildProcesses(bool enabled);
@@ -158,6 +160,9 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
bool created_sidebar_manager_;
scoped_refptr<SidebarManager> sidebar_manager_;
+ scoped_refptr<printing::PrintPreviewTabController>
+ print_preview_tab_controller_;
+
scoped_ptr<Clipboard> clipboard_;
// Manager for desktop notification UI.