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

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

Issue 2968713003: Harmonize the find in page dialog. (Closed)
Patch Set: Fix format 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 c2922611111a35e281d1d26f7cc226327c61ca2a..9631f0175b90953a4c920ec78aff9d9b99f44b98 100644
--- a/chrome/browser/ui/views/harmony/chrome_layout_provider.cc
+++ b/chrome/browser/ui/views/harmony/chrome_layout_provider.cc
@@ -34,6 +34,15 @@ int ChromeLayoutProvider::GetControlHeightForFont(const gfx::FontList& font) {
Get()->GetDistanceMetric(DISTANCE_CONTROL_TOTAL_VERTICAL_TEXT_PADDING);
}
+gfx::Insets ChromeLayoutProvider::GetInsetsMetric(int metric) const {
+ switch (metric) {
+ case ChromeInsetsMetric::INSETS_TOAST:
+ return gfx::Insets(0, 8);
+ default:
+ return views::LayoutProvider::GetInsetsMetric(metric);
+ }
+}
+
int ChromeLayoutProvider::GetDistanceMetric(int metric) const {
switch (metric) {
case DISTANCE_BUTTON_MINIMUM_WIDTH:
@@ -58,6 +67,10 @@ int ChromeLayoutProvider::GetDistanceMetric(int metric) const {
return 20;
case DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE:
return 30;
+ case DISTANCE_TOAST_CONTROL_VERTICAL:
+ return 8;
+ case DISTANCE_TOAST_LABEL_VERTICAL:
+ return 12;
default:
return views::LayoutProvider::GetDistanceMetric(metric);
}
« no previous file with comments | « chrome/browser/ui/views/harmony/chrome_layout_provider.h ('k') | chrome/browser/ui/views/harmony/harmony_layout_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698