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

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

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: remove test friends Created 3 years, 11 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 80a6dcedaf8a4f5d589fb6495a05bb6fd48328dd..885e195a582b12e2e938e6c5ab39876e2ca3bfb7 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/layout_delegate.cc
@@ -34,6 +34,8 @@ int LayoutDelegate::GetLayoutDistance(LayoutDistanceType type) const {
return views::kRelatedControlVerticalSpacing;
case LayoutDistanceType::UNRELATED_CONTROL_VERTICAL_SPACING:
return views::kUnrelatedControlVerticalSpacing;
+ case LayoutDistanceType::UNRELATED_CONTROL_LARGE_HORIZONTAL_SPACING:
+ return views::kUnrelatedControlLargeHorizontalSpacing;
case LayoutDistanceType::UNRELATED_CONTROL_LARGE_VERTICAL_SPACING:
return views::kUnrelatedControlLargeVerticalSpacing;
case LayoutDistanceType::BUTTON_VEDGE_MARGIN_NEW:
@@ -63,3 +65,7 @@ bool LayoutDelegate::IsHarmonyMode() const {
int LayoutDelegate::GetDialogPreferredWidth(DialogWidthType type) const {
return 0;
}
+
+int LayoutDelegate::GetDialogButtonMinimumWidth() const {
+ return views::kDialogMinimumButtonWidth;
+}

Powered by Google App Engine
This is Rietveld 408576698