| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_CHROMIUM_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ |
| 6 #define CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 - (void)setShouldTheme:(BOOL)shouldTheme; | 44 - (void)setShouldTheme:(BOOL)shouldTheme; |
| 45 | 45 |
| 46 - (void)drawBorderAndFillForTheme:(GTMTheme*)theme | 46 - (void)drawBorderAndFillForTheme:(GTMTheme*)theme |
| 47 controlView:(NSView*)controlView | 47 controlView:(NSView*)controlView |
| 48 outerPath:(NSBezierPath*)outerPath | 48 outerPath:(NSBezierPath*)outerPath |
| 49 innerPath:(NSBezierPath*)innerPath | 49 innerPath:(NSBezierPath*)innerPath |
| 50 showClickedGradient:(BOOL)showClickedGradient | 50 showClickedGradient:(BOOL)showClickedGradient |
| 51 showHighlightGradient:(BOOL)showHighlightGradient | 51 showHighlightGradient:(BOOL)showHighlightGradient |
| 52 hoverAlpha:(CGFloat)hoverAlpha | 52 hoverAlpha:(CGFloat)hoverAlpha |
| 53 active:(BOOL)active | 53 active:(BOOL)active |
| 54 cellFrame:(NSRect)cellFrame; | 54 cellFrame:(NSRect)cellFrame |
| 55 defaultGradient:(NSGradient*)defaultGradient; |
| 55 | 56 |
| 56 // An image to underlay beneath the existing image; not themed. May be nil. | 57 // An image to underlay beneath the existing image; not themed. May be nil. |
| 57 - (NSImage*)underlayImage; | 58 - (NSImage*)underlayImage; |
| 58 - (void)setUnderlayImage:(NSImage*)image; | 59 - (void)setUnderlayImage:(NSImage*)image; |
| 59 | 60 |
| 60 // Let the view know when the mouse moves in and out. A timer will update | 61 // Let the view know when the mouse moves in and out. A timer will update |
| 61 // the current hoverAlpha_ based on these events. | 62 // the current hoverAlpha_ based on these events. |
| 62 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animate; | 63 - (void)setMouseInside:(BOOL)flag animate:(BOOL)animate; |
| 63 | 64 |
| 64 @property(assign, nonatomic)CGFloat hoverAlpha; | 65 @property(assign, nonatomic)CGFloat hoverAlpha; |
| 65 @end | 66 @end |
| 66 | 67 |
| 67 @interface GradientButtonCell(TestingAPI) | 68 @interface GradientButtonCell(TestingAPI) |
| 68 - (BOOL)isMouseInside; | 69 - (BOOL)isMouseInside; |
| 69 @end | 70 @end |
| 70 | 71 |
| 71 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ | 72 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ |
| OLD | NEW |