diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 02:27:16 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 02:27:16 +0000 |
commit | 299dabdd2178ac3126282ac854da86b6cd84be02 (patch) | |
tree | 4626d596651704ec7b467d60c011da7efe18dcda /chrome/browser/views/tab_icon_view.h | |
parent | 2758136c0f073eacbb2943d5029b90eb4b1e5512 (diff) | |
download | chromium_src-299dabdd2178ac3126282ac854da86b6cd84be02.zip chromium_src-299dabdd2178ac3126282ac854da86b6cd84be02.tar.gz chromium_src-299dabdd2178ac3126282ac854da86b6cd84be02.tar.bz2 |
Land this change again now I've fixed the crash.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tab_icon_view.h')
-rw-r--r-- | chrome/browser/views/tab_icon_view.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/views/tab_icon_view.h b/chrome/browser/views/tab_icon_view.h index 11b22d4..43302228 100644 --- a/chrome/browser/views/tab_icon_view.h +++ b/chrome/browser/views/tab_icon_view.h @@ -16,19 +16,19 @@ class TabContents; //////////////////////////////////////////////////////////////////////////////// class TabIconView : public views::View { public: - class TabContentsProvider { + // Classes implement this interface to provide state for the TabIconView. + class TabIconViewModel { public: - // Should return the current tab contents this TabIconView object is - // representing. - virtual TabContents* GetCurrentTabContents() = 0; + // Returns true if the TabIconView should show a loading animation. + virtual bool ShouldTabIconViewAnimate() const = 0; // Returns the favicon to display in the icon view - virtual SkBitmap GetFavIcon() = 0; + virtual SkBitmap GetFavIconForTabIconView() = 0; }; static void InitializeIfNeeded(); - explicit TabIconView(TabContentsProvider* provider); + explicit TabIconView(TabIconViewModel* provider); virtual ~TabIconView(); // Invoke whenever the tab state changes or the throbber should update. @@ -45,8 +45,8 @@ class TabIconView : public views::View { void PaintThrobber(ChromeCanvas* canvas); void PaintFavIcon(ChromeCanvas* canvas, const SkBitmap& bitmap); - // Our provider of current tab contents. - TabContentsProvider* provider_; + // Our model. + TabIconViewModel* model_; // Whether the throbber is running. bool throbber_running_; |