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

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

Issue 2091873002: [Material][Mac] Fix tabstrip and avatar button hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // if it does, NO otherwise). The default implementation returns YES. 152 // if it does, NO otherwise). The default implementation returns YES.
153 - (BOOL)hasTabStrip; 153 - (BOOL)hasTabStrip;
154 154
155 // Gets whether a particular tab is draggable between windows. 155 // Gets whether a particular tab is draggable between windows.
156 - (BOOL)isTabDraggable:(NSView*)tabView; 156 - (BOOL)isTabDraggable:(NSView*)tabView;
157 157
158 // In any fullscreen mode, the y offset to use for the content at the top of 158 // In any fullscreen mode, the y offset to use for the content at the top of
159 // the screen (tab strip, omnibox, bookmark bar, etc). Ranges from 0 to -22. 159 // the screen (tab strip, omnibox, bookmark bar, etc). Ranges from 0 to -22.
160 - (CGFloat)menubarOffset; 160 - (CGFloat)menubarOffset;
161 161
162 // Returns the view of the avatar button.
163 - (NSView*)avatarView;
164
162 // Tell the window that it needs to call performClose: as soon as the current 165 // Tell the window that it needs to call performClose: as soon as the current
163 // drag is complete. This prevents a window (and its overlay) from going away 166 // drag is complete. This prevents a window (and its overlay) from going away
164 // during a drag. 167 // during a drag.
165 - (void)deferPerformClose; 168 - (void)deferPerformClose;
166 169
167 @end 170 @end
168 171
169 @interface TabWindowController(ProtectedMethods) 172 @interface TabWindowController(ProtectedMethods)
170 // Tells the tab strip to forget about this tab in preparation for it being 173 // Tells the tab strip to forget about this tab in preparation for it being
171 // put into a different tab strip, such as during a drop on another window. 174 // put into a different tab strip, such as during a drop on another window.
172 - (void)detachTabView:(NSView*)view; 175 - (void)detachTabView:(NSView*)view;
173 176
174 // Called when the size of the window content area has changed. Override to 177 // Called when the size of the window content area has changed. Override to
175 // position specific views. Base class implementation does nothing. 178 // position specific views. Base class implementation does nothing.
176 - (void)layoutSubviews; 179 - (void)layoutSubviews;
177 @end 180 @end
178 181
179 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ 182 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.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