| Index: chrome/browser/cocoa/extensions/browser_action_button.h
|
| ===================================================================
|
| --- chrome/browser/cocoa/extensions/browser_action_button.h (revision 42818)
|
| +++ chrome/browser/cocoa/extensions/browser_action_button.h (working copy)
|
| @@ -20,6 +20,11 @@
|
| // be updated.
|
| extern const NSString* kBrowserActionButtonUpdatedNotification;
|
|
|
| +// Fired on each drag event while the user is moving the button.
|
| +extern const NSString* kBrowserActionButtonDraggingNotification;
|
| +// Fired when the user drops the button.
|
| +extern const NSString* kBrowserActionButtonDragEndNotification;
|
| +
|
| extern const CGFloat kBrowserActionWidth;
|
|
|
| @interface BrowserActionButton : NSButton {
|
| @@ -34,33 +39,44 @@
|
| // The icon specific to the active tab.
|
| scoped_nsobject<NSImage> tabSpecificIcon_;
|
|
|
| + // Used to move the button and query whether a button is currently animating.
|
| + scoped_nsobject<NSAnimation> moveAnimation_;
|
| +
|
| // The extension for this button. Weak.
|
| Extension* extension_;
|
|
|
| // The ID of the active tab.
|
| int tabId_;
|
| +
|
| + // Whether the button is currently being dragged.
|
| + BOOL isBeingDragged_;
|
| }
|
|
|
| - (id)initWithExtension:(Extension*)extension
|
| profile:(Profile*)profile
|
| tabId:(int)tabId;
|
|
|
| +- (void)setFrame:(NSRect)frameRect animate:(BOOL)animate;
|
| +
|
| - (void)setDefaultIcon:(NSImage*)image;
|
|
|
| - (void)setTabSpecificIcon:(NSImage*)image;
|
|
|
| - (void)updateState;
|
|
|
| +- (BOOL)isAnimating;
|
| +
|
| // Returns a pointer to an autoreleased NSImage with the badge, shadow and
|
| // cell image drawn into it.
|
| - (NSImage*)compositedImage;
|
|
|
| +@property(readonly, nonatomic) BOOL isBeingDragged;
|
| +@property(readonly, nonatomic) Extension* extension;
|
| @property(readwrite, nonatomic) int tabId;
|
| -@property(readonly, nonatomic) Extension* extension;
|
|
|
| @end
|
|
|
| -@interface BrowserActionCell : ToolbarButtonCell {
|
| +@interface BrowserActionCell : GradientButtonCell {
|
| @private
|
| // The current tab ID used when drawing the cell.
|
| int tabId_;
|
|
|