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_TAB_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 // A class acting as the Objective-C window controller for a window that has | 8 // A class acting as the Objective-C window controller for a window that has |
9 // tabs which can be dragged around. Tabs can be re-arranged within the same | 9 // tabs which can be dragged around. Tabs can be re-arranged within the same |
10 // window or dragged into other TabWindowController windows. This class doesn't | 10 // window or dragged into other TabWindowController windows. This class doesn't |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 - (void)setTab:(NSView*)tabView isDraggable:(BOOL)draggable; | 116 - (void)setTab:(NSView*)tabView isDraggable:(BOOL)draggable; |
117 | 117 |
118 // Tell the window that it needs to call performClose: as soon as the current | 118 // Tell the window that it needs to call performClose: as soon as the current |
119 // drag is complete. This prevents a window (and its overlay) from going away | 119 // drag is complete. This prevents a window (and its overlay) from going away |
120 // during a drag. | 120 // during a drag. |
121 - (void)deferPerformClose; | 121 - (void)deferPerformClose; |
122 | 122 |
123 @end | 123 @end |
124 | 124 |
125 @interface TabWindowController(ProtectedMethods) | 125 @interface TabWindowController(ProtectedMethods) |
126 // A list of all the views that need to move to the overlay window. Subclasses | |
127 // can override this to add more things besides the tab strip. Be sure to | |
128 // call the superclass' version if overridden. | |
129 - (NSArray*)viewsToMoveToOverlay; | |
130 | |
131 // Tells the tab strip to forget about this tab in preparation for it being | 126 // Tells the tab strip to forget about this tab in preparation for it being |
132 // put into a different tab strip, such as during a drop on another window. | 127 // put into a different tab strip, such as during a drop on another window. |
133 - (void)detachTabView:(NSView*)view; | 128 - (void)detachTabView:(NSView*)view; |
134 @end | 129 @end |
135 | 130 |
136 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ | 131 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ |
OLD | NEW |