OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_TABS_SIDE_TAB_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_SIDE_TAB_H_ |
6 #define CHROME_BROWSER_VIEWS_TABS_SIDE_TAB_H_ | 6 #define CHROME_BROWSER_VIEWS_TABS_SIDE_TAB_H_ |
7 | 7 |
8 #include "app/gfx/font.h" | |
9 #include "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
10 #include "chrome/browser/views/tabs/side_tab_strip_model.h" | 9 #include "chrome/browser/views/tabs/side_tab_strip_model.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 11 #include "gfx/font.h" |
12 #include "views/controls/button/button.h" | 12 #include "views/controls/button/button.h" |
13 #include "views/view.h" | 13 #include "views/view.h" |
14 | 14 |
15 class SideTab; | 15 class SideTab; |
16 | 16 |
17 class SideTabModel { | 17 class SideTabModel { |
18 public: | 18 public: |
19 // Returns metadata about the specified |tab|. | 19 // Returns metadata about the specified |tab|. |
20 virtual string16 GetTitle(SideTab* tab) const = 0; | 20 virtual string16 GetTitle(SideTab* tab) const = 0; |
21 virtual SkBitmap GetIcon(SideTab* tab) const = 0; | 21 virtual SkBitmap GetIcon(SideTab* tab) const = 0; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // The current network state for this tab. | 85 // The current network state for this tab. |
86 SideTabStripModel::NetworkState current_state_; | 86 SideTabStripModel::NetworkState current_state_; |
87 | 87 |
88 // The current index into the Animation image strip. | 88 // The current index into the Animation image strip. |
89 int loading_animation_frame_; | 89 int loading_animation_frame_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(SideTab); | 91 DISALLOW_COPY_AND_ASSIGN(SideTab); |
92 }; | 92 }; |
93 | 93 |
94 #endif // CHROME_BROWSER_VIEWS_TABS_SIDE_TAB_H_ | 94 #endif // CHROME_BROWSER_VIEWS_TABS_SIDE_TAB_H_ |
OLD | NEW |