summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_controller.mm
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 13:58:17 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 13:58:17 +0000
commit8fdac81e046a1ae0cb085a5f549aa6379a5a069f (patch)
tree567e4e559c70db5c2941c0c62f42f40bf13598ac /chrome/browser/cocoa/bookmark_bar_controller.mm
parent1e76d8ad90eae14be11f5151c8670a89b3e19aec (diff)
downloadchromium_src-8fdac81e046a1ae0cb085a5f549aa6379a5a069f.zip
chromium_src-8fdac81e046a1ae0cb085a5f549aa6379a5a069f.tar.gz
chromium_src-8fdac81e046a1ae0cb085a5f549aa6379a5a069f.tar.bz2
Add unit test for bookmark bar controller.
Review URL: http://codereview.chromium.org/73051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_controller.mm')
-rw-r--r--chrome/browser/cocoa/bookmark_bar_controller.mm9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller.mm b/chrome/browser/cocoa/bookmark_bar_controller.mm
index 74cc215..55ff71d 100644
--- a/chrome/browser/cocoa/bookmark_bar_controller.mm
+++ b/chrome/browser/cocoa/bookmark_bar_controller.mm
@@ -11,6 +11,7 @@
@interface BookmarkBarController(Private)
- (void)applyContentAreaOffset:(BOOL)apply;
- (void)positionBar;
+- (void)showBookmarkBar:(BOOL)enable;
@end
@implementation BookmarkBarController
@@ -55,11 +56,11 @@
[bookmarkView_ setFrame:barFrame];
}
-// Show or hide the bar based on the value of enable. Handles animating the
+// Show or hide the bar based on the value of |enable|. Handles animating the
// resize of the content view.
- (void)showBookmarkBar:(BOOL)enable {
contentAreaHasOffset_ = enable;
- [[bookmarkView_ animator] setHidden:enable ? NO : YES];
+ [bookmarkView_ setHidden:enable ? NO : YES];
[self applyContentAreaOffset:enable];
if (enable) {
@@ -108,4 +109,8 @@
[self showBookmarkBar:visible ? YES : NO];
}
+- (NSView*)view {
+ return bookmarkView_;
+}
+
@end