diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 02:00:53 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 02:00:53 +0000 |
commit | 7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10 (patch) | |
tree | 1070bdfc922ca45660dc6bf56b26fc19dfeba7d6 /chrome/browser/views/tab_icon_view.h | |
parent | f47c61458a0c89c9ec57b3bb3a51d4ef46528ca6 (diff) | |
download | chromium_src-7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10.zip chromium_src-7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10.tar.gz chromium_src-7a16aeeb28850afdf5d512cc2e4bb2e58f4b1c10.tar.bz2 |
Last couple of bits of new-frame related cleanup:
- Remove frame_util.cc, moving functions to BrowserList (endsession) and BrowserView (GetBrowserWindowForHWND)
- Tidy up interface for TabIconView model. The model now sources only the information it needs (loading state and favicon).
- Replace BrowserType class with an enum on Browser.
http://crbug.com/2320
http://crbug.com/3363
Review URL: http://codereview.chromium.org/10786
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5596 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_; |