OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 | 10 |
11 class SkBitmap; | 11 class SkBitmap; |
12 class TabContents; | |
13 | 12 |
14 //////////////////////////////////////////////////////////////////////////////// | 13 //////////////////////////////////////////////////////////////////////////////// |
15 // | 14 // |
16 // A view to display a tab favicon or a throbber. | 15 // A view to display a tab favicon or a throbber. |
17 // | 16 // |
18 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
19 class TabIconView : public views::View { | 18 class TabIconView : public views::View { |
20 public: | 19 public: |
21 // Classes implement this interface to provide state for the TabIconView. | 20 // Classes implement this interface to provide state for the TabIconView. |
22 class TabIconViewModel { | 21 class TabIconViewModel { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 bool is_light_; | 63 bool is_light_; |
65 | 64 |
66 // Current frame of the throbber being painted. This is only used if | 65 // Current frame of the throbber being painted. This is only used if |
67 // throbber_running_ is true. | 66 // throbber_running_ is true. |
68 int throbber_frame_; | 67 int throbber_frame_; |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(TabIconView); | 69 DISALLOW_COPY_AND_ASSIGN(TabIconView); |
71 }; | 70 }; |
72 | 71 |
73 #endif // CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ | 72 #endif // CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_H_ |
OLD | NEW |