| 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 27 matching lines...) Expand all Loading... |
| 38 NSTimeInterval lastHoverUpdate_; | 38 NSTimeInterval lastHoverUpdate_; |
| 39 scoped_nsobject<NSGradient> gradient_; | 39 scoped_nsobject<NSGradient> gradient_; |
| 40 scoped_nsobject<NSImage> underlayImage_; | 40 scoped_nsobject<NSImage> underlayImage_; |
| 41 } | 41 } |
| 42 | 42 |
| 43 // Turn off theming. Temporary work-around. | 43 // Turn off theming. Temporary work-around. |
| 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 | |
| 49 innerPath:(NSBezierPath*)innerPath | 48 innerPath:(NSBezierPath*)innerPath |
| 50 showClickedGradient:(BOOL)showClickedGradient | 49 showClickedGradient:(BOOL)showClickedGradient |
| 51 showHighlightGradient:(BOOL)showHighlightGradient | 50 showHighlightGradient:(BOOL)showHighlightGradient |
| 52 hoverAlpha:(CGFloat)hoverAlpha | 51 hoverAlpha:(CGFloat)hoverAlpha |
| 53 active:(BOOL)active | 52 active:(BOOL)active |
| 54 cellFrame:(NSRect)cellFrame | 53 cellFrame:(NSRect)cellFrame |
| 55 defaultGradient:(NSGradient*)defaultGradient; | 54 defaultGradient:(NSGradient*)defaultGradient; |
| 56 | 55 |
| 57 // An image to underlay beneath the existing image; not themed. May be nil. | 56 // An image to underlay beneath the existing image; not themed. May be nil. |
| 58 - (NSImage*)underlayImage; | 57 - (NSImage*)underlayImage; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 69 inView:(NSView*)controlView; | 68 inView:(NSView*)controlView; |
| 70 | 69 |
| 71 @property(assign, nonatomic)CGFloat hoverAlpha; | 70 @property(assign, nonatomic)CGFloat hoverAlpha; |
| 72 @end | 71 @end |
| 73 | 72 |
| 74 @interface GradientButtonCell(TestingAPI) | 73 @interface GradientButtonCell(TestingAPI) |
| 75 - (BOOL)isMouseInside; | 74 - (BOOL)isMouseInside; |
| 76 @end | 75 @end |
| 77 | 76 |
| 78 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ | 77 #endif // CHROME_BROWSER_COCOA_CHROMIUM_BUTTON_CELL_H_ |
| OLD | NEW |