| 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 <deque> | 10 #include <deque> |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // closure. | 170 // closure. |
| 171 - (BOOL)inRapidClosureMode; | 171 - (BOOL)inRapidClosureMode; |
| 172 | 172 |
| 173 // Returns YES if the user is allowed to drag tabs on the strip at this moment. | 173 // Returns YES if the user is allowed to drag tabs on the strip at this moment. |
| 174 // For example, this returns NO if there are any pending tab close animtations. | 174 // For example, this returns NO if there are any pending tab close animtations. |
| 175 - (BOOL)tabDraggingAllowed; | 175 - (BOOL)tabDraggingAllowed; |
| 176 | 176 |
| 177 // Default height for tabs. | 177 // Default height for tabs. |
| 178 + (CGFloat)defaultTabHeight; | 178 + (CGFloat)defaultTabHeight; |
| 179 | 179 |
| 180 // Effectively an implementation of the |URLDropTargetWindowController| |
| 181 // protocol, which the |BrowserWindowController| just reflects to us. This |
| 182 // needed for dropping URLs on the tab strip. |
| 183 - (void)dropURLs:(NSArray*)urls at:(NSPoint)location; |
| 184 - (void)indicateDropURLsAt:(NSPoint)location; |
| 185 - (void)hideDropURLsIndicator; |
| 186 |
| 180 // Returns the (lazily created) window sheet controller of this window. Used | 187 // Returns the (lazily created) window sheet controller of this window. Used |
| 181 // for the per-tab sheets. | 188 // for the per-tab sheets. |
| 182 - (GTMWindowSheetController*)sheetController; | 189 - (GTMWindowSheetController*)sheetController; |
| 183 | 190 |
| 184 // See comments in browser_window_controller.h for documentation about these | 191 // See comments in browser_window_controller.h for documentation about these |
| 185 // functions. | 192 // functions. |
| 186 - (BOOL)attachConstrainedWindow:(ConstrainedWindowMac*)window; | 193 - (BOOL)attachConstrainedWindow:(ConstrainedWindowMac*)window; |
| 187 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; | 194 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; |
| 188 | 195 |
| 189 @end | 196 @end |
| 190 | 197 |
| 191 // Notification sent when the number of tabs changes. The object will be this | 198 // Notification sent when the number of tabs changes. The object will be this |
| 192 // controller. | 199 // controller. |
| 193 extern NSString* const kTabStripNumberOfTabsChanged; | 200 extern NSString* const kTabStripNumberOfTabsChanged; |
| 194 | 201 |
| 195 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 202 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |