diff options
Diffstat (limited to 'chrome/browser/cocoa/bookmark_button.h')
-rw-r--r-- | chrome/browser/cocoa/bookmark_button.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_button.h b/chrome/browser/cocoa/bookmark_button.h index 304a07d..4401c10 100644 --- a/chrome/browser/cocoa/bookmark_button.h +++ b/chrome/browser/cocoa/bookmark_button.h @@ -93,6 +93,14 @@ class ThemeProvider; @interface BookmarkButton : DraggableButton { @private NSObject<BookmarkButtonDelegate>* delegate_; // weak like all delegates + + // Saved pointer to the BWC for the browser window that contains this button. + // Used to lock and release bar visibility during a drag. The pointer is + // saved because the bookmark button is no longer a part of a window at the + // end of a drag operation (or, in fact, can be dragged to a completely + // different window), so there is no way to retrieve the same BWC object after + // a drag. + BrowserWindowController* visibilityDelegate_; // weak } @property(assign, nonatomic) NSObject<BookmarkButtonDelegate>* delegate; |