| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ |
| 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 enum class InsetsMetric { | 65 enum class InsetsMetric { |
| 66 // The margins that should be applied around a bubble dialog. | 66 // The margins that should be applied around a bubble dialog. |
| 67 BUBBLE_DIALOG, | 67 BUBBLE_DIALOG, |
| 68 // The insets that should be applied around a DialogClientView. Note that | 68 // The insets that should be applied around a DialogClientView. Note that |
| 69 // the top inset is used for the distance between the buttons and the | 69 // the top inset is used for the distance between the buttons and the |
| 70 // DialogClientView's content view. | 70 // DialogClientView's content view. |
| 71 DIALOG_BUTTON, | 71 DIALOG_BUTTON, |
| 72 // The insets that should be applied around a dialog's frame view. | 72 // The insets that should be applied around a dialog's frame view. |
| 73 DIALOG_FRAME_VIEW, | 73 DIALOG_FRAME_VIEW, |
| 74 // The margins that should be applied around a panel GridLayout. |
| 75 PANEL, |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 enum class DistanceMetric { | 78 enum class DistanceMetric { |
| 77 // The default padding to add on each side of a button's label. | 79 // The default padding to add on each side of a button's label. |
| 78 BUTTON_HORIZONTAL_PADDING, | 80 BUTTON_HORIZONTAL_PADDING, |
| 79 // The distance between a dialog's edge and the close button in the upper | 81 // The distance between a dialog's edge and the close button in the upper |
| 80 // trailing corner. | 82 // trailing corner. |
| 81 CLOSE_BUTTON_MARGIN, | 83 CLOSE_BUTTON_MARGIN, |
| 82 // The default minimum width of a dialog button. | 84 // The default minimum width of a dialog button. |
| 83 DIALOG_BUTTON_MINIMUM_WIDTH, | 85 DIALOG_BUTTON_MINIMUM_WIDTH, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 #endif | 272 #endif |
| 271 | 273 |
| 272 NativeWidgetFactory native_widget_factory_; | 274 NativeWidgetFactory native_widget_factory_; |
| 273 | 275 |
| 274 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 276 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 275 }; | 277 }; |
| 276 | 278 |
| 277 } // namespace views | 279 } // namespace views |
| 278 | 280 |
| 279 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 281 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |