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

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

Issue 247193002: Remove touch layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 cbbc5d9d5a9ae0ca0b7cae3056cfcc542da3da5c..9a14d78d4b754610b0128dd57b1853358a546f84 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
@@ -114,7 +114,7 @@ void IconLabelBubbleView::OnMouseExited(const ui::MouseEvent& event) {
// static
int IconLabelBubbleView::GetBubbleOuterPadding(bool by_icon) {
- return LocationBarView::GetItemPadding() - LocationBarView::kBubblePadding +
+ return LocationBarView::kItemPadding - LocationBarView::kBubblePadding +
(by_icon ? 0 : LocationBarView::kIconInternalPadding);
}
@@ -127,5 +127,5 @@ void IconLabelBubbleView::OnPaint(gfx::Canvas* canvas) {
int IconLabelBubbleView::GetPreLabelWidth() const {
const int image_width = image_->GetPreferredSize().width();
return GetBubbleOuterPadding(true) +
- (image_width ? (image_width + LocationBarView::GetItemPadding()) : 0);
+ (image_width ? (image_width + LocationBarView::kItemPadding) : 0);
}

Powered by Google App Engine
This is Rietveld 408576698