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_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Show or hide the new tab button. The button is hidden immediately, but | 123 // Show or hide the new tab button. The button is hidden immediately, but |
124 // waits until the next call to |-layoutTabs| to show it again. | 124 // waits until the next call to |-layoutTabs| to show it again. |
125 - (void)showNewTabButton:(BOOL)show; | 125 - (void)showNewTabButton:(BOOL)show; |
126 | 126 |
127 // Force the tabs to rearrange themselves to reflect the current model. | 127 // Force the tabs to rearrange themselves to reflect the current model. |
128 - (void)layoutTabs; | 128 - (void)layoutTabs; |
129 | 129 |
130 // The user changed the theme, or theme state changed. | 130 // The user changed the theme, or theme state changed. |
131 - (void)applyTheme; | 131 - (void)applyTheme; |
132 | 132 |
| 133 // Are we in rapid (tab) closure mode? I.e., is a full layout deferred (while |
| 134 // the user closes tabs)? Needed to overcome missing clicks during rapid tab |
| 135 // closure. |
| 136 - (BOOL)inRapidClosureMode; |
| 137 |
133 // Default height for tabs. | 138 // Default height for tabs. |
134 + (CGFloat)defaultTabHeight; | 139 + (CGFloat)defaultTabHeight; |
135 | 140 |
136 // Returns the (lazily created) window sheet controller of this window. Used | 141 // Returns the (lazily created) window sheet controller of this window. Used |
137 // for the per-tab sheets. | 142 // for the per-tab sheets. |
138 - (GTMWindowSheetController*)sheetController; | 143 - (GTMWindowSheetController*)sheetController; |
139 | 144 |
140 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 145 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
141 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 146 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
142 | 147 |
143 @end | 148 @end |
144 | 149 |
145 // Notification sent when the number of tabs changes. The object will be this | 150 // Notification sent when the number of tabs changes. The object will be this |
146 // controller. | 151 // controller. |
147 extern NSString* const kTabStripNumberOfTabsChanged; | 152 extern NSString* const kTabStripNumberOfTabsChanged; |
148 | 153 |
149 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 154 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |