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

Unified Diff: chrome/browser/ui/views/harmony/chrome_layout_provider.cc

Issue 2968713003: Harmonize the find in page dialog. (Closed)
Patch Set: Added distance metrics for toast button/label/text. Using these in the find bar. Created 3 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
Index: chrome/browser/ui/views/harmony/chrome_layout_provider.cc
diff --git a/chrome/browser/ui/views/harmony/chrome_layout_provider.cc b/chrome/browser/ui/views/harmony/chrome_layout_provider.cc
index 53e14c4479e462fcb38209dddaf264e517d682a6..20b2e290e4f0500df62b4394799e7a6e09193de2 100644
--- a/chrome/browser/ui/views/harmony/chrome_layout_provider.cc
+++ b/chrome/browser/ui/views/harmony/chrome_layout_provider.cc
@@ -45,6 +45,12 @@ int ChromeLayoutProvider::GetDistanceMetric(int metric) const {
return 20;
case DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE:
return 30;
+ case DISTANCE_TOAST_BUTTON_VERTICAL:
+ return 8;
+ case DISTANCE_TOAST_TEXT_VERTICAL:
+ return 8;
+ case DISTANCE_TOAST_LABEL_VERTICAL:
+ return 12;
default:
return views::LayoutProvider::GetDistanceMetric(metric);
}

Powered by Google App Engine
This is Rietveld 408576698