| 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_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // Returns YES if the user is allowed to drag tabs on the strip at this moment. | 257 // Returns YES if the user is allowed to drag tabs on the strip at this moment. |
| 258 // For example, this returns NO if there are any pending tab close animtations. | 258 // For example, this returns NO if there are any pending tab close animtations. |
| 259 - (BOOL)tabDraggingAllowed; | 259 - (BOOL)tabDraggingAllowed; |
| 260 | 260 |
| 261 // Default height for tabs. | 261 // Default height for tabs. |
| 262 + (CGFloat)defaultTabHeight; | 262 + (CGFloat)defaultTabHeight; |
| 263 | 263 |
| 264 // Default indentation for tabs (see |leftIndentForControls_|). | 264 // Default indentation for tabs (see |leftIndentForControls_|). |
| 265 + (CGFloat)defaultLeftIndentForControls; | 265 + (CGFloat)defaultLeftIndentForControls; |
| 266 | 266 |
| 267 // Returns the amount by which tabs overlap. |
| 268 + (CGFloat)tabOverlap; |
| 269 |
| 267 // Returns the currently active TabContentsController. | 270 // Returns the currently active TabContentsController. |
| 268 - (TabContentsController*)activeTabContentsController; | 271 - (TabContentsController*)activeTabContentsController; |
| 269 | 272 |
| 270 // Adds custom traffic light buttons to the tab strip. Idempotent. | 273 // Adds custom traffic light buttons to the tab strip. Idempotent. |
| 271 - (void)addCustomWindowControls; | 274 - (void)addCustomWindowControls; |
| 272 | 275 |
| 273 // Removes custom traffic light buttons from the tab strip. Idempotent. | 276 // Removes custom traffic light buttons from the tab strip. Idempotent. |
| 274 - (void)removeCustomWindowControls; | 277 - (void)removeCustomWindowControls; |
| 275 | 278 |
| 276 // Gets the tab and the alert state to check whether the window | 279 // Gets the tab and the alert state to check whether the window |
| (...skipping 11 matching lines...) Expand all Loading... |
| 288 - (TabAlertState)alertStateForContents:(content::WebContents*)contents; | 291 - (TabAlertState)alertStateForContents:(content::WebContents*)contents; |
| 289 | 292 |
| 290 @end | 293 @end |
| 291 | 294 |
| 292 @interface TabStripController(TestingAPI) | 295 @interface TabStripController(TestingAPI) |
| 293 - (void)setTabTitle:(TabController*)tab | 296 - (void)setTabTitle:(TabController*)tab |
| 294 withContents:(content::WebContents*)contents; | 297 withContents:(content::WebContents*)contents; |
| 295 @end | 298 @end |
| 296 | 299 |
| 297 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 300 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |