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

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

Issue 2968713003: Harmonize the find in page dialog. (Closed)
Patch Set: format fixes 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/harmony_layout_provider.cc
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_provider.cc b/chrome/browser/ui/views/harmony/harmony_layout_provider.cc
index 29d289bb27dadc3d8a0abdfe127f059040f50a59..8f5ea4e219231872d6ef870ae6b82a4988cd4018 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_provider.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_provider.cc
@@ -18,6 +18,8 @@ gfx::Insets HarmonyLayoutProvider::GetInsetsMetric(int metric) const {
}
case views::INSETS_VECTOR_IMAGE_BUTTON:
return gfx::Insets(kHarmonyLayoutUnit / 4);
+ case INSETS_TOAST:
+ return gfx::Insets(0, kHarmonyLayoutUnit);
default:
return ChromeLayoutProvider::GetInsetsMetric(metric);
}
@@ -71,9 +73,9 @@ int HarmonyLayoutProvider::GetDistanceMetric(int metric) const {
return kHarmonyLayoutUnit;
case DISTANCE_UNRELATED_CONTROL_VERTICAL_LARGE:
return kHarmonyLayoutUnit;
+ default:
+ return ChromeLayoutProvider::GetDistanceMetric(metric);
}
- NOTREACHED();
- return 0;
}
views::GridLayout::Alignment

Powered by Google App Engine
This is Rietveld 408576698