| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 // The loading/waiting state of the tab. | 10 // The loading/waiting state of the tab. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Dispatches the command in the tag to the registered target object. | 69 // Dispatches the command in the tag to the registered target object. |
| 70 - (IBAction)commandDispatch:(id)sender; | 70 - (IBAction)commandDispatch:(id)sender; |
| 71 | 71 |
| 72 // Replace the current icon view with the given view. |iconView| will be | 72 // Replace the current icon view with the given view. |iconView| will be |
| 73 // resized to the size of the current icon view. | 73 // resized to the size of the current icon view. |
| 74 - (void)setIconView:(NSView*)iconView; | 74 - (void)setIconView:(NSView*)iconView; |
| 75 - (NSView*)iconView; | 75 - (NSView*)iconView; |
| 76 | 76 |
| 77 // (Re)apply the current theme. | 77 // (Re)apply the current theme. |
| 78 - (void)applyTheme; | 78 - (void)applyTheme; |
| 79 |
| 80 // Called by the tabs to determine whether we are in rapid (tab) closure mode. |
| 81 // In this mode, we handle clicks slightly differently due to animation. |
| 82 // Ideally, tabs would know about their own animation and wouldn't need this. |
| 83 - (BOOL)inRapidClosureMode; |
| 84 |
| 79 @end | 85 @end |
| 80 | 86 |
| 81 @interface TabController(TestingAPI) | 87 @interface TabController(TestingAPI) |
| 82 - (NSString *)toolTip; | 88 - (NSString *)toolTip; |
| 83 - (int)iconCapacity; | 89 - (int)iconCapacity; |
| 84 - (BOOL)shouldShowIcon; | 90 - (BOOL)shouldShowIcon; |
| 85 - (BOOL)shouldShowCloseBox; | 91 - (BOOL)shouldShowCloseBox; |
| 86 @end // TabController(TestingAPI) | 92 @end // TabController(TestingAPI) |
| 87 | 93 |
| 88 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ | 94 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| OLD | NEW |