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

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

Issue 2750063002: views: implement dialog width snapping (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 20793d9fc5e0ff082b4013cfcd6fbb4a45a30e1a..c97b519036fd9ed936af8ad4ee6b8fe676cb6705 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -258,6 +258,9 @@ int ChromeViewsDelegate::GetDistanceMetric(views::DistanceMetric metric) const {
case views::DistanceMetric::BUTTON_HORIZONTAL_PADDING:
return LayoutDelegate::Get()->GetMetric(
LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING);
+ case views::DistanceMetric::DIALOG_WIDTH_SNAPPING_UNIT:
+ return LayoutDelegate::Get()->GetMetric(
+ LayoutDelegate::Metric::DIALOG_WIDTH_SNAPPING_UNIT);
}
NOTREACHED();
return 0;
« no previous file with comments | « no previous file | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | ui/views/window/dialog_client_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698