Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / base / cocoa / hover_image_button.h
bloba00163fb53bf4cd7e028ea1b5dee9df9e80274c9
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
3 // found in the LICENSE file.
5 #ifndef UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_
6 #define UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_
8 #import <Cocoa/Cocoa.h>
10 #import "base/mac/scoped_nsobject.h"
11 #import "ui/base/cocoa/hover_button.h"
12 #include "ui/base/ui_base_export.h"
14 // A button that changes images when you hover over it and click it.
15 UI_BASE_EXPORT
16 @interface HoverImageButton : HoverButton {
17 @private
18 base::scoped_nsobject<NSImage> defaultImage_;
19 base::scoped_nsobject<NSImage> hoverImage_;
20 base::scoped_nsobject<NSImage> pressedImage_;
23 // Sets the default image.
24 - (void)setDefaultImage:(NSImage*)image;
26 // Sets the hover image.
27 - (void)setHoverImage:(NSImage*)image;
29 // Sets the pressed image.
30 - (void)setPressedImage:(NSImage*)image;
32 @end
34 #endif // UI_BASE_COCOA_HOVER_IMAGE_BUTTON_H_