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

Unified Diff: chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 3067011: Location bar layout changes for M6 theme. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 months 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/views/app_launcher.cc ('k') | chrome/browser/views/location_bar/icon_label_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
===================================================================
--- chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc (revision 53894)
+++ chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc (working copy)
@@ -305,13 +305,13 @@
}
void AutocompleteResultView::Layout() {
- icon_bounds_.SetRect(LocationBarView::kItemPadding,
+ icon_bounds_.SetRect(LocationBarView::kEdgeItemPadding,
(height() - icon_size_) / 2, icon_size_, icon_size_);
int text_x = icon_bounds_.right() + LocationBarView::kItemPadding;
int font_height = std::max(normal_font_.height(), bold_font_.height());
text_bounds_.SetRect(text_x, std::max(0, (height() - font_height) / 2),
- std::max(0, bounds().width() - text_x - LocationBarView::kItemPadding),
- font_height);
+ std::max(bounds().width() - text_x - LocationBarView::kEdgeItemPadding,
+ 0), font_height);
}
gfx::Size AutocompleteResultView::GetPreferredSize() {
@@ -688,7 +688,8 @@
// The normal location bar is drawn using a background graphic that includes
// the border, so we inset by enough to make the edges line up, and the
// bubble appear at the same height as the Star bubble.
- location_bar_bounds.Inset(LocationBarView::kEdgeThickness, 0);
+ location_bar_bounds.Inset(LocationBarView::kNormalHorizontalEdgeThickness,
+ 0);
}
gfx::Point location_bar_origin(location_bar_bounds.origin());
views::View::ConvertPointToScreen(location_bar_, &location_bar_origin);
« no previous file with comments | « chrome/browser/views/app_launcher.cc ('k') | chrome/browser/views/location_bar/icon_label_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698