| 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 28 matching lines...) Expand all Loading... |
| 39 // checkboxes below explanatory text/headings. | 39 // checkboxes below explanatory text/headings. |
| 40 SUBSECTION_HORIZONTAL_INDENT, | 40 SUBSECTION_HORIZONTAL_INDENT, |
| 41 // Horizontal spacing between controls that are logically unrelated. | 41 // Horizontal spacing between controls that are logically unrelated. |
| 42 UNRELATED_CONTROL_HORIZONTAL_SPACING, | 42 UNRELATED_CONTROL_HORIZONTAL_SPACING, |
| 43 // Larger horizontal spacing between unrelated controls. | 43 // Larger horizontal spacing between unrelated controls. |
| 44 UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE, | 44 UNRELATED_CONTROL_HORIZONTAL_SPACING_LARGE, |
| 45 // Vertical spacing between controls that are logically unrelated. | 45 // Vertical spacing between controls that are logically unrelated. |
| 46 UNRELATED_CONTROL_VERTICAL_SPACING, | 46 UNRELATED_CONTROL_VERTICAL_SPACING, |
| 47 // Larger vertical spacing between unrelated controls. | 47 // Larger vertical spacing between unrelated controls. |
| 48 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE, | 48 UNRELATED_CONTROL_VERTICAL_SPACING_LARGE, |
| 49 // The maximum width, beyond which a button will not influence the widths of |
| 50 // other buttons on a shared row. |
| 51 BUTTON_MAX_SHARED_WIDTH, |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 enum class DialogWidth { | 54 enum class DialogWidth { |
| 52 SMALL, | 55 SMALL, |
| 53 MEDIUM, | 56 MEDIUM, |
| 54 LARGE, | 57 LARGE, |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 LayoutDelegate() {} | 60 LayoutDelegate() {} |
| 58 virtual ~LayoutDelegate() {} | 61 virtual ~LayoutDelegate() {} |
| (...skipping 29 matching lines...) Expand all Loading... |
| 88 | 91 |
| 89 // Returns the preferred width in DIPs for a dialog of the specified |width|. | 92 // Returns the preferred width in DIPs for a dialog of the specified |width|. |
| 90 // May return 0 if the dialog has no preferred width. | 93 // May return 0 if the dialog has no preferred width. |
| 91 virtual int GetDialogPreferredWidth(DialogWidth width) const; | 94 virtual int GetDialogPreferredWidth(DialogWidth width) const; |
| 92 | 95 |
| 93 private: | 96 private: |
| 94 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); | 97 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 100 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
| OLD | NEW |