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_TAB_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_H_ |
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_ | 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 protected: | 62 protected: |
63 virtual const gfx::Rect& title_bounds() const { return title_bounds_; } | 63 virtual const gfx::Rect& title_bounds() const { return title_bounds_; } |
64 | 64 |
65 // BaseTab overrides: | 65 // BaseTab overrides: |
66 virtual void DataChanged(const TabRendererData& old); | 66 virtual void DataChanged(const TabRendererData& old); |
67 | 67 |
68 private: | 68 private: |
69 // Overridden from views::View: | 69 // Overridden from views::View: |
70 virtual void Paint(gfx::Canvas* canvas); | 70 virtual void Paint(gfx::Canvas* canvas); |
71 virtual void Layout(); | 71 virtual void Layout(); |
72 virtual void ThemeChanged(); | 72 virtual void OnThemeChanged(); |
73 virtual std::string GetClassName() const { return kViewClassName; } | 73 virtual std::string GetClassName() const { return kViewClassName; } |
74 virtual bool HasHitTestMask() const; | 74 virtual bool HasHitTestMask() const; |
75 virtual void GetHitTestMask(gfx::Path* path) const; | 75 virtual void GetHitTestMask(gfx::Path* path) const; |
76 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin); | 76 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin); |
77 | 77 |
78 // Paint various portions of the Tab | 78 // Paint various portions of the Tab |
79 void PaintTabBackground(gfx::Canvas* canvas); | 79 void PaintTabBackground(gfx::Canvas* canvas); |
80 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas); | 80 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas); |
81 void PaintInactiveTabBackground(gfx::Canvas* canvas); | 81 void PaintInactiveTabBackground(gfx::Canvas* canvas); |
82 void PaintActiveTabBackground(gfx::Canvas* canvas); | 82 void PaintActiveTabBackground(gfx::Canvas* canvas); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 // The current color of the close button. | 132 // The current color of the close button. |
133 SkColor close_button_color_; | 133 SkColor close_button_color_; |
134 | 134 |
135 static bool initialized_; | 135 static bool initialized_; |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(Tab); | 137 DISALLOW_COPY_AND_ASSIGN(Tab); |
138 }; | 138 }; |
139 | 139 |
140 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ | 140 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ |
OLD | NEW |