diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-14 17:55:19 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-14 17:55:19 +0000 |
commit | 2abf2acb3ab6c5a5a1f25f8a586e4385d5f9a125 (patch) | |
tree | 57f0e566e42a3e8e63161370946cf1a81b396a58 /chrome/browser/cocoa/bookmark_bar_controller.mm | |
parent | 89440824cd6ef0f9cf3a286c8aa55e916ab20aa6 (diff) | |
download | chromium_src-2abf2acb3ab6c5a5a1f25f8a586e4385d5f9a125.zip chromium_src-2abf2acb3ab6c5a5a1f25f8a586e4385d5f9a125.tar.gz chromium_src-2abf2acb3ab6c5a5a1f25f8a586e4385d5f9a125.tar.bz2 |
[Mac] Adds a BookmarkButtonDelegate method to retrieve the top-level browser window. Used to lock bar visibility when dragging.
BUG=40740
TEST=Go Fullscreen. Drag a bookmark button that is inside a folder. When the folder disappears, the overlay bar should stay visible.
Review URL: http://codereview.chromium.org/1610023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_controller.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller.mm b/chrome/browser/cocoa/bookmark_bar_controller.mm index 79b228b..fe0c17b 100644 --- a/chrome/browser/cocoa/bookmark_bar_controller.mm +++ b/chrome/browser/cocoa/bookmark_bar_controller.mm @@ -994,6 +994,10 @@ static BOOL ValueInRangeInclusive(CGFloat low, CGFloat value, CGFloat high) { ![self isAnimatingToState:bookmarks::kDetachedState]; } +- (NSWindow*)browserWindow { + return [[self view] window]; +} + // Enable or disable items. We are the menu delegate for both the bar // and for bookmark folder buttons. - (BOOL)validateUserInterfaceItem:(id)item { |