diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 22:56:47 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 22:56:47 +0000 |
commit | e38baf689097b646f0200f9698d8b91f6e1daf92 (patch) | |
tree | 1b05d6647c4a20fd6fb6339a61b72f162174aae3 /chrome/browser/cocoa/bookmark_bar_toolbar_view.h | |
parent | db343035f369d9da377762f784fc3a7ddabaecf6 (diff) | |
download | chromium_src-e38baf689097b646f0200f9698d8b91f6e1daf92.zip chromium_src-e38baf689097b646f0200f9698d8b91f6e1daf92.tar.gz chromium_src-e38baf689097b646f0200f9698d8b91f6e1daf92.tar.bz2 |
Mac: animate NTP detached bookmark bar <-> normal bookmark bar.
Also mostly fix the placement of the "For quick access, place your bookmarks here [...]" message (when there are no bookmarks). It's not quite right in the new animation (detached <-> normal).
BUG=25600, 27692, 27693
TEST=Go to NTP and press Cmd-Shift-B a few times while watching closely. The detached bar should "morph" smoothly to the normal bar and vice versa. Switch themes and repeat; please test at least the default theme and the Brushed theme.
Review URL: http://codereview.chromium.org/400020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32425 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_toolbar_view.h')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_toolbar_view.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_toolbar_view.h b/chrome/browser/cocoa/bookmark_bar_toolbar_view.h index 2232309..b2b08ac 100644 --- a/chrome/browser/cocoa/bookmark_bar_toolbar_view.h +++ b/chrome/browser/cocoa/bookmark_bar_toolbar_view.h @@ -13,6 +13,7 @@ #import <Cocoa/Cocoa.h> #import "chrome/browser/cocoa/animatable_view.h" +#import "chrome/browser/cocoa/bookmark_bar_state.h" @class BookmarkBarView; class TabContents; @@ -20,7 +21,7 @@ class ThemeProvider; // An interface to allow mocking of a BookmarkBarController by the // BookmarkBarToolbarView. -@protocol BookmarkBarToolbarViewController +@protocol BookmarkBarToolbarViewController <BookmarkBarState> // Displaying the bookmark toolbar background in bubble (floating) mode requires // the size of the currently selected tab to properly calculate where the // background image is joined. @@ -29,10 +30,6 @@ class ThemeProvider; // Current theme provider, passed to the cross platform NtpBackgroundUtil class. - (ThemeProvider*)themeProvider; -// Returns true if the bookmark bar should be drawn as if it's a disconnected -// bookmark bar on the New Tag Page. -- (BOOL)isShownAsDetachedBar; - @end @interface BookmarkBarToolbarView : AnimatableView { |