summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_controller.mm
diff options
context:
space:
mode:
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