| OLD | NEW |
| 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 #import "ui/base/cocoa/hover_button.h" | 11 #import "ui/base/cocoa/hover_button.h" |
| 11 | 12 |
| 12 @class GTMKeyValueAnimation; | 13 @class GTMKeyValueAnimation; |
| 13 | 14 |
| 14 // 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 |
| 15 // 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. |
| 16 @interface HoverCloseButton : HoverButton<NSAnimationDelegate> { | 17 @interface HoverCloseButton : HoverButton<NSAnimationDelegate> { |
| 17 @private | 18 @private |
| 18 GTMKeyValueAnimation* fadeOutAnimation_; | 19 GTMKeyValueAnimation* fadeOutAnimation_; |
| 19 HoverState previousState_; | 20 HoverState previousState_; |
| 20 } | 21 } |
| 21 | 22 |
| 23 // Returns the Material Design color of the "x". |
| 24 - (SkColor)iconColor; |
| 22 @end | 25 @end |
| 23 | 26 |
| 24 // A version of HoverCloseButton with the "x" icon changed to match the WebUI | 27 // A version of HoverCloseButton with the "x" icon changed to match the WebUI |
| 25 // look. | 28 // look. |
| 26 @interface WebUIHoverCloseButton : HoverCloseButton | 29 @interface WebUIHoverCloseButton : HoverCloseButton |
| 27 @end | 30 @end |
| 28 | 31 |
| 29 #endif // CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_ | 32 #endif // CHROME_BROWSER_UI_COCOA_HOVER_CLOSE_BUTTON_H_ |
| OLD | NEW |