| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // BaseTab overrides: | 59 // BaseTab overrides: |
| 60 virtual const gfx::Rect& GetTitleBounds() const; | 60 virtual const gfx::Rect& GetTitleBounds() const; |
| 61 virtual const gfx::Rect& GetIconBounds() const; | 61 virtual const gfx::Rect& GetIconBounds() const; |
| 62 virtual void DataChanged(const TabRendererData& old); | 62 virtual void DataChanged(const TabRendererData& old); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 // Overridden from views::View: | 65 // Overridden from views::View: |
| 66 virtual void OnPaint(gfx::Canvas* canvas); | 66 virtual void OnPaint(gfx::Canvas* canvas); |
| 67 virtual void Layout(); | 67 virtual void Layout(); |
| 68 virtual void OnThemeChanged(); | 68 virtual void OnThemeChanged(); |
| 69 virtual std::string GetClassName() const { return kViewClassName; } | 69 virtual std::string GetClassName() const; |
| 70 virtual bool HasHitTestMask() const; | 70 virtual bool HasHitTestMask() const; |
| 71 virtual void GetHitTestMask(gfx::Path* path) const; | 71 virtual void GetHitTestMask(gfx::Path* path) const; |
| 72 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin); | 72 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin); |
| 73 virtual void OnMouseMoved(const views::MouseEvent& event); | 73 virtual void OnMouseMoved(const views::MouseEvent& event); |
| 74 | 74 |
| 75 // Paint various portions of the Tab | 75 // Paint various portions of the Tab |
| 76 void PaintTabBackground(gfx::Canvas* canvas); | 76 void PaintTabBackground(gfx::Canvas* canvas); |
| 77 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas); | 77 void PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas); |
| 78 void PaintInactiveTabBackground(gfx::Canvas* canvas); | 78 void PaintInactiveTabBackground(gfx::Canvas* canvas); |
| 79 void PaintActiveTabBackground(gfx::Canvas* canvas); | 79 void PaintActiveTabBackground(gfx::Canvas* canvas); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 // The current color of the close button. | 136 // The current color of the close button. |
| 137 SkColor close_button_color_; | 137 SkColor close_button_color_; |
| 138 | 138 |
| 139 static bool initialized_; | 139 static bool initialized_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(Tab); | 141 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 144 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |