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

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc

Issue 1378023003: Update Location Bar Bubbles Layout for Material Design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
index ed09f59f1616ebb12ab6dd6e5a0d9b8c75f9f557..3e8a3e64d86fe9ae6158eed09e6a6f4bcb6b0fc6 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
@@ -105,7 +105,7 @@ void IconLabelBubbleView::Layout() {
GetBubbleOuterPadding(!is_extension_icon_)),
0, image_->GetPreferredSize().width(), height());
- const int padding = GetLayoutConstant(LOCATION_BAR_HORIZONTAL_PADDING);
+ const int padding = GetLayoutConstant(ICON_LABEL_VIEW_INTERNAL_PADDING);
int pre_label_width =
GetBubbleOuterPadding(true) + (image_width ? (image_width + padding) : 0);
label_->SetBounds(pre_label_width, 0,
@@ -117,7 +117,7 @@ gfx::Size IconLabelBubbleView::GetSizeForLabelWidth(int width) const {
gfx::Size size(image_->GetPreferredSize());
if (ShouldShowBackground()) {
const int image_width = image_->GetPreferredSize().width();
- const int padding = GetLayoutConstant(LOCATION_BAR_HORIZONTAL_PADDING);
+ const int padding = GetLayoutConstant(ICON_LABEL_VIEW_INTERNAL_PADDING);
const int non_label_width =
GetBubbleOuterPadding(true) +
(image_width ? (image_width + padding) : 0) +
« no previous file with comments | « chrome/browser/ui/views/layout_constants.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698