diff options
Diffstat (limited to 'chrome/browser/cocoa/bookmark_button.h')
-rw-r--r-- | chrome/browser/cocoa/bookmark_button.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_button.h b/chrome/browser/cocoa/bookmark_button.h index 3459809..56d9bc1 100644 --- a/chrome/browser/cocoa/bookmark_button.h +++ b/chrome/browser/cocoa/bookmark_button.h @@ -40,6 +40,13 @@ class ThemeProvider; // Returns the top-level window for this button. - (NSWindow*)browserWindow; +// Returns YES if the bookmark button can be dragged to the trash, NO otherwise. +- (BOOL)canDragBookmarkButtonToTrash:(BookmarkButton*)button; + +// This is called after the user has dropped the bookmark button on the trash. +// The delegate can use this event to delete the bookmark. +- (void)didDragBookmarkToTrash:(BookmarkButton*)button; + @end @@ -180,6 +187,10 @@ class ThemeProvider; // different window), so there is no way to retrieve the same BWC object after // a drag. BrowserWindowController* visibilityDelegate_; // weak + + NSPoint dragMouseOffset_; + NSPoint dragEndScreenLocation_; + BOOL dragPending_; } @property(assign, nonatomic) NSObject<BookmarkButtonDelegate>* delegate; @@ -205,6 +216,10 @@ class ThemeProvider; // Return continuous pulse state. - (BOOL)isContinuousPulsing; +// Return the location in screen coordinates where the remove animation should +// be displayed. +- (NSPoint)screenLocationForRemoveAnimation; + @end // @interface BookmarkButton |