Chromium Code Reviews| 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 // The maximum width, beyond which a button will not influence the widths of | |
| 52 // other buttons on a shared row. | |
|
Peter Kasting
2017/03/07 02:50:37
Nit: Maybe "The maximum width a button can have an
tapted
2017/03/07 12:06:41
Done.
| |
| 53 BUTTON_MAX_SHARED_WIDTH, | |
|
Peter Kasting
2017/03/07 02:50:37
Nit: Alphabetize
I might call this BUTTON_MAX_LIN
tapted
2017/03/07 12:06:41
Done.
| |
| 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 |