| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Overridden from ui::AnimationDelegate: | 153 // Overridden from ui::AnimationDelegate: |
| 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( |
| 164 const gfx::Point& point) OVERRIDE; | 164 views::View* source, |
| 165 const gfx::Point& point, |
| 166 ui::ContextMenuSourceType source_type) OVERRIDE; |
| 165 | 167 |
| 166 // Overridden from views::View: | 168 // Overridden from views::View: |
| 167 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 169 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 168 virtual void Layout() OVERRIDE; | 170 virtual void Layout() OVERRIDE; |
| 169 virtual void OnThemeChanged() OVERRIDE; | 171 virtual void OnThemeChanged() OVERRIDE; |
| 170 virtual const char* GetClassName() const OVERRIDE; | 172 virtual const char* GetClassName() const OVERRIDE; |
| 171 virtual bool HasHitTestMask() const OVERRIDE; | 173 virtual bool HasHitTestMask() const OVERRIDE; |
| 172 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE; | 174 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE; |
| 173 virtual bool GetTooltipText(const gfx::Point& p, | 175 virtual bool GetTooltipText(const gfx::Point& p, |
| 174 string16* tooltip) const OVERRIDE; | 176 string16* tooltip) const OVERRIDE; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 static int font_height_; | 357 static int font_height_; |
| 356 | 358 |
| 357 // As the majority of the tabs are inactive, and painting tabs is slowish, | 359 // As the majority of the tabs are inactive, and painting tabs is slowish, |
| 358 // we cache a handful of the inactive tab backgrounds here. | 360 // we cache a handful of the inactive tab backgrounds here. |
| 359 static ImageCache* image_cache_; | 361 static ImageCache* image_cache_; |
| 360 | 362 |
| 361 DISALLOW_COPY_AND_ASSIGN(Tab); | 363 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 362 }; | 364 }; |
| 363 | 365 |
| 364 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 366 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |