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

Unified Diff: chrome/browser/ui/views/harmony/layout_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/harmony/layout_delegate.cc
diff --git a/chrome/browser/ui/views/harmony/layout_delegate.cc b/chrome/browser/ui/views/harmony/layout_delegate.cc
index 79d88b025d46793b2f222bb49774826f079f2359..9c4ee930c5a84b2ede0ad9579bb27b34f9a64bf5 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/layout_delegate.cc
@@ -40,6 +40,8 @@ int LayoutDelegate::GetMetric(Metric metric) const {
case Metric::DIALOG_CLOSE_BUTTON_MARGIN:
return ChromeViewsDelegate::GetInstance()->GetDefaultDistanceMetric(
views::DistanceMetric::CLOSE_BUTTON_MARGIN);
+ case Metric::DIALOG_WIDTH_SNAPPING_UNIT:
+ return 1;
case Metric::PANEL_CONTENT_MARGIN:
return views::kPanelHorizMargin;
case Metric::RELATED_BUTTON_HORIZONTAL_SPACING:

Powered by Google App Engine
This is Rietveld 408576698