| 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 10 matching lines...) Expand all Loading... |
| 21 // Margin between the edge of a dialog and the left, right, or bottom of a | 21 // Margin between the edge of a dialog and the left, right, or bottom of a |
| 22 // contained button. | 22 // contained button. |
| 23 DIALOG_BUTTON_MARGIN, | 23 DIALOG_BUTTON_MARGIN, |
| 24 // Minimum width of a dialog button. | 24 // Minimum width of a dialog button. |
| 25 DIALOG_BUTTON_MINIMUM_WIDTH, | 25 DIALOG_BUTTON_MINIMUM_WIDTH, |
| 26 // Spacing between a dialog button and the content above it. | 26 // Spacing between a dialog button and the content above it. |
| 27 DIALOG_BUTTON_TOP_SPACING, | 27 DIALOG_BUTTON_TOP_SPACING, |
| 28 // Horizontal or vertical margin between the edge of a dialog and the close | 28 // Horizontal or vertical margin between the edge of a dialog and the close |
| 29 // button in the upper trailing corner. | 29 // button in the upper trailing corner. |
| 30 DIALOG_CLOSE_BUTTON_MARGIN, | 30 DIALOG_CLOSE_BUTTON_MARGIN, |
| 31 // Dialog widths will be snapped upward to a multiple of this unit. |
| 32 DIALOG_WIDTH_SNAPPING_UNIT, |
| 31 // Horizontal or vertical margin between the edge of a panel and the | 33 // Horizontal or vertical margin between the edge of a panel and the |
| 32 // contained content. | 34 // contained content. |
| 33 PANEL_CONTENT_MARGIN, | 35 PANEL_CONTENT_MARGIN, |
| 34 // Horizontal spacing between buttons that are logically related, e.g. | 36 // Horizontal spacing between buttons that are logically related, e.g. |
| 35 // for a button set. | 37 // for a button set. |
| 36 RELATED_BUTTON_HORIZONTAL_SPACING, | 38 RELATED_BUTTON_HORIZONTAL_SPACING, |
| 37 // Horizontal spacing between other controls that are logically related. | 39 // Horizontal spacing between other controls that are logically related. |
| 38 RELATED_CONTROL_HORIZONTAL_SPACING, | 40 RELATED_CONTROL_HORIZONTAL_SPACING, |
| 39 // Vertical spacing between controls that are logically related. | 41 // Vertical spacing between controls that are logically related. |
| 40 RELATED_CONTROL_VERTICAL_SPACING, | 42 RELATED_CONTROL_VERTICAL_SPACING, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 96 |
| 95 // Returns the preferred width in DIPs for a dialog of the specified |width|. | 97 // Returns the preferred width in DIPs for a dialog of the specified |width|. |
| 96 // May return 0 if the dialog has no preferred width. | 98 // May return 0 if the dialog has no preferred width. |
| 97 virtual int GetDialogPreferredWidth(DialogWidth width) const; | 99 virtual int GetDialogPreferredWidth(DialogWidth width) const; |
| 98 | 100 |
| 99 private: | 101 private: |
| 100 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); | 102 DISALLOW_COPY_AND_ASSIGN(LayoutDelegate); |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ | 105 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_LAYOUT_DELEGATE_H_ |
| OLD | NEW |