| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Returns true if this tab is the active tab. | 79 // Returns true if this tab is the active tab. |
| 80 bool IsActive() const; | 80 bool IsActive() const; |
| 81 | 81 |
| 82 // Returns true if the tab is selected. | 82 // Returns true if the tab is selected. |
| 83 virtual bool IsSelected() const; | 83 virtual bool IsSelected() const; |
| 84 | 84 |
| 85 // Overridden from views::View: | 85 // Overridden from views::View: |
| 86 virtual ThemeProvider* GetThemeProvider() const OVERRIDE; | 86 virtual ThemeProvider* GetThemeProvider() const OVERRIDE; |
| 87 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 87 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
| 88 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 88 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
| 89 virtual void OnMouseReleased(const views::MouseEvent& event, | 89 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
| 90 bool canceled) OVERRIDE; | 90 virtual void OnMouseCaptureLost() OVERRIDE; |
| 91 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 91 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; |
| 92 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 92 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
| 93 virtual bool GetTooltipText(const gfx::Point& p, | 93 virtual bool GetTooltipText(const gfx::Point& p, |
| 94 std::wstring* tooltip) OVERRIDE; | 94 std::wstring* tooltip) OVERRIDE; |
| 95 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 95 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 96 | 96 |
| 97 protected: | 97 protected: |
| 98 // Invoked from SetData after |data_| has been updated to the new data. | 98 // Invoked from SetData after |data_| has been updated to the new data. |
| 99 virtual void DataChanged(const TabRendererData& old) {} | 99 virtual void DataChanged(const TabRendererData& old) {} |
| 100 | 100 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 ui::ThemeProvider* theme_provider_; | 209 ui::ThemeProvider* theme_provider_; |
| 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 |