| 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 14 matching lines...) Expand all Loading... |
| 25 // Larger vertical spacing between unrelated controls. | 25 // Larger vertical spacing between unrelated controls. |
| 26 UNRELATED_CONTROL_LARGE_VERTICAL_SPACING, | 26 UNRELATED_CONTROL_LARGE_VERTICAL_SPACING, |
| 27 // Vertical spacing between the edge of the window and the | 27 // Vertical spacing between the edge of the window and the |
| 28 // top or bottom of a button. | 28 // top or bottom of a button. |
| 29 BUTTON_HEDGE_MARGIN_NEW, | 29 BUTTON_HEDGE_MARGIN_NEW, |
| 30 // Horizontal spacing between the edge of the window and the | 30 // Horizontal spacing between the edge of the window and the |
| 31 // left or right of a button. | 31 // left or right of a button. |
| 32 BUTTON_VEDGE_MARGIN_NEW, | 32 BUTTON_VEDGE_MARGIN_NEW, |
| 33 // Indent of checkboxes relative to related text. | 33 // Indent of checkboxes relative to related text. |
| 34 CHECKBOX_INDENT, | 34 CHECKBOX_INDENT, |
| 35 // Horizontal spacing between a control and its label. |
| 36 ITEM_LABEL_SPACING, |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 enum class DialogWidthType { | 39 enum class DialogWidthType { |
| 38 SMALL, | 40 SMALL, |
| 39 MEDIUM, | 41 MEDIUM, |
| 40 LARGE, | 42 LARGE, |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 LayoutDelegate() {} | 45 LayoutDelegate() {} |
| 44 virtual ~LayoutDelegate() {} | 46 virtual ~LayoutDelegate() {} |
| (...skipping 28 matching lines...) Expand all Loading... |
| 73 | 75 |
| 74 // Returns the preferred width for a dialog of the specified width type. If | 76 // Returns the preferred width for a dialog of the specified width type. If |
| 75 // there is no preferred width for |type|, returns 0. | 77 // there is no preferred width for |type|, returns 0. |
| 76 virtual int GetDialogPreferredWidth(DialogWidthType type) const; | 78 virtual int GetDialogPreferredWidth(DialogWidthType type) const; |
| 77 | 79 |
| 78 private: | 80 private: |
| 79 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); | 81 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 84 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
| OLD | NEW |