| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Overridden from views::View: | 83 // Overridden from views::View: |
| 84 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 84 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
| 85 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 85 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 86 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 86 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
| 87 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 87 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 88 virtual void OnMouseCaptureLost() OVERRIDE; | 88 virtual void OnMouseCaptureLost() OVERRIDE; |
| 89 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 89 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
| 90 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 90 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
| 91 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 91 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 92 virtual ui::GestureStatus OnGestureEvent( | 92 virtual ui::EventResult OnGestureEvent( |
| 93 const ui::GestureEvent& event) OVERRIDE; | 93 const ui::GestureEvent& event) OVERRIDE; |
| 94 virtual bool GetTooltipText(const gfx::Point& p, | 94 virtual bool GetTooltipText(const gfx::Point& p, |
| 95 string16* tooltip) const OVERRIDE; | 95 string16* tooltip) const OVERRIDE; |
| 96 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 96 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 97 | 97 |
| 98 protected: | 98 protected: |
| 99 // Invoked from SetData after |data_| has been updated to the new data. | 99 // Invoked from SetData after |data_| has been updated to the new data. |
| 100 virtual void DataChanged(const TabRendererData& old) {} | 100 virtual void DataChanged(const TabRendererData& old) {} |
| 101 | 101 |
| 102 // Invoked if data_.network_state changes, or the network_state is not none. | 102 // Invoked if data_.network_state changes, or the network_state is not none. |
| (...skipping 105 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 |