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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.cc

Issue 2075443002: Remove IconLabelView layout constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment, fix compile Created 4 years, 6 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/ui/views/location_bar/keyword_hint_view.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/omnibox/omnibox_result_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
index b81569068cb18c9c2d21c90c3fa62efeb9a80eb8..9c921164a05c5bc4246db0ccabe39324e3fc67e7 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
@@ -21,6 +21,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "chrome/browser/ui/layout_constants.h"
+#include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h"
#include "chrome/grit/generated_resources.h"
@@ -654,7 +655,7 @@ void OmniboxResultView::Layout() {
int icon_x = start_x;
if (!ui::MaterialDesignController::IsModeMaterial() &&
(icon.width() != default_icon_size_))
- icon_x += GetLayoutConstant(ICON_LABEL_VIEW_TRAILING_PADDING);
+ icon_x += IconLabelBubbleView::kTrailingPaddingPreMd;
icon_bounds_.SetRect(icon_x, (GetContentLineHeight() - icon.height()) / 2,
icon.width(), icon.height());
« no previous file with comments | « chrome/browser/ui/views/location_bar/keyword_hint_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698