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_BASE_TAB_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_BASE_TAB_H_ |
6 #define CHROME_BROWSER_VIEWS_TABS_BASE_TAB_H_ | 6 #define CHROME_BROWSER_VIEWS_TABS_BASE_TAB_H_ |
7 | 7 |
8 #include "app/animation.h" | 8 #include "app/animation.h" |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // views::ButtonListener overrides: | 121 // views::ButtonListener overrides: |
122 virtual void ButtonPressed(views::Button* sender, | 122 virtual void ButtonPressed(views::Button* sender, |
123 const views::Event& event); | 123 const views::Event& event); |
124 | 124 |
125 // views::ContextMenuController overrides: | 125 // views::ContextMenuController overrides: |
126 virtual void ShowContextMenu(views::View* source, | 126 virtual void ShowContextMenu(views::View* source, |
127 const gfx::Point& p, | 127 const gfx::Point& p, |
128 bool is_mouse_gesture); | 128 bool is_mouse_gesture); |
129 | 129 |
130 // views::View overrides: | 130 // views::View overrides: |
131 virtual void ThemeChanged(); | 131 virtual void OnThemeChanged(); |
132 | 132 |
133 // Returns the bounds of the title. | 133 // Returns the bounds of the title. |
134 virtual const gfx::Rect& title_bounds() const = 0; | 134 virtual const gfx::Rect& title_bounds() const = 0; |
135 | 135 |
136 // Close button size. | 136 // Close button size. |
137 static int close_button_height() { return close_button_height_; } | 137 static int close_button_height() { return close_button_height_; } |
138 static int close_button_width() { return close_button_width_; } | 138 static int close_button_width() { return close_button_width_; } |
139 | 139 |
140 // Size (width/height) of the loading animation. | 140 // Size (width/height) of the loading animation. |
141 static int loading_animation_size() { return loading_animation_size_; } | 141 static int loading_animation_size() { return loading_animation_size_; } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // Size of the loading animation frames. | 214 // Size of the loading animation frames. |
215 static int loading_animation_size_; | 215 static int loading_animation_size_; |
216 | 216 |
217 static gfx::Font* font_; | 217 static gfx::Font* font_; |
218 static int font_height_; | 218 static int font_height_; |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(BaseTab); | 220 DISALLOW_COPY_AND_ASSIGN(BaseTab); |
221 }; | 221 }; |
222 | 222 |
223 #endif // CHROME_BROWSER_VIEWS_TABS_BASE_TAB_H_ | 223 #endif // CHROME_BROWSER_VIEWS_TABS_BASE_TAB_H_ |
OLD | NEW |