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_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE; | 170 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE; |
171 virtual void MaybeStartDrag( | 171 virtual void MaybeStartDrag( |
172 BaseTab* tab, | 172 BaseTab* tab, |
173 const views::MouseEvent& event, | 173 const views::MouseEvent& event, |
174 const TabStripSelectionModel& original_selection) OVERRIDE; | 174 const TabStripSelectionModel& original_selection) OVERRIDE; |
175 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE; | 175 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE; |
176 virtual bool EndDrag(bool canceled) OVERRIDE; | 176 virtual bool EndDrag(bool canceled) OVERRIDE; |
177 virtual BaseTab* GetTabAt(BaseTab* tab, | 177 virtual BaseTab* GetTabAt(BaseTab* tab, |
178 const gfx::Point& tab_in_tab_coordinates) OVERRIDE; | 178 const gfx::Point& tab_in_tab_coordinates) OVERRIDE; |
179 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE; | 179 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE; |
| 180 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) OVERRIDE; |
180 | 181 |
181 // MouseWatcherListener overrides: | 182 // MouseWatcherListener overrides: |
182 virtual void MouseMovedOutOfHost() OVERRIDE; | 183 virtual void MouseMovedOutOfHost() OVERRIDE; |
183 | 184 |
184 // views::View overrides: | 185 // views::View overrides: |
185 virtual void Layout() OVERRIDE; | 186 virtual void Layout() OVERRIDE; |
186 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; | 187 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; |
187 virtual std::string GetClassName() const OVERRIDE; | 188 virtual std::string GetClassName() const OVERRIDE; |
188 virtual gfx::Size GetPreferredSize() OVERRIDE; | 189 virtual gfx::Size GetPreferredSize() OVERRIDE; |
189 // NOTE: the drag and drop methods are invoked from FrameView. This is done | 190 // NOTE: the drag and drop methods are invoked from FrameView. This is done |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 // Size we last layed out at. | 498 // Size we last layed out at. |
498 gfx::Size last_layout_size_; | 499 gfx::Size last_layout_size_; |
499 | 500 |
500 // Only used while in touch mode. | 501 // Only used while in touch mode. |
501 scoped_ptr<TouchTabStripLayout> touch_layout_; | 502 scoped_ptr<TouchTabStripLayout> touch_layout_; |
502 | 503 |
503 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 504 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
504 }; | 505 }; |
505 | 506 |
506 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 507 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |