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_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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 virtual void ShowContextMenuForView(views::View* source, | 164 virtual void ShowContextMenuForView(views::View* source, |
165 const gfx::Point& point, | 165 const gfx::Point& point, |
166 ui::MenuSourceType source_type) OVERRIDE; | 166 ui::MenuSourceType source_type) OVERRIDE; |
167 | 167 |
168 // Overridden from views::View: | 168 // Overridden from views::View: |
169 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 169 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
170 virtual void Layout() OVERRIDE; | 170 virtual void Layout() OVERRIDE; |
171 virtual void OnThemeChanged() OVERRIDE; | 171 virtual void OnThemeChanged() OVERRIDE; |
172 virtual const char* GetClassName() const OVERRIDE; | 172 virtual const char* GetClassName() const OVERRIDE; |
173 virtual bool HasHitTestMask() const OVERRIDE; | 173 virtual bool HasHitTestMask() const OVERRIDE; |
174 virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE; | 174 virtual void GetHitTestMask(gfx::Path* path, |
| 175 HitTestSource source = HIT_TEST_SOURCE_MOUSE) const OVERRIDE; |
175 virtual bool GetTooltipText(const gfx::Point& p, | 176 virtual bool GetTooltipText(const gfx::Point& p, |
176 string16* tooltip) const OVERRIDE; | 177 string16* tooltip) const OVERRIDE; |
177 virtual bool GetTooltipTextOrigin(const gfx::Point& p, | 178 virtual bool GetTooltipTextOrigin(const gfx::Point& p, |
178 gfx::Point* origin) const OVERRIDE; | 179 gfx::Point* origin) const OVERRIDE; |
179 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 180 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
180 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 181 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
181 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 182 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
182 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 183 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
183 virtual void OnMouseCaptureLost() OVERRIDE; | 184 virtual void OnMouseCaptureLost() OVERRIDE; |
184 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 185 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 static int font_height_; | 377 static int font_height_; |
377 | 378 |
378 // As the majority of the tabs are inactive, and painting tabs is slowish, | 379 // As the majority of the tabs are inactive, and painting tabs is slowish, |
379 // we cache a handful of the inactive tab backgrounds here. | 380 // we cache a handful of the inactive tab backgrounds here. |
380 static ImageCache* image_cache_; | 381 static ImageCache* image_cache_; |
381 | 382 |
382 DISALLOW_COPY_AND_ASSIGN(Tab); | 383 DISALLOW_COPY_AND_ASSIGN(Tab); |
383 }; | 384 }; |
384 | 385 |
385 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 386 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
OLD | NEW |