diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 01:01:17 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 01:01:17 +0000 |
commit | 919905ddd11db90bf0b4a03f9b3e79b9c289aa04 (patch) | |
tree | e5586bbcff8540fdb241845f7f7e075fc33ad996 /chrome/browser/cocoa/browser_window_cocoa.mm | |
parent | 0207043ab2d23d96a700bcb9bfb9044bd240ae7b (diff) | |
download | chromium_src-919905ddd11db90bf0b4a03f9b3e79b9c289aa04.zip chromium_src-919905ddd11db90bf0b4a03f9b3e79b9c289aa04.tar.gz chromium_src-919905ddd11db90bf0b4a03f9b3e79b9c289aa04.tar.bz2 |
Mac: Animate the bookmark bar showing/hiding.
There's a huge refactoring of the bookmark bar controller in this CL, so that animation-related code is in only a few places (instead of scattered all over the place).
Changes to BookmarkBar.xib: Since BookmarkBarToolbarView now inherits from AnimatableView, I had to hook up its delegate_ member to File's Owner (i.e., the BookmarkBarController).
Not yet implemented: morphing between the detached bar (on the NTP) and anything else.
BUG=25600
TEST=Go to a normal page, show/hide the bookmark bar (Shift-Cmd-B), watch it animate.
Review URL: http://codereview.chromium.org/384105
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_cocoa.mm')
-rw-r--r-- | chrome/browser/cocoa/browser_window_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/browser_window_cocoa.mm b/chrome/browser/cocoa/browser_window_cocoa.mm index 8e5b50b..f38dd2d 100644 --- a/chrome/browser/cocoa/browser_window_cocoa.mm +++ b/chrome/browser/cocoa/browser_window_cocoa.mm @@ -423,7 +423,7 @@ void BrowserWindowCocoa::Observe(NotificationType type, // Only the key window gets a direct toggle from the menu. // Other windows hear about it from the notification. case NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED: - [controller_ updateBookmarkBarVisibility]; + [controller_ updateBookmarkBarVisibilityWithAnimation:YES]; break; default: NOTREACHED(); // we don't ask for anything else! |