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

Side by Side Diff: chrome/browser/ui/views/harmony/harmony_layout_delegate.cc

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: merge 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/harmony/harmony_layout_delegate.h" 5 #include "chrome/browser/ui/views/harmony/harmony_layout_delegate.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 static base::LazyInstance<HarmonyLayoutDelegate> harmony_layout_delegate_ = 10 static base::LazyInstance<HarmonyLayoutDelegate> harmony_layout_delegate_ =
(...skipping 13 matching lines...) Expand all
24 case Metric::RELATED_BUTTON_HORIZONTAL_SPACING: 24 case Metric::RELATED_BUTTON_HORIZONTAL_SPACING:
25 return kHarmonyLayoutUnit / 2; 25 return kHarmonyLayoutUnit / 2;
26 case Metric::RELATED_CONTROL_HORIZONTAL_SPACING: 26 case Metric::RELATED_CONTROL_HORIZONTAL_SPACING:
27 return kHarmonyLayoutUnit; 27 return kHarmonyLayoutUnit;
28 case Metric::RELATED_CONTROL_VERTICAL_SPACING: 28 case Metric::RELATED_CONTROL_VERTICAL_SPACING:
29 return kHarmonyLayoutUnit / 2; 29 return kHarmonyLayoutUnit / 2;
30 case Metric::RELATED_LABEL_HORIZONTAL_SPACING: 30 case Metric::RELATED_LABEL_HORIZONTAL_SPACING:
31 return kHarmonyLayoutUnit; 31 return kHarmonyLayoutUnit;
32 case Metric::SUBSECTION_HORIZONTAL_INDENT: 32 case Metric::SUBSECTION_HORIZONTAL_INDENT:
33 return 0; 33 return 0;
34 case Metric::UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE:
35 return kHarmonyLayoutUnit;
34 case Metric::UNRELATED_CONTROL_VERTICAL_SPACING: 36 case Metric::UNRELATED_CONTROL_VERTICAL_SPACING:
35 return kHarmonyLayoutUnit; 37 return kHarmonyLayoutUnit;
36 case Metric::UNRELATED_CONTROL_VERTICAL_SPACING_LARGE: 38 case Metric::UNRELATED_CONTROL_VERTICAL_SPACING_LARGE:
37 return kHarmonyLayoutUnit; 39 return kHarmonyLayoutUnit;
38 } 40 }
39 NOTREACHED(); 41 NOTREACHED();
40 return 0; 42 return 0;
41 } 43 }
42 44
43 views::GridLayout::Alignment 45 views::GridLayout::Alignment
(...skipping 14 matching lines...) Expand all
58 case DialogWidth::SMALL: 60 case DialogWidth::SMALL:
59 return 320; 61 return 320;
60 case DialogWidth::MEDIUM: 62 case DialogWidth::MEDIUM:
61 return 448; 63 return 448;
62 case DialogWidth::LARGE: 64 case DialogWidth::LARGE:
63 return 512; 65 return 512;
64 } 66 }
65 NOTREACHED(); 67 NOTREACHED();
66 return 0; 68 return 0;
67 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698