| Index: chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h
|
| diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h b/chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h
|
| index 2216ae8600a8ce13916b7e166756530e783ee541..73b36b7a74cbba4224a9d948724ba75a4dd6f4fc 100644
|
| --- a/chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h
|
| +++ b/chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h
|
| @@ -7,9 +7,19 @@
|
|
|
| #import <Cocoa/Cocoa.h>
|
|
|
| -// NSButton subclass which handles middle mouse clicking.
|
| +#import "chrome/browser/ui/cocoa/themed_window.h"
|
| +#import "ui/gfx/color_utils.h"
|
| +#include "ui/gfx/vector_icons_public.h"
|
| +
|
| +enum class ToolbarButtonImageBackgroundStyle {
|
| + HOVER,
|
| + HOVER_THEMED,
|
| + PRESSED,
|
| + PRESSED_THEMED,
|
| +};
|
|
|
| -@interface ToolbarButton : NSButton {
|
| +// NSButton subclass which handles middle mouse clicking.
|
| +@interface ToolbarButton : NSButton<ThemedWindowDrawing> {
|
| @protected
|
| // YES when middle mouse clicks should be handled.
|
| BOOL handleMiddleClick_;
|
| @@ -17,7 +27,13 @@
|
|
|
| // Whether or not to handle the mouse middle click events.
|
| @property(assign, nonatomic) BOOL handleMiddleClick;
|
| -
|
| +// Override point for subclasses to return their icon color.
|
| +- (SkColor)iconColor:(BOOL)themeIsDark;
|
| +// Sets images for each of the ToolbarButton's states from the specified
|
| +// vector icon.
|
| +- (void)setImagesFromIconId:(gfx::VectorIconId)iconId;
|
| +// Override point for subclasses to set the button's icons.
|
| +- (void)resetIcons;
|
| @end
|
|
|
| @interface ToolbarButton (ExposedForTesting)
|
|
|