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_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // A class acting as the Objective-C window controller for a window that has | 9 // A class acting as the Objective-C window controller for a window that has |
10 // tabs which can be dragged around. Tabs can be re-arranged within the same | 10 // tabs which can be dragged around. Tabs can be re-arranged within the same |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Number of tabs in the tab strip. Useful, for example, to know if we're | 130 // Number of tabs in the tab strip. Useful, for example, to know if we're |
131 // dragging the only tab in the window. This includes pinned tabs (both live | 131 // dragging the only tab in the window. This includes pinned tabs (both live |
132 // and not). | 132 // and not). |
133 - (NSInteger)numberOfTabs; | 133 - (NSInteger)numberOfTabs; |
134 | 134 |
135 // YES if there are tabs in the tab strip which have content, allowing for | 135 // YES if there are tabs in the tab strip which have content, allowing for |
136 // the notion of tabs in the tab strip that are placeholders but currently have | 136 // the notion of tabs in the tab strip that are placeholders but currently have |
137 // no content. | 137 // no content. |
138 - (BOOL)hasLiveTabs; | 138 - (BOOL)hasLiveTabs; |
139 | 139 |
140 // Return the view of the selected tab. | 140 // Return the view of the active tab. |
141 - (NSView *)selectedTabView; | 141 - (NSView*)activeTabView; |
142 | 142 |
143 // The title of the selected tab. | 143 // The title of the active tab. |
144 - (NSString*)selectedTabTitle; | 144 - (NSString*)activeTabTitle; |
145 | 145 |
146 // Called to check whether or not this controller's window has a tab strip (YES | 146 // Called to check whether or not this controller's window has a tab strip (YES |
147 // if it does, NO otherwise). The default implementation returns YES. | 147 // if it does, NO otherwise). The default implementation returns YES. |
148 - (BOOL)hasTabStrip; | 148 - (BOOL)hasTabStrip; |
149 | 149 |
150 // Returns YES if the tab strip lives in the window content area alongside the | 150 // Returns YES if the tab strip lives in the window content area alongside the |
151 // tab contents. Returns NO if the tab strip is outside the window content | 151 // tab contents. Returns NO if the tab strip is outside the window content |
152 // area, along the top of the window. | 152 // area, along the top of the window. |
153 - (BOOL)useVerticalTabs; | 153 - (BOOL)useVerticalTabs; |
154 | 154 |
(...skipping 16 matching lines...) Expand all Loading... |
171 // Toggles from one display mode of the tab strip to another. Will automatically | 171 // Toggles from one display mode of the tab strip to another. Will automatically |
172 // call -layoutSubviews to reposition other content. | 172 // call -layoutSubviews to reposition other content. |
173 - (void)toggleTabStripDisplayMode; | 173 - (void)toggleTabStripDisplayMode; |
174 | 174 |
175 // Called when the size of the window content area has changed. Override to | 175 // Called when the size of the window content area has changed. Override to |
176 // position specific views. Base class implementation does nothing. | 176 // position specific views. Base class implementation does nothing. |
177 - (void)layoutSubviews; | 177 - (void)layoutSubviews; |
178 @end | 178 @end |
179 | 179 |
180 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ | 180 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ |
OLD | NEW |