OLD | NEW |
---|---|
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 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
7 | 7 |
8 #include "ui/views/layout/grid_layout.h" | 8 #include "ui/views/layout/grid_layout.h" |
9 | 9 |
10 class LayoutDelegate { | 10 class LayoutDelegate { |
(...skipping 30 matching lines...) Expand all Loading... | |
41 // checkboxes below explanatory text/headings. | 41 // checkboxes below explanatory text/headings. |
42 SUBSECTION_HORIZONTAL_INDENT, | 42 SUBSECTION_HORIZONTAL_INDENT, |
43 // Horizontal spacing between controls that are logically unrelated. | 43 // Horizontal spacing between controls that are logically unrelated. |
44 UNRELATED_CONTROL_HORIZONTAL_SPACING, | 44 UNRELATED_CONTROL_HORIZONTAL_SPACING, |
45 // Larger horizontal spacing between unrelated controls. | 45 // Larger horizontal spacing between unrelated controls. |
46 UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE, | 46 UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE, |
47 // Vertical spacing between controls that are logically unrelated. | 47 // Vertical spacing between controls that are logically unrelated. |
48 UNRELATED_CONTROL_VERTICAL_SPACING, | 48 UNRELATED_CONTROL_VERTICAL_SPACING, |
49 // Larger vertical spacing between unrelated controls. | 49 // Larger vertical spacing between unrelated controls. |
50 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE, | 50 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE, |
51 // Horizontal spacing between the image/icon on a label button and its | |
52 // associated text. This includes checkboxes and radio buttons. | |
Peter Kasting
2017/03/01 06:32:36
I'm confused. How is this different than RELATED_
kylix_rd
2017/03/01 17:33:27
The original constant, private to the label_button
Peter Kasting
2017/03/01 23:32:23
Right. My hope was to either decide we could chan
Peter Kasting
2017/03/03 00:05:55
After looking at the use of RELATED_LABEL_HORIZONT
| |
53 ICON_TEXT_SPACING, | |
51 }; | 54 }; |
52 | 55 |
53 enum class DialogWidth { | 56 enum class DialogWidth { |
54 SMALL, | 57 SMALL, |
55 MEDIUM, | 58 MEDIUM, |
56 LARGE, | 59 LARGE, |
57 }; | 60 }; |
58 | 61 |
59 LayoutDelegate() {} | 62 LayoutDelegate() {} |
60 virtual ~LayoutDelegate() {} | 63 virtual ~LayoutDelegate() {} |
(...skipping 29 matching lines...) Expand all Loading... | |
90 | 93 |
91 // Returns the preferred width in DIPs for a dialog of the specified |width|. | 94 // Returns the preferred width in DIPs for a dialog of the specified |width|. |
92 // May return 0 if the dialog has no preferred width. | 95 // May return 0 if the dialog has no preferred width. |
93 virtual int GetDialogPreferredWidth(DialogWidth width) const; | 96 virtual int GetDialogPreferredWidth(DialogWidth width) const; |
94 | 97 |
95 private: | 98 private: |
96 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); | 99 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); |
97 }; | 100 }; |
98 | 101 |
99 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 102 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
OLD | NEW |