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

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

Issue 151135: Pop-up chrome.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months 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 | Annotate | Revision Log
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Number of tabs in the tab strip. Useful, for example, to know if we're 79 // Number of tabs in the tab strip. Useful, for example, to know if we're
80 // dragging the only tab in the window. 80 // dragging the only tab in the window.
81 - (NSInteger)numberOfTabs; 81 - (NSInteger)numberOfTabs;
82 82
83 // Return the view of the selected tab. 83 // Return the view of the selected tab.
84 - (NSView *)selectedTabView; 84 - (NSView *)selectedTabView;
85 85
86 // The title of the selected tab. 86 // The title of the selected tab.
87 - (NSString*)selectedTabTitle; 87 - (NSString*)selectedTabTitle;
88 88
89 // Called to check if we are a normal window (e.g. not a pop-up) and
90 // want normal behavior (e.g. a tab strip). Return YES if so. The
91 // default implementation returns YES.
92 - (BOOL)isNormalWindow;
pink (ping after 24hrs) 2009/07/01 12:53:00 javascript has a full set of window chrome flags t
John Grabowski 2009/07/02 20:28:25 The answer is both. POPUP windows (not normal) on
93
94
89 @end 95 @end
90 96
91 @interface TabWindowController(ProtectedMethods) 97 @interface TabWindowController(ProtectedMethods)
92 // A list of all the views that need to move to the overlay window. Subclasses 98 // A list of all the views that need to move to the overlay window. Subclasses
93 // can override this to add more things besides the tab strip. Be sure to 99 // can override this to add more things besides the tab strip. Be sure to
94 // call the superclass' version if overridden. 100 // call the superclass' version if overridden.
95 - (NSArray*)viewsToMoveToOverlay; 101 - (NSArray*)viewsToMoveToOverlay;
96 102
97 // Tells the tab strip to forget about this tab in preparation for it being 103 // Tells the tab strip to forget about this tab in preparation for it being
98 // put into a different tab strip, such as during a drop on another window. 104 // put into a different tab strip, such as during a drop on another window.
99 - (void)detachTabView:(NSView*)view; 105 - (void)detachTabView:(NSView*)view;
100 @end 106 @end
101 107
102 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ 108 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698