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

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

Issue 2638873002: Revert of [Mac] Fix rough-looking profile picker text, especially with a dark theme. (Closed)
Patch Set: 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_STRIP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/background_gradient_view.h" 11 #import "chrome/browser/ui/cocoa/background_gradient_view.h"
12 #import "chrome/browser/ui/cocoa/url_drop_target.h" 12 #import "chrome/browser/ui/cocoa/url_drop_target.h"
13 13
14 @class NewTabButton; 14 @class NewTabButton;
15 @class TabStripController; 15 @class TabStripController;
16 16
17 // A view class that handles rendering the tab strip and drops of URLS with 17 // A view class that handles rendering the tab strip and drops of URLS with
18 // a positioning locator for drop feedback. 18 // a positioning locator for drop feedback.
19 19
20 @interface TabStripView : BackgroundGradientView<URLDropTarget> { 20 @interface TabStripView : BackgroundGradientView<URLDropTarget> {
21 @private 21 @private
22 TabStripController* controller_; // Weak; owns us.
23
22 NSTimeInterval lastMouseUp_; 24 NSTimeInterval lastMouseUp_;
23 25
24 // Handles being a drag-and-drop target. 26 // Handles being a drag-and-drop target.
25 base::scoped_nsobject<URLDropTargetHandler> dropHandler_; 27 base::scoped_nsobject<URLDropTargetHandler> dropHandler_;
26 28
27 base::scoped_nsobject<NewTabButton> newTabButton_; 29 base::scoped_nsobject<NewTabButton> newTabButton_;
28 30
29 // Whether the drop-indicator arrow is shown, and if it is, the coordinate of 31 // Whether the drop-indicator arrow is shown, and if it is, the coordinate of
30 // its tip. 32 // its tip.
31 BOOL dropArrowShown_; 33 BOOL dropArrowShown_;
32 NSPoint dropArrowPosition_; 34 NSPoint dropArrowPosition_;
35 BOOL inATabDraggingOverlayWindow_;
36 BOOL visualEffectsDisabledForFullscreen_;
33 } 37 }
34 38
35 @property(assign, nonatomic) TabStripController* controller;
36 @property(assign, nonatomic) BOOL dropArrowShown; 39 @property(assign, nonatomic) BOOL dropArrowShown;
37 @property(assign, nonatomic) NSPoint dropArrowPosition; 40 @property(assign, nonatomic) NSPoint dropArrowPosition;
41 @property(assign, nonatomic) BOOL inATabDraggingOverlayWindow;
38 42
39 // Name starts with "get" because methods staring with "new" return retained 43 // Name starts with "get" because methods staring with "new" return retained
40 // objects according to Cocoa's create rule. 44 // objects according to Cocoa's create rule.
41 - (NewTabButton*)getNewTabButton; 45 - (NewTabButton*)getNewTabButton;
46
47 // Leaving visual effects enabled when fullscreen results in higher power
48 // consumption. This is used to disable effects when fullscreen.
49 - (void)setVisualEffectsDisabledForFullscreen:(BOOL)fullscreen;
50 @end
51
52 // Interface for the controller to set and clear the weak reference to itself.
53 @interface TabStripView (TabStripControllerInterface)
54 - (void)setController:(TabStripController*)controller;
42 @end 55 @end
43 56
44 // Protected methods subclasses can override to alter behavior. Clients should 57 // Protected methods subclasses can override to alter behavior. Clients should
45 // not call these directly. 58 // not call these directly.
46 @interface TabStripView (Protected) 59 @interface TabStripView (Protected)
47 - (void)drawBottomBorder:(NSRect)bounds; 60 - (void)drawBottomBorder:(NSRect)bounds;
48 - (BOOL)doubleClickMinimizesWindow; 61 - (BOOL)doubleClickMinimizesWindow;
49 @end 62 @end
50 63
51 @interface TabStripView (TestingAPI) 64 @interface TabStripView (TestingAPI)
52 - (void)setNewTabButton:(NewTabButton*)button; 65 - (void)setNewTabButton:(NewTabButton*)button;
53 @end 66 @end
54 67
55 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_ 68 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698