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

Side by Side Diff: ui/base/cocoa/hover_image_button.h

Issue 12937008: Move HoverButton and HoverImageButton from chrome/browser/ui/cocoa/ to ui/base/cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/cocoa/hover_button.mm ('k') | ui/base/cocoa/hover_image_button.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/base/cocoa/hover_button.mm ('k') | ui/base/cocoa/hover_image_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698