Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: chrome/browser/ui/views/tab_icon_view_model.h

Issue 10736063: views: Extract TabIconViewModel into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/tab_icon_view.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_MODEL_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_MODEL_H_
7
8 namespace gfx {
9 class ImageSkia;
10 }
11
12 namespace chrome {
13
14 // Classes implement this interface to provide state for the TabIconView.
15 class TabIconViewModel {
16 public:
17 // Returns true if the TabIconView should show a loading animation.
18 virtual bool ShouldTabIconViewAnimate() const = 0;
19
20 // Returns the favicon to display in the icon view
21 virtual gfx::ImageSkia GetFaviconForTabIconView() = 0;
22
23 protected:
24 virtual ~TabIconViewModel() {}
25 };
26
27 } // namespace chrome
28
29 #endif // CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_icon_view.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698