| 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 11 matching lines...) Expand all Loading... |
| 22 // Horizontal spacing between other controls that are logically related. | 22 // Horizontal spacing between other controls that are logically related. |
| 23 RELATED_CONTROL_HORIZONTAL_SPACING, | 23 RELATED_CONTROL_HORIZONTAL_SPACING, |
| 24 // Vertical spacing between controls that are logically related. | 24 // Vertical spacing between controls that are logically related. |
| 25 RELATED_CONTROL_VERTICAL_SPACING, | 25 RELATED_CONTROL_VERTICAL_SPACING, |
| 26 // Horizontal spacing between an item such as an icon or checkbox and a | 26 // Horizontal spacing between an item such as an icon or checkbox and a |
| 27 // label related to it. | 27 // label related to it. |
| 28 RELATED_LABEL_HORIZONTAL_SPACING, | 28 RELATED_LABEL_HORIZONTAL_SPACING, |
| 29 // Horizontal indent of a subsection relative to related items above, e.g. | 29 // Horizontal indent of a subsection relative to related items above, e.g. |
| 30 // checkboxes below explanatory text/headings. | 30 // checkboxes below explanatory text/headings. |
| 31 SUBSECTION_HORIZONTAL_INDENT, | 31 SUBSECTION_HORIZONTAL_INDENT, |
| 32 // Larger horizontal spacing between unrelated controls. |
| 33 UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE, |
| 32 // Vertical spacing between controls that are logically unrelated. | 34 // Vertical spacing between controls that are logically unrelated. |
| 33 UNRELATED_CONTROL_VERTICAL_SPACING, | 35 UNRELATED_CONTROL_VERTICAL_SPACING, |
| 34 // Larger vertical spacing between unrelated controls. | 36 // Larger vertical spacing between unrelated controls. |
| 35 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE, | 37 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE, |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 enum class DialogWidth { | 40 enum class DialogWidth { |
| 39 SMALL, | 41 SMALL, |
| 40 MEDIUM, | 42 MEDIUM, |
| 41 LARGE, | 43 LARGE, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 77 |
| 76 // Returns the preferred width in DIPs for a dialog of the specified |width|. | 78 // Returns the preferred width in DIPs for a dialog of the specified |width|. |
| 77 // May return 0 if the dialog has no preferred width. | 79 // May return 0 if the dialog has no preferred width. |
| 78 virtual int GetDialogPreferredWidth(DialogWidth width) const; | 80 virtual int GetDialogPreferredWidth(DialogWidth width) const; |
| 79 | 81 |
| 80 private: | 82 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); | 83 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 86 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
| OLD | NEW |