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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
7 | 7 |
8 class BaseTab; | 8 class BaseTab; |
9 class TabStripSelectionModel; | 9 class TabStripSelectionModel; |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // Returns true if the specified Tab is selected. | 48 // Returns true if the specified Tab is selected. |
49 virtual bool IsTabSelected(const BaseTab* tab) const = 0; | 49 virtual bool IsTabSelected(const BaseTab* tab) const = 0; |
50 | 50 |
51 // Returns true if the specified Tab is pinned. | 51 // Returns true if the specified Tab is pinned. |
52 virtual bool IsTabPinned(const BaseTab* tab) const = 0; | 52 virtual bool IsTabPinned(const BaseTab* tab) const = 0; |
53 | 53 |
54 // Potentially starts a drag for the specified Tab. | 54 // Potentially starts a drag for the specified Tab. |
55 virtual void MaybeStartDrag( | 55 virtual void MaybeStartDrag( |
56 BaseTab* tab, | 56 BaseTab* tab, |
57 const views::LocatedEvent& event, | 57 const ui::LocatedEvent& event, |
58 const TabStripSelectionModel& original_selection) = 0; | 58 const TabStripSelectionModel& original_selection) = 0; |
59 | 59 |
60 // Continues dragging a Tab. | 60 // Continues dragging a Tab. |
61 virtual void ContinueDrag(views::View* view, const gfx::Point& location) = 0; | 61 virtual void ContinueDrag(views::View* view, const gfx::Point& location) = 0; |
62 | 62 |
63 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way | 63 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way |
64 // other than the user releasing the mouse. Returns whether the tab has been | 64 // other than the user releasing the mouse. Returns whether the tab has been |
65 // destroyed. | 65 // destroyed. |
66 virtual bool EndDrag(bool canceled) = 0; | 66 virtual bool EndDrag(bool canceled) = 0; |
67 | 67 |
(...skipping 16 matching lines...) Expand all Loading... |
84 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) = 0; | 84 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) = 0; |
85 | 85 |
86 // Returns true if Instant Extended API is enabled. | 86 // Returns true if Instant Extended API is enabled. |
87 virtual bool IsInstantExtendedAPIEnabled() = 0; | 87 virtual bool IsInstantExtendedAPIEnabled() = 0; |
88 | 88 |
89 protected: | 89 protected: |
90 virtual ~TabController() {} | 90 virtual ~TabController() {} |
91 }; | 91 }; |
92 | 92 |
93 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ | 93 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
OLD | NEW |