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_BASE_TAB_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" | 10 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void PaintIcon(gfx::Canvas* canvas); | 120 void PaintIcon(gfx::Canvas* canvas); |
121 void PaintTitle(gfx::Canvas* canvas, SkColor title_color); | 121 void PaintTitle(gfx::Canvas* canvas, SkColor title_color); |
122 | 122 |
123 // Overridden from AnimationDelegate: | 123 // Overridden from AnimationDelegate: |
124 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 124 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
125 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; | 125 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; |
126 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 126 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
127 | 127 |
128 // Overridden from views::ButtonListener: | 128 // Overridden from views::ButtonListener: |
129 virtual void ButtonPressed(views::Button* sender, | 129 virtual void ButtonPressed(views::Button* sender, |
130 const views::Event& event) OVERRIDE; | 130 const ui::Event& event) OVERRIDE; |
131 | 131 |
132 // Overridden from views::ContextMenuController: | 132 // Overridden from views::ContextMenuController: |
133 virtual void ShowContextMenuForView(views::View* source, | 133 virtual void ShowContextMenuForView(views::View* source, |
134 const gfx::Point& point) OVERRIDE; | 134 const gfx::Point& point) OVERRIDE; |
135 | 135 |
136 // Returns the bounds of the title and icon. | 136 // Returns the bounds of the title and icon. |
137 virtual const gfx::Rect& GetTitleBounds() const = 0; | 137 virtual const gfx::Rect& GetTitleBounds() const = 0; |
138 virtual const gfx::Rect& GetIconBounds() const = 0; | 138 virtual const gfx::Rect& GetIconBounds() const = 0; |
139 | 139 |
140 virtual int loading_animation_frame() const; | 140 virtual int loading_animation_frame() const; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 views::GlowHoverController hover_controller_; | 209 views::GlowHoverController hover_controller_; |
210 | 210 |
211 static gfx::Font* font_; | 211 static gfx::Font* font_; |
212 static int font_height_; | 212 static int font_height_; |
213 | 213 |
214 DISALLOW_COPY_AND_ASSIGN(BaseTab); | 214 DISALLOW_COPY_AND_ASSIGN(BaseTab); |
215 }; | 215 }; |
216 | 216 |
217 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_ | 217 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_H_ |
OLD | NEW |