OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_TABS_TAB_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 154 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
155 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; | 155 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; |
156 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 156 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
157 | 157 |
158 // Overridden from views::ButtonListener: | 158 // Overridden from views::ButtonListener: |
159 virtual void ButtonPressed(views::Button* sender, | 159 virtual void ButtonPressed(views::Button* sender, |
160 const ui::Event& event) OVERRIDE; | 160 const ui::Event& event) OVERRIDE; |
161 | 161 |
162 // Overridden from views::ContextMenuController: | 162 // Overridden from views::ContextMenuController: |
163 virtual void ShowContextMenuForView(views::View* source, | 163 virtual void ShowContextMenuForView(views::View* source, |
164 const gfx::Point& point) OVERRIDE; | 164 const gfx::Point& point, |
| 165 ui::MenuSourceType source_type) OVERRIDE; |
165 | 166 |
166 // Overridden from views::View: | 167 // Overridden from views::View: |
167 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 168 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
168 virtual void Layout() OVERRIDE; | 169 virtual void Layout() OVERRIDE; |
169 virtual void OnThemeChanged() OVERRIDE; | 170 virtual void OnThemeChanged() OVERRIDE; |
170 virtual const char* GetClassName() const OVERRIDE; | 171 virtual const char* GetClassName() const OVERRIDE; |
171 virtual bool HasHitTestMask() const OVERRIDE; | 172 virtual bool HasHitTestMask() const OVERRIDE; |
172 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE; | 173 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE; |
173 virtual bool GetTooltipText(const gfx::Point& p, | 174 virtual bool GetTooltipText(const gfx::Point& p, |
174 string16* tooltip) const OVERRIDE; | 175 string16* tooltip) const OVERRIDE; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 static int font_height_; | 356 static int font_height_; |
356 | 357 |
357 // As the majority of the tabs are inactive, and painting tabs is slowish, | 358 // As the majority of the tabs are inactive, and painting tabs is slowish, |
358 // we cache a handful of the inactive tab backgrounds here. | 359 // we cache a handful of the inactive tab backgrounds here. |
359 static ImageCache* image_cache_; | 360 static ImageCache* image_cache_; |
360 | 361 |
361 DISALLOW_COPY_AND_ASSIGN(Tab); | 362 DISALLOW_COPY_AND_ASSIGN(Tab); |
362 }; | 363 }; |
363 | 364 |
364 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 365 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
OLD | NEW |