Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/cocoa/tab_window_controller.h

Issue 495010: Mac: fix/implement app windows (not app mode), popups, drawing; refactor code. (Closed)
Patch Set: Updated per pink's review. Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Number of tabs in the tab strip. Useful, for example, to know if we're 108 // Number of tabs in the tab strip. Useful, for example, to know if we're
109 // dragging the only tab in the window. 109 // dragging the only tab in the window.
110 - (NSInteger)numberOfTabs; 110 - (NSInteger)numberOfTabs;
111 111
112 // Return the view of the selected tab. 112 // Return the view of the selected tab.
113 - (NSView *)selectedTabView; 113 - (NSView *)selectedTabView;
114 114
115 // The title of the selected tab. 115 // The title of the selected tab.
116 - (NSString*)selectedTabTitle; 116 - (NSString*)selectedTabTitle;
117 117
118 // Called to check if we are a normal window (e.g. not a pop-up) and 118 // Called to check whether or not this controller's window has a tab strip (YES
119 // want normal behavior (e.g. a tab strip). Return YES if so. The 119 // if it does, NO otherwise). The default implementation returns YES.
120 // default implementation returns YES. 120 - (BOOL)hasTabStrip;
121 - (BOOL)isNormalWindow;
122 121
123 // Get/set whether a particular tab is draggable between windows. 122 // Get/set whether a particular tab is draggable between windows.
124 - (BOOL)isTabDraggable:(NSView*)tabView; 123 - (BOOL)isTabDraggable:(NSView*)tabView;
125 - (void)setTab:(NSView*)tabView isDraggable:(BOOL)draggable; 124 - (void)setTab:(NSView*)tabView isDraggable:(BOOL)draggable;
126 125
127 // Tell the window that it needs to call performClose: as soon as the current 126 // Tell the window that it needs to call performClose: as soon as the current
128 // drag is complete. This prevents a window (and its overlay) from going away 127 // drag is complete. This prevents a window (and its overlay) from going away
129 // during a drag. 128 // during a drag.
130 - (void)deferPerformClose; 129 - (void)deferPerformClose;
131 130
132 @end 131 @end
133 132
134 @interface TabWindowController(ProtectedMethods) 133 @interface TabWindowController(ProtectedMethods)
135 // Tells the tab strip to forget about this tab in preparation for it being 134 // Tells the tab strip to forget about this tab in preparation for it being
136 // put into a different tab strip, such as during a drop on another window. 135 // put into a different tab strip, such as during a drop on another window.
137 - (void)detachTabView:(NSView*)view; 136 - (void)detachTabView:(NSView*)view;
138 @end 137 @end
139 138
140 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ 139 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/gradient_button_cell.mm ('k') | chrome/browser/cocoa/tab_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698