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

Unified Diff: chrome/browser/ui/views/harmony/layout_delegate.cc

Issue 2625083003: Implement Harmony-style consistent button widths for Collected Cookies. (Closed)
Patch Set: Start on DialogClientview Created 3 years, 10 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/layout_delegate.h ('k') | ui/views/layout/grid_layout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d366297d1520fffbeb0db5a3fd029cdd8165bb85..273d537a54537381c92f920c4e5a5f8317e1b5f2 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/layout_delegate.cc
@@ -52,6 +52,8 @@ int LayoutDelegate::GetMetric(Metric metric) const {
return views::kUnrelatedControlVerticalSpacing;
case Metric::UNRELATED_CONTROL_VERTICAL_SPACING_LARGE:
return views::kUnrelatedControlLargeVerticalSpacing;
+ case Metric::BUTTON_MAX_SHARED_WIDTH:
+ return 0; // Buttons never expand during layout (add padding instead).
}
NOTREACHED();
return 0;
« no previous file with comments | « chrome/browser/ui/views/harmony/layout_delegate.h ('k') | ui/views/layout/grid_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698