OLD | NEW |
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 UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ |
| 6 #define UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ |
| 7 |
5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
6 | 9 |
7 #include "base/memory/scoped_nsobject.h" | 10 #import "base/memory/scoped_nsobject.h" |
8 #include "chrome/browser/ui/cocoa/hover_button.h" | 11 #import "ui/base/cocoa/hover_button.h" |
9 | 12 |
10 // A button that changes images when you hover over it and click it. | 13 // A button that changes images when you hover over it and click it. |
11 @interface HoverImageButton : HoverButton { | 14 @interface HoverImageButton : HoverButton { |
12 @private | 15 @private |
13 float defaultOpacity_; | 16 float defaultOpacity_; |
14 float hoverOpacity_; | 17 float hoverOpacity_; |
15 float pressedOpacity_; | 18 float pressedOpacity_; |
16 | 19 |
17 scoped_nsobject<NSImage> defaultImage_; | 20 scoped_nsobject<NSImage> defaultImage_; |
18 scoped_nsobject<NSImage> hoverImage_; | 21 scoped_nsobject<NSImage> hoverImage_; |
(...skipping 12 matching lines...) Expand all Loading... |
31 // Sets the default opacity. | 34 // Sets the default opacity. |
32 - (void)setDefaultOpacity:(float)opacity; | 35 - (void)setDefaultOpacity:(float)opacity; |
33 | 36 |
34 // Sets the opacity on hover. | 37 // Sets the opacity on hover. |
35 - (void)setHoverOpacity:(float)opacity; | 38 - (void)setHoverOpacity:(float)opacity; |
36 | 39 |
37 // Sets the opacity when pressed. | 40 // Sets the opacity when pressed. |
38 - (void)setPressedOpacity:(float)opacity; | 41 - (void)setPressedOpacity:(float)opacity; |
39 | 42 |
40 @end | 43 @end |
| 44 |
| 45 #endif // UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ |
OLD | NEW |