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 BaseTabStrip; | 10 class BaseTabStrip; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Return true if this tab strip is compatible with the provided tab strip. | 78 // Return true if this tab strip is compatible with the provided tab strip. |
79 // Compatible tab strips can transfer tabs during drag and drop. | 79 // Compatible tab strips can transfer tabs during drag and drop. |
80 virtual bool IsCompatibleWith(BaseTabStrip* other) const = 0; | 80 virtual bool IsCompatibleWith(BaseTabStrip* other) const = 0; |
81 | 81 |
82 // Creates the new tab. | 82 // Creates the new tab. |
83 virtual void CreateNewTab() = 0; | 83 virtual void CreateNewTab() = 0; |
84 | 84 |
85 // Informs that an active tab is selected when already active (ie - clicked | 85 // Informs that an active tab is selected when already active (ie - clicked |
86 // when already active/foreground). | 86 // when already active/foreground). |
87 virtual void ClickActiveTab(int index) = 0; | 87 virtual void ClickActiveTab(int index) = 0; |
| 88 |
| 89 // Returns true of the new tab button should be sized such that it reaches |
| 90 // all the way to the top of the tab strip. |
| 91 virtual bool SizeTabButtonToTopOfTabStrip() = 0; |
88 }; | 92 }; |
89 | 93 |
90 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 94 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |