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

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

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: disable dialog test on osx 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') | chrome/browser/ui/views/hung_renderer_view.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 5ff779873c81950580f3d7d52c194d9180603b66..d366297d1520fffbeb0db5a3fd029cdd8165bb85 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/layout_delegate.cc
@@ -22,8 +22,12 @@ LayoutDelegate* LayoutDelegate::Get() {
int LayoutDelegate::GetMetric(Metric metric) const {
switch (metric) {
+ case Metric::BUTTON_HORIZONTAL_PADDING:
+ return 0;
case Metric::DIALOG_BUTTON_MARGIN:
return views::kButtonHEdgeMarginNew;
+ case Metric::DIALOG_BUTTON_MINIMUM_WIDTH:
+ return views::kDialogMinimumButtonWidth;
case Metric::DIALOG_BUTTON_TOP_SPACING:
return 0;
case Metric::DIALOG_CLOSE_BUTTON_MARGIN:
@@ -40,6 +44,10 @@ int LayoutDelegate::GetMetric(Metric metric) const {
return views::kItemLabelSpacing;
case Metric::SUBSECTION_HORIZONTAL_INDENT:
return views::kCheckboxIndent;
+ case Metric::UNRELATED_CONTROL_HORIZONTAL_SPACING:
+ return views::kUnrelatedControlHorizontalSpacing;
+ case Metric::UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE:
+ return views::kUnrelatedControlLargeHorizontalSpacing;
case Metric::UNRELATED_CONTROL_VERTICAL_SPACING:
return views::kUnrelatedControlVerticalSpacing;
case Metric::UNRELATED_CONTROL_VERTICAL_SPACING_LARGE:
« no previous file with comments | « chrome/browser/ui/views/harmony/layout_delegate.h ('k') | chrome/browser/ui/views/hung_renderer_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698