Index: chrome/browser/cocoa/gradient_button_cell.h |
=================================================================== |
--- chrome/browser/cocoa/gradient_button_cell.h (revision 21145) |
+++ chrome/browser/cocoa/gradient_button_cell.h (working copy) |
@@ -9,12 +9,15 @@ |
#include "base/scoped_nsobject.h" |
+@class GTMTheme; |
+ |
// Base class for button cells for toolbar and bookmark bar. |
// |
// This is a button cell that handles drawing/highlighting of buttons. |
// The appearance is determined by setting the cell's tag (not the |
// view's) to one of the constants below (ButtonType). |
+// Set this as the cell's tag. |
enum { |
kLeftButtonType = -1, |
kLeftButtonWithShadowType = -2, |
@@ -33,6 +36,15 @@ |
} |
// Turn off theming. Temporary work-around. |
- (void)setShouldTheme:(BOOL)shouldTheme; |
+ |
+- (void)drawBorderAndFillForTheme:(GTMTheme*)theme |
+ controlView:(NSView*)controlView |
+ outerPath:(NSBezierPath*)outerPath |
+ innerPath:(NSBezierPath*)innerPath |
+ showHighlightGradient:(BOOL)showHighlightGradient |
+ showClickedGradient:(BOOL)showClickedGradient |
+ active:(BOOL)active |
+ cellFrame:(NSRect)cellFrame; |
@end |
@interface GradientButtonCell(TestingAPI) |