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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 2750063002: views: implement dialog width snapping (Closed)
Patch Set: width -> min_width and improve tests Created 3 years, 8 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/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index cba7d894e4a81b55a41dbb03be52cf1b9b9a0fe2..170f89db572e61f61295bb8e2130a9781789ad4e 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -269,6 +269,10 @@ const views::TypographyProvider& ChromeViewsDelegate::GetTypographyProvider()
return LayoutDelegate::Get()->GetTypographyProvider();
}
+int ChromeViewsDelegate::GetSnappedDialogWidth(int min_width) const {
+ return LayoutDelegate::Get()->GetSnappedDialogWidth(min_width);
+}
+
int ChromeViewsDelegate::GetDefaultDistanceMetric(
views::DistanceMetric metric) {
return views_delegate

Powered by Google App Engine
This is Rietveld 408576698