OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 class BaseTab; | 9 class BaseTab; |
10 class GURL; | 10 class GURL; |
(...skipping 16 matching lines...) Expand all Loading... |
27 // Returns the number of tabs in the model. | 27 // Returns the number of tabs in the model. |
28 virtual int GetCount() const = 0; | 28 virtual int GetCount() const = 0; |
29 | 29 |
30 // Returns true if |index| is a valid model index. | 30 // Returns true if |index| is a valid model index. |
31 virtual bool IsValidIndex(int index) const = 0; | 31 virtual bool IsValidIndex(int index) const = 0; |
32 | 32 |
33 // Returns true if the tab at |index| is the active tab. The active tab is the | 33 // Returns true if the tab at |index| is the active tab. The active tab is the |
34 // one whose content is shown. | 34 // one whose content is shown. |
35 virtual bool IsActiveTab(int index) const = 0; | 35 virtual bool IsActiveTab(int index) const = 0; |
36 | 36 |
| 37 // Returns the index of the active tab. |
| 38 virtual int GetActiveIndex() const = 0; |
| 39 |
37 // Returns true if the selected index is selected. | 40 // Returns true if the selected index is selected. |
38 virtual bool IsTabSelected(int index) const = 0; | 41 virtual bool IsTabSelected(int index) const = 0; |
39 | 42 |
40 // Returns true if the selected index is pinned. | 43 // Returns true if the selected index is pinned. |
41 virtual bool IsTabPinned(int index) const = 0; | 44 virtual bool IsTabPinned(int index) const = 0; |
42 | 45 |
43 // Returns true if the selected index is closeable. | 46 // Returns true if the selected index is closeable. |
44 virtual bool IsTabCloseable(int index) const = 0; | 47 virtual bool IsTabCloseable(int index) const = 0; |
45 | 48 |
46 // Returns true if the selected index is the new tab page. | 49 // Returns true if the selected index is the new tab page. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 91 |
89 // Informs that an active tab is selected when already active (ie - clicked | 92 // Informs that an active tab is selected when already active (ie - clicked |
90 // when already active/foreground). | 93 // when already active/foreground). |
91 virtual void ClickActiveTab(int index) = 0; | 94 virtual void ClickActiveTab(int index) = 0; |
92 | 95 |
93 // Returns true if the tab strip is in an incognito window. | 96 // Returns true if the tab strip is in an incognito window. |
94 virtual bool IsIncognito() = 0; | 97 virtual bool IsIncognito() = 0; |
95 }; | 98 }; |
96 | 99 |
97 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 100 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |