summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_button.h
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 21:47:59 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 21:47:59 +0000
commitde29ea1e64e8cd1a7b662b3aca4aaca33ec0879e (patch)
tree87c1c602c85cb7e32b4d8cf14f5afd0db38663e5 /chrome/browser/cocoa/bookmark_button.h
parentc0dad6e6a80bbc1c4f74dd9d21e88f2d64512978 (diff)
downloadchromium_src-de29ea1e64e8cd1a7b662b3aca4aaca33ec0879e.zip
chromium_src-de29ea1e64e8cd1a7b662b3aca4aaca33ec0879e.tar.gz
chromium_src-de29ea1e64e8cd1a7b662b3aca4aaca33ec0879e.tar.bz2
[Mac] Lock bar visibility during a bookmark button drag, forcing the fullscreen overlay to stay shown.
BUG=37433 TEST=Go fullscreen. Open a folder on the bookmark bar and drag a button around such that the folder closes. The overlay should not disappear. Review URL: http://codereview.chromium.org/669166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_button.h')
-rw-r--r--chrome/browser/cocoa/bookmark_button.h8
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;