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

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

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: comments 3 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
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 eb1744312dc81b417ddc686c76ef3fcb861ada54..ee484d54f221d409b215ee49ce98072f9c5bd918 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
@@ -19,6 +19,8 @@ int HarmonyLayoutDelegate::GetMetric(Metric metric) const {
switch (metric) {
case Metric::DIALOG_BUTTON_MARGIN:
return kHarmonyLayoutUnit;
+ case Metric::DIALOG_BUTTON_MINIMUM_WIDTH:
+ return 4 * kHarmonyLayoutUnit;
case Metric::DIALOG_BUTTON_TOP_SPACING:
return kHarmonyLayoutUnit;
case Metric::DIALOG_CLOSE_BUTTON_MARGIN:
@@ -37,6 +39,8 @@ int HarmonyLayoutDelegate::GetMetric(Metric metric) const {
return kHarmonyLayoutUnit;
case Metric::SUBSECTION_HORIZONTAL_INDENT:
return 0;
+ case Metric::UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE:
+ return kHarmonyLayoutUnit;
case Metric::UNRELATED_CONTROL_VERTICAL_SPACING:
return kHarmonyLayoutUnit;
case Metric::UNRELATED_CONTROL_VERTICAL_SPACING_LARGE:

Powered by Google App Engine
This is Rietveld 408576698