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

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

Issue 1974733003: [Material][Mac] Remove NSVisualEffectView from windows with titlebars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 base::scoped_nsobject<FocusTracker> focusBeforeOverlay_; 47 base::scoped_nsobject<FocusTracker> focusBeforeOverlay_;
48 BOOL closeDeferred_; // If YES, call performClose: in removeOverlay:. 48 BOOL closeDeferred_; // If YES, call performClose: in removeOverlay:.
49 } 49 }
50 @property(readonly, nonatomic) NSView* tabStripBackgroundView; 50 @property(readonly, nonatomic) NSView* tabStripBackgroundView;
51 @property(readonly, nonatomic) TabStripView* tabStripView; 51 @property(readonly, nonatomic) TabStripView* tabStripView;
52 @property(readonly, nonatomic) FastResizeView* tabContentArea; 52 @property(readonly, nonatomic) FastResizeView* tabContentArea;
53 @property(readonly, nonatomic) NSView* chromeContentView; 53 @property(readonly, nonatomic) NSView* chromeContentView;
54 54
55 // This is the designated initializer for this class. 55 // This is the designated initializer for this class.
56 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip; 56 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip
57 titleBar:(BOOL)hasTitleBar;
57 58
58 // Used during tab dragging to turn on/off the overlay window when a tab 59 // Used during tab dragging to turn on/off the overlay window when a tab
59 // is torn off. If -deferPerformClose (below) is used, -removeOverlay will 60 // is torn off. If -deferPerformClose (below) is used, -removeOverlay will
60 // cause the controller to be autoreleased before returning. 61 // cause the controller to be autoreleased before returning.
61 - (void)showOverlay; 62 - (void)showOverlay;
62 - (void)removeOverlay; 63 - (void)removeOverlay;
63 - (NSWindow*)overlayWindow; 64 - (NSWindow*)overlayWindow;
64 65
65 // Returns YES if it is ok to constrain the window's frame to fit the screen. 66 // Returns YES if it is ok to constrain the window's frame to fit the screen.
66 - (BOOL)shouldConstrainFrameRect; 67 - (BOOL)shouldConstrainFrameRect;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Tells the tab strip to forget about this tab in preparation for it being 170 // 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. 171 // put into a different tab strip, such as during a drop on another window.
171 - (void)detachTabView:(NSView*)view; 172 - (void)detachTabView:(NSView*)view;
172 173
173 // Called when the size of the window content area has changed. Override to 174 // Called when the size of the window content area has changed. Override to
174 // position specific views. Base class implementation does nothing. 175 // position specific views. Base class implementation does nothing.
175 - (void)layoutSubviews; 176 - (void)layoutSubviews;
176 @end 177 @end
177 178
178 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ 179 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698