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

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

Issue 2126043002: [Material][Mac] Fix Default Favicon's Color (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for rsesek 2 Created 4 years, 5 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_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_
7 7
8 #include <ApplicationServices/ApplicationServices.h> 8 #include <ApplicationServices/ApplicationServices.h>
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 17 matching lines...) Expand all
28 kAlertNone = 0, // Obj-C initializes to this. 28 kAlertNone = 0, // Obj-C initializes to this.
29 kAlertRising, 29 kAlertRising,
30 kAlertHolding, 30 kAlertHolding,
31 kAlertFalling 31 kAlertFalling
32 }; 32 };
33 33
34 // When the window doesn't have focus then we want to draw the button with a 34 // When the window doesn't have focus then we want to draw the button with a
35 // slightly lighter color. We do this by just reducing the alpha. 35 // slightly lighter color. We do this by just reducing the alpha.
36 const CGFloat kImageNoFocusAlpha = 0.65; 36 const CGFloat kImageNoFocusAlpha = 0.65;
37 37
38 // The default COLOR_TAB_TEXT color.
39 const SkColor kDefaultTabTextColor = SkColorSetARGB(0xA0, 0x00, 0x00, 0x00);
40
38 } // namespace tabs 41 } // namespace tabs
39 42
40 @class TabController, TabWindowController, GTMFadeTruncatingTextFieldCell; 43 @class TabController, TabWindowController, GTMFadeTruncatingTextFieldCell;
41 44
42 // A view that handles the event tracking (clicking and dragging) for a tab 45 // A view that handles the event tracking (clicking and dragging) for a tab
43 // on the tab strip. Relies on an associated TabController to provide a 46 // on the tab strip. Relies on an associated TabController to provide a
44 // target/action for selecting the tab. 47 // target/action for selecting the tab.
45 48
46 @interface TabView : NSView<ThemedWindowDrawing> { 49 @interface TabView : NSView<ThemedWindowDrawing> {
47 @private 50 @private
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 - (void)startAlert; 117 - (void)startAlert;
115 118
116 // Stop showing the "alert" glow; this won't immediately wipe out any glow, but 119 // Stop showing the "alert" glow; this won't immediately wipe out any glow, but
117 // will make it fade away. 120 // will make it fade away.
118 - (void)cancelAlert; 121 - (void)cancelAlert;
119 122
120 // Returns the width of the largest part of the tab that is available for the 123 // Returns the width of the largest part of the tab that is available for the
121 // user to click to select/activate the tab. 124 // user to click to select/activate the tab.
122 - (int)widthOfLargestSelectableRegion; 125 - (int)widthOfLargestSelectableRegion;
123 126
124 // Returns the Material Design color of the "x". 127 // Returns the Material Design color of the icons. Used by the alert indicator,
125 - (SkColor)closeButtonColor; 128 // the "x", and the default favicon.
129 - (SkColor)iconColor;
126 130
127 // Updates the label font after changes to either state or the system "Increase 131 // Updates the label font after changes to either state or the system "Increase
128 // Contrast" setting. 132 // Contrast" setting.
129 - (void)updateLabelFont; 133 - (void)updateLabelFont;
130 134
131 // Called when systemwide accessibility options change. 135 // Called when systemwide accessibility options change.
132 - (void)accessibilityOptionsDidChange:(id)ignored; 136 - (void)accessibilityOptionsDidChange:(id)ignored;
133 137
134 @end 138 @end
135 139
136 // The TabController |controller_| is not the only owner of this view. If the 140 // The TabController |controller_| is not the only owner of this view. If the
137 // controller is released before this view, then we could be hanging onto a 141 // controller is released before this view, then we could be hanging onto a
138 // garbage pointer. To prevent this, the TabController uses this interface to 142 // garbage pointer. To prevent this, the TabController uses this interface to
139 // clear the |controller_| pointer when it is dying. 143 // clear the |controller_| pointer when it is dying.
140 @interface TabView (TabControllerInterface) 144 @interface TabView (TabControllerInterface)
141 - (void)setController:(TabController*)controller; 145 - (void)setController:(TabController*)controller;
142 @end 146 @end
143 147
144 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_ 148 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698