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

Unified Diff: chrome/browser/ui/views/harmony/harmony_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
« no previous file with comments | « chrome/browser/ui/views/harmony/chrome_layout_provider.cc ('k') | components/find_in_page_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 03a1890ec529aea53e74391c55e854198acde2f9..cbe4d3d0ada35c8d74cea049bb0ea68de5a2d2c5 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);
}
@@ -73,9 +75,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
« no previous file with comments | « chrome/browser/ui/views/harmony/chrome_layout_provider.cc ('k') | components/find_in_page_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698