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

Side by Side Diff: chrome/browser/ui/cocoa/hover_close_button.h

Issue 2687633002: Fix using theme colors for the download shelf's close button. (Closed)
Patch Set: Created 3 years, 10 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_HOVER_CLOSE_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_
6 #define CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_ 6 #define CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
11 #import "ui/base/cocoa/hover_button.h" 11 #import "ui/base/cocoa/hover_button.h"
12 12
13 @class GTMKeyValueAnimation; 13 @class GTMKeyValueAnimation;
14 14
15 // The standard close button for our Mac UI which is the "x" that changes to a 15 // The standard close button for our Mac UI which is the "x" that changes to a
16 // dark circle with the "x" when you hover over it. Used to close tabs. 16 // dark circle with the "x" when you hover over it. Used to close tabs.
17 @interface HoverCloseButton : HoverButton<NSAnimationDelegate> { 17 @interface HoverCloseButton : HoverButton<NSAnimationDelegate> {
18 @private 18 @private
19 GTMKeyValueAnimation* fadeOutAnimation_; 19 GTMKeyValueAnimation* fadeOutAnimation_;
20 HoverState previousState_; 20 HoverState previousState_;
21 } 21 }
22 22
23 // The color of the icon in its idle (not-hovering) state.
24 @property(nonatomic) SkColor iconColor;
25
23 @end 26 @end
24 27
25 // A version of HoverCloseButton with the "x" icon changed to match the WebUI 28 // A version of HoverCloseButton with the "x" icon changed to match the WebUI
26 // look. 29 // look.
27 @interface WebUIHoverCloseButton : HoverCloseButton 30 @interface WebUIHoverCloseButton : HoverCloseButton
28 @end 31 @end
29 32
30 #endif // CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm ('k') | chrome/browser/ui/cocoa/hover_close_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698