Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 11428149: Alternate NTP: Move bookmark bar to bottom (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 92bb2f412e33101fe96f65fb38b947a0fa212a31..f9cd50b92537499eecf440019213578f66dc4e60 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1442,6 +1442,10 @@ enum {
withAnimation:animate];
}
+- (BookmarkBarController*)bookmarkBarController {
+ return bookmarkBarController_;
+}
+
- (BOOL)isDownloadShelfVisible {
return downloadShelfController_ != nil &&
[downloadShelfController_ isVisible];
@@ -1769,6 +1773,11 @@ enum {
// do this.
if ([findBarCocoaController_ isFindBarVisible])
[self layoutSubviews];
+
+ if ([self placeBookmarkBarBelowInfoBar] &&
+ [bookmarkBarController_ shouldShowAtBottomWhenDetached]) {
+ [self layoutBottomBookmarkBarInContentFrame:[[self tabContentArea] frame]];
+ }
}
// Handle the openLearnMoreAboutCrashLink: action from SadTabController when
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.h ('k') | chrome/browser/ui/cocoa/browser_window_controller_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698