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

Unified Diff: chrome/browser/ui/views/toolbar_view.cc

Issue 8632001: Removed TOUCH_UI (mostly constants) from chrome/browser/ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 1 month 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/views/tabs/tab_strip.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index 123bbf05414a64b2b0bec3621593a63ed1d4e664..74907b87a3278b07d5edc0ea69d3ed27dea63706 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -79,11 +79,6 @@ static const int kPopupBottomSpacingGlass = 1;
// corner of the wrench menu).
static const int kBadgeTopMargin = 2;
-#if defined(TOUCH_UI)
-// Extra vertical padding above the location bar.
-static const int kExtraVerticalPadding = 3;
-#endif
-
static SkBitmap* kPopupBackgroundEdge = NULL;
////////////////////////////////////////////////////////////////////////////////
@@ -541,15 +536,8 @@ void ToolbarView::Layout() {
int location_x = home_->x() + home_->width() + kStandardSpacing;
int available_width = width() - kEdgeSpacing - app_menu_width -
browser_actions_width - location_x;
-
-#if defined(TOUCH_UI)
- // Center the location bar vertically.
- int location_y = std::min(child_y + kExtraVerticalPadding, height());
- int location_bar_height = std::max(height() - 2 * location_y, 0);
-#else
int location_y = child_y;
int location_bar_height = child_height;
-#endif
location_bar_->SetBounds(location_x, location_y, std::max(available_width, 0),
location_bar_height);
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698