| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_LAYOUT_LAYOUT_PROVIDER_H_ | 5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ |
| 6 #define UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ | 6 #define UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/gfx/geometry/insets.h" | 9 #include "ui/gfx/geometry/insets.h" |
| 10 #include "ui/views/style/typography_provider.h" | 10 #include "ui/views/style/typography_provider.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Margin on the top and bottom of the contents of a dialog. | 71 // Margin on the top and bottom of the contents of a dialog. |
| 72 DISTANCE_DIALOG_CONTENTS_VERTICAL_MARGIN, | 72 DISTANCE_DIALOG_CONTENTS_VERTICAL_MARGIN, |
| 73 // The spacing between a pair of related horizontal buttons, used for | 73 // The spacing between a pair of related horizontal buttons, used for |
| 74 // dialog layout. | 74 // dialog layout. |
| 75 DISTANCE_RELATED_BUTTON_HORIZONTAL, | 75 DISTANCE_RELATED_BUTTON_HORIZONTAL, |
| 76 // Horizontal spacing between controls that are logically related. | 76 // Horizontal spacing between controls that are logically related. |
| 77 DISTANCE_RELATED_CONTROL_HORIZONTAL, | 77 DISTANCE_RELATED_CONTROL_HORIZONTAL, |
| 78 // The spacing between a pair of related vertical controls, used for | 78 // The spacing between a pair of related vertical controls, used for |
| 79 // dialog layout. | 79 // dialog layout. |
| 80 DISTANCE_RELATED_CONTROL_VERTICAL, | 80 DISTANCE_RELATED_CONTROL_VERTICAL, |
| 81 // Vertical spacing between controls that are logically unrelated. |
| 82 DISTANCE_UNRELATED_CONTROL_VERTICAL, |
| 81 | 83 |
| 82 // Embedders must start DistanceMetric enum values from here. | 84 // Embedders must start DistanceMetric enum values from here. |
| 83 VIEWS_DISTANCE_END | 85 VIEWS_DISTANCE_END |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 class VIEWS_EXPORT LayoutProvider { | 88 class VIEWS_EXPORT LayoutProvider { |
| 87 public: | 89 public: |
| 88 LayoutProvider(); | 90 LayoutProvider(); |
| 89 virtual ~LayoutProvider(); | 91 virtual ~LayoutProvider(); |
| 90 | 92 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 108 | 110 |
| 109 private: | 111 private: |
| 110 DefaultTypographyProvider typography_provider_; | 112 DefaultTypographyProvider typography_provider_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(LayoutProvider); | 114 DISALLOW_COPY_AND_ASSIGN(LayoutProvider); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace views | 117 } // namespace views |
| 116 | 118 |
| 117 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ | 119 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ |
| OLD | NEW |