| 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 // Padding to add to vector image buttons to increase their click and touch | 76 // Padding to add to vector image buttons to increase their click and touch |
| 75 // target size. | 77 // target size. |
| 76 VECTOR_IMAGE_BUTTON_PADDING, | 78 VECTOR_IMAGE_BUTTON_PADDING, |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 enum class DistanceMetric { | 81 enum class DistanceMetric { |
| 80 // The default padding to add on each side of a button's label. | 82 // The default padding to add on each side of a button's label. |
| 81 BUTTON_HORIZONTAL_PADDING, | 83 BUTTON_HORIZONTAL_PADDING, |
| 82 // The distance between a dialog's edge and the close button in the upper | 84 // The distance between a dialog's edge and the close button in the upper |
| 83 // trailing corner. | 85 // trailing corner. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 #endif | 275 #endif |
| 274 | 276 |
| 275 NativeWidgetFactory native_widget_factory_; | 277 NativeWidgetFactory native_widget_factory_; |
| 276 | 278 |
| 277 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 279 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |
| 278 }; | 280 }; |
| 279 | 281 |
| 280 } // namespace views | 282 } // namespace views |
| 281 | 283 |
| 282 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 284 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |