diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 19:02:33 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 19:02:33 +0000 |
commit | 79d8f0d3a8143524d2ac10455fab15f23237ac9b (patch) | |
tree | 95bb786dabcbaff2b30a445b35731939111f8a03 /chrome/browser/ui | |
parent | cf70bb653f30cc5979306d95a49006af314434c9 (diff) | |
download | chromium_src-79d8f0d3a8143524d2ac10455fab15f23237ac9b.zip chromium_src-79d8f0d3a8143524d2ac10455fab15f23237ac9b.tar.gz chromium_src-79d8f0d3a8143524d2ac10455fab15f23237ac9b.tar.bz2 |
Cleanup: Stop using PrintPreviewMessageHandler in contents.
BUG=76795
TEST=none
Review URL: http://codereview.chromium.org/6676082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r-- | chrome/browser/ui/tab_contents/tab_contents_wrapper.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/tab_contents/tab_contents_wrapper.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc index ad5b5a1..9ee3058 100644 --- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc +++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc @@ -13,6 +13,7 @@ #include "chrome/browser/password_manager_delegate_impl.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/prerender/prerender_observer.h" +#include "chrome/browser/printing/print_preview_message_handler.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" #include "chrome/browser/ui/find_bar/find_tab_helper.h" @@ -60,6 +61,7 @@ TabContentsWrapper::TabContentsWrapper(TabContents* contents) // Create the per-tab observers. file_select_observer_.reset(new FileSelectObserver(contents)); prerender_observer_.reset(new prerender::PrerenderObserver(contents)); + print_preview_.reset(new printing::PrintPreviewMessageHandler(contents)); } TabContentsWrapper::~TabContentsWrapper() { diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.h b/chrome/browser/ui/tab_contents/tab_contents_wrapper.h index 4baec54..c0af227 100644 --- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.h +++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.h @@ -6,6 +6,8 @@ #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ #pragma once +#include <string> + #include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/scoped_ptr.h" @@ -49,7 +51,7 @@ class TabContentsWrapper : public NotificationObserver, // Initial title assigned to NavigationEntries from Navigate. static string16 GetDefaultTitle(); - // Returns a human-readable description the tab's loading state. + // Returns a human-readable description the tab's loading state. string16 GetStatusText() const; // Create a TabContentsWrapper with the same state as this one. The returned @@ -134,6 +136,9 @@ class TabContentsWrapper : public NotificationObserver, // Whether the current URL is starred. bool is_starred_; + // Handles Print Preview messages. + scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; + // Tab Helpers --------------------------------------------------------------- // (These provide API for callers and have a getter function listed in the // "Tab Helpers" section in the member functions area, above.) |