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

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

Issue 2625083003: Implement Harmony-style consistent button widths for Collected Cookies. (Closed)
Patch Set: respond to comments 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/harmony_layout_delegate.cc
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
index fa98a1c3ce9da7b6f86fe601797c65773f698ebf..7dd09f9c9f80269e1445d73efc7a989d5d4a0653 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
@@ -21,6 +21,8 @@ int HarmonyLayoutDelegate::GetMetric(Metric metric) const {
return kHarmonyLayoutUnit;
case Metric::DIALOG_BUTTON_MARGIN:
return kHarmonyLayoutUnit;
+ case Metric::BUTTON_MAX_LINKABLE_WIDTH:
+ return kHarmonyLayoutUnit * 8;
case Metric::BUTTON_MINIMUM_WIDTH:
case Metric::DIALOG_BUTTON_MINIMUM_WIDTH:
// Minimum label size plus padding.
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_views.cc ('k') | chrome/browser/ui/views/harmony/layout_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698