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_ | 5 #ifndef UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ |
6 #define UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ | 6 #define UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/memory/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
11 #import "ui/base/cocoa/hover_button.h" | 11 #import "ui/base/cocoa/hover_button.h" |
12 #include "ui/base/ui_export.h" | 12 #include "ui/base/ui_export.h" |
13 | 13 |
14 // A button that changes images when you hover over it and click it. | 14 // A button that changes images when you hover over it and click it. |
15 UI_EXPORT | 15 UI_EXPORT |
16 @interface HoverImageButton : HoverButton { | 16 @interface HoverImageButton : HoverButton { |
17 @private | 17 @private |
18 scoped_nsobject<NSImage> defaultImage_; | 18 base::scoped_nsobject<NSImage> defaultImage_; |
19 scoped_nsobject<NSImage> hoverImage_; | 19 base::scoped_nsobject<NSImage> hoverImage_; |
20 scoped_nsobject<NSImage> pressedImage_; | 20 base::scoped_nsobject<NSImage> pressedImage_; |
21 } | 21 } |
22 | 22 |
23 // Sets the default image. | 23 // Sets the default image. |
24 - (void)setDefaultImage:(NSImage*)image; | 24 - (void)setDefaultImage:(NSImage*)image; |
25 | 25 |
26 // Sets the hover image. | 26 // Sets the hover image. |
27 - (void)setHoverImage:(NSImage*)image; | 27 - (void)setHoverImage:(NSImage*)image; |
28 | 28 |
29 // Sets the pressed image. | 29 // Sets the pressed image. |
30 - (void)setPressedImage:(NSImage*)image; | 30 - (void)setPressedImage:(NSImage*)image; |
31 | 31 |
32 @end | 32 @end |
33 | 33 |
34 #endif // UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ | 34 #endif // UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_ |
OLD | NEW |