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

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

Issue 2430493002: [Mac] Fix rough-looking profile picker text, especially with a dark theme. (Closed)
Patch Set: Scopify! Created 3 years, 11 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
11 // know anything about the actual tab implementation or model, as that is fairly 11 // know anything about the actual tab implementation or model, as that is fairly
12 // application-specific. It only provides an API to be overridden by subclasses 12 // application-specific. It only provides an API to be overridden by subclasses
13 // to fill in the details. 13 // to fill in the details.
14 14
15 #import <Cocoa/Cocoa.h> 15 #import <Cocoa/Cocoa.h>
16 16
17 #include "base/mac/scoped_nsobject.h" 17 #include "base/mac/scoped_nsobject.h"
18 18
19 @class FastResizeView; 19 @class FastResizeView;
20 @class FocusTracker; 20 @class FocusTracker;
21 @class NSVisualEffectView; 21 @class TabStripBackgroundView;
22 @class TabStripView; 22 @class TabStripView;
23 @class TabView; 23 @class TabView;
24 24
25 @interface TabWindowController : NSWindowController<NSWindowDelegate> { 25 @interface TabWindowController : NSWindowController<NSWindowDelegate> {
26 @private 26 @private
27 // Wrapper view around web content, and the developer tools view. 27 // Wrapper view around web content, and the developer tools view.
28 base::scoped_nsobject<FastResizeView> tabContentArea_; 28 base::scoped_nsobject<FastResizeView> tabContentArea_;
29 base::scoped_nsobject<NSView> tabStripBackgroundView_; 29 base::scoped_nsobject<TabStripBackgroundView> tabStripBackgroundView_;
30
31 // Used to blur the titlebar. nil if window does not have titlebar.
32 base::scoped_nsobject<NSVisualEffectView> visualEffectView_;
33 30
34 // The tab strip overlaps the titlebar of the window. 31 // The tab strip overlaps the titlebar of the window.
35 base::scoped_nsobject<TabStripView> tabStripView_; 32 base::scoped_nsobject<TabStripView> tabStripView_;
36 33
37 // No views should be added directly to the root view. Views that overlap 34 // No views should be added directly to the root view. Views that overlap
38 // the title bar should be added to the window's contentView. All other views 35 // the title bar should be added to the window's contentView. All other views
39 // should be added to chromeContentView_. This allows tab dragging and 36 // should be added to chromeContentView_. This allows tab dragging and
40 // fullscreen logic to easily move the views that don't need special 37 // fullscreen logic to easily move the views that don't need special
41 // treatment. 38 // treatment.
42 base::scoped_nsobject<NSView> chromeContentView_; 39 base::scoped_nsobject<NSView> chromeContentView_;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Tells the tab strip to forget about this tab in preparation for it being 174 // Tells the tab strip to forget about this tab in preparation for it being
178 // put into a different tab strip, such as during a drop on another window. 175 // put into a different tab strip, such as during a drop on another window.
179 - (void)detachTabView:(NSView*)view; 176 - (void)detachTabView:(NSView*)view;
180 177
181 // Called when the size of the window content area has changed. Override to 178 // Called when the size of the window content area has changed. Override to
182 // position specific views. Base class implementation does nothing. 179 // position specific views. Base class implementation does nothing.
183 - (void)layoutSubviews; 180 - (void)layoutSubviews;
184 @end 181 @end
185 182
186 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_ 183 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_view.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