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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

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
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model_unittest.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index e0501067a6263f01b3d8e0f4ff0ba463a371a738..4304a6b5b644b383cf154355e633e2479bf80bdd 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -33,6 +33,7 @@
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/search/search_model.h"
+#include "chrome/browser/ui/search/search_ui.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.h"
@@ -323,11 +324,10 @@ void RecordAppLaunch(Profile* profile, GURL url) {
int GetSearchNtpMargin(int full_width) {
// Horizontally center bookmark bar.
- const int kMaxNtpBookmarkBarWidth = 720;
- const int kNtpBookmarkBarWidthPadding = 130;
- int width = full_width - 2 * kNtpBookmarkBarWidthPadding;
- if (width > kMaxNtpBookmarkBarWidth)
- width = kMaxNtpBookmarkBarWidth;
+ int width =
+ full_width - 2 * chrome::search::kHorizontalPaddingForBottomBookmarkBar;
+ if (width > chrome::search::kMaxWidthForBottomBookmarkBar)
+ width = chrome::search::kMaxWidthForBottomBookmarkBar;
return (full_width - width) / 2;
}
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model_unittest.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698