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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" | 8 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // Creates the new tab. | 93 // Creates the new tab. |
94 virtual void CreateNewTab() = 0; | 94 virtual void CreateNewTab() = 0; |
95 | 95 |
96 // Returns true if the tab strip is in an incognito window. | 96 // Returns true if the tab strip is in an incognito window. |
97 virtual bool IsIncognito() = 0; | 97 virtual bool IsIncognito() = 0; |
98 | 98 |
99 // Invoked if the layout type might have changed. | 99 // Invoked if the layout type might have changed. |
100 virtual void LayoutTypeMaybeChanged() = 0; | 100 virtual void LayoutTypeMaybeChanged() = 0; |
101 | 101 |
102 // Returns true if the tab at the given index is showing a web view modal | |
103 // dialog. | |
104 virtual bool IsTabShowingWebViewModalDialog(int index) = 0; | |
105 | |
106 // Notifies controller that the user started dragging this tabstrip's tabs. | 102 // Notifies controller that the user started dragging this tabstrip's tabs. |
107 virtual void OnStartedDraggingTabs() = 0; | 103 virtual void OnStartedDraggingTabs() = 0; |
108 | 104 |
109 // Notifies controller that the user stopped dragging this tabstrip's tabs. | 105 // Notifies controller that the user stopped dragging this tabstrip's tabs. |
110 // This is also called when the tabs that the user is dragging were detached | 106 // This is also called when the tabs that the user is dragging were detached |
111 // from this tabstrip but the user is still dragging the tabs. | 107 // from this tabstrip but the user is still dragging the tabs. |
112 virtual void OnStoppedDraggingTabs() = 0; | 108 virtual void OnStoppedDraggingTabs() = 0; |
113 }; | 109 }; |
114 | 110 |
115 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 111 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |