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

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

Issue 871423004: Mac: Clean up outdated use of NSThemeFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@themed-drawing
Patch Set: No need to floor Created 5 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 - (BOOL)hasTabStrip; 147 - (BOOL)hasTabStrip;
148 148
149 // Gets whether a particular tab is draggable between windows. 149 // Gets whether a particular tab is draggable between windows.
150 - (BOOL)isTabDraggable:(NSView*)tabView; 150 - (BOOL)isTabDraggable:(NSView*)tabView;
151 151
152 // Tell the window that it needs to call performClose: as soon as the current 152 // Tell the window that it needs to call performClose: as soon as the current
153 // drag is complete. This prevents a window (and its overlay) from going away 153 // drag is complete. This prevents a window (and its overlay) from going away
154 // during a drag. 154 // during a drag.
155 - (void)deferPerformClose; 155 - (void)deferPerformClose;
156 156
157 // The tab strip should always be inserted directly above the content view.
158 - (void)insertTabStripView:(NSView*)tabStripView intoWindow:(NSWindow*)window;
159
160 // The tab strip background view should always be inserted as the back-most
161 // subview of the root view. It cannot be a subview of the contentView, as that
162 // would cause it to become layer backed, which would cause it to draw on top
163 // of non-layer backed content like the window controls.
164 - (void)insertTabStripBackgroundViewIntoWindow:(NSWindow*)window;
165
166 @end 157 @end
167 158
168 @interface TabWindowController(ProtectedMethods) 159 @interface TabWindowController(ProtectedMethods)
169 // Tells the tab strip to forget about this tab in preparation for it being 160 // Tells the tab strip to forget about this tab in preparation for it being
170 // put into a different tab strip, such as during a drop on another window. 161 // put into a different tab strip, such as during a drop on another window.
171 - (void)detachTabView:(NSView*)view; 162 - (void)detachTabView:(NSView*)view;
172 163
173 // Called when the size of the window content area has changed. Override to 164 // Called when the size of the window content area has changed. Override to
174 // position specific views. Base class implementation does nothing. 165 // position specific views. Base class implementation does nothing.
175 - (void)layoutSubviews; 166 - (void)layoutSubviews;
176 @end 167 @end
177 168
178 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ 169 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698