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

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

Issue 2821011: Removes phantom tabs. (Closed)
Patch Set: Created 10 years, 6 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // the drag is now complete. This also calls |-layoutTabs| internally so 105 // the drag is now complete. This also calls |-layoutTabs| internally so
106 // clients do not need to call it again. 106 // clients do not need to call it again.
107 - (void)moveTabView:(NSView*)view 107 - (void)moveTabView:(NSView*)view
108 fromController:(TabWindowController*)controller; 108 fromController:(TabWindowController*)controller;
109 109
110 // Number of tabs in the tab strip. Useful, for example, to know if we're 110 // Number of tabs in the tab strip. Useful, for example, to know if we're
111 // dragging the only tab in the window. This includes pinned tabs (both live 111 // dragging the only tab in the window. This includes pinned tabs (both live
112 // and not). 112 // and not).
113 - (NSInteger)numberOfTabs; 113 - (NSInteger)numberOfTabs;
114 114
115 // YES if there are tabs in the tab strip which have content, allowing for 115 // YES if there are tabs in the tab strip which have content.
116 // the notion of tabs in the tab strip that are placeholders, or phantoms, but
117 // currently have no content.
118 - (BOOL)hasLiveTabs; 116 - (BOOL)hasLiveTabs;
119 117
120 // Return the view of the selected tab. 118 // Return the view of the selected tab.
121 - (NSView *)selectedTabView; 119 - (NSView *)selectedTabView;
122 120
123 // The title of the selected tab. 121 // The title of the selected tab.
124 - (NSString*)selectedTabTitle; 122 - (NSString*)selectedTabTitle;
125 123
126 // Called to check whether or not this controller's window has a tab strip (YES 124 // Called to check whether or not this controller's window has a tab strip (YES
127 // if it does, NO otherwise). The default implementation returns YES. 125 // if it does, NO otherwise). The default implementation returns YES.
(...skipping 10 matching lines...) Expand all
138 136
139 @end 137 @end
140 138
141 @interface TabWindowController(ProtectedMethods) 139 @interface TabWindowController(ProtectedMethods)
142 // Tells the tab strip to forget about this tab in preparation for it being 140 // Tells the tab strip to forget about this tab in preparation for it being
143 // put into a different tab strip, such as during a drop on another window. 141 // put into a different tab strip, such as during a drop on another window.
144 - (void)detachTabView:(NSView*)view; 142 - (void)detachTabView:(NSView*)view;
145 @end 143 @end
146 144
147 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_ 145 #endif // CHROME_BROWSER_TAB_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_view.mm ('k') | chrome/browser/extensions/extension_browser_event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698