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

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

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 9 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 9f5c82dc86c4fd8a387099e21c780b3199af7ed9..16e702d077637582c8d345d508b9c7fadbdce2bc 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -266,6 +266,10 @@ const views::TypographyProvider& ChromeViewsDelegate::GetTypographyProvider()
return LayoutDelegate::Get()->GetTypographyProvider();
}
+int ChromeViewsDelegate::GetSnappedDialogWidth(int width) const {
+ return LayoutDelegate::Get()->GetSnappedDialogWidth(width);
+}
+
int ChromeViewsDelegate::GetDefaultDistanceMetric(
views::DistanceMetric metric) {
return views_delegate

Powered by Google App Engine
This is Rietveld 408576698