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" |
11 #include "ui/views/views_export.h" | 11 #include "ui/views/views_export.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 enum InsetsMetric { | 15 enum InsetsMetric { |
16 // Embedders can extend this enum with additional values that are understood | 16 // Embedders can extend this enum with additional values that are understood |
17 // by the LayoutProvider implementation. Embedders define enum values from | 17 // by the LayoutProvider implementation. Embedders define enum values from |
18 // VIEWS_INSETS_END. Values named beginning with "INSETS_" represent the | 18 // VIEWS_INSETS_END. Values named beginning with "INSETS_" represent the |
19 // actual Insets: the rest are markers. | 19 // actual Insets: the rest are markers. |
20 VIEWS_INSETS_START = 0, | 20 VIEWS_INSETS_START = 0, |
21 | 21 |
22 // The margins around the contents area of a bubble (popover)-style dialog. | 22 // The margins around the contents area of a bubble (popover)-style dialog. |
23 INSETS_BUBBLE_CONTENTS = VIEWS_INSETS_START, | 23 INSETS_BUBBLE_CONTENTS = VIEWS_INSETS_START, |
| 24 // The margins around the title of a bubble (popover)-style dialog. |
| 25 INSETS_BUBBLE_TITLE, |
24 // The margins around the button row of a dialog. | 26 // The margins around the button row of a dialog. |
25 INSETS_DIALOG_BUTTON, | 27 INSETS_DIALOG_BUTTON, |
26 // The margins around the icon/title of a dialog. | 28 // The margins around the icon/title of a dialog. |
27 INSETS_DIALOG_TITLE, | 29 INSETS_DIALOG_TITLE, |
28 // The margins that should be applied around a panel GridLayout. | 30 // The margins that should be applied around a panel GridLayout. |
29 INSETS_PANEL, | 31 INSETS_PANEL, |
30 // Padding to add to vector image buttons to increase their click and touch | 32 // Padding to add to vector image buttons to increase their click and touch |
31 // target size. | 33 // target size. |
32 INSETS_VECTOR_IMAGE_BUTTON, | 34 INSETS_VECTOR_IMAGE_BUTTON, |
33 | 35 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 87 |
86 private: | 88 private: |
87 DefaultTypographyProvider typography_provider_; | 89 DefaultTypographyProvider typography_provider_; |
88 | 90 |
89 DISALLOW_COPY_AND_ASSIGN(LayoutProvider); | 91 DISALLOW_COPY_AND_ASSIGN(LayoutProvider); |
90 }; | 92 }; |
91 | 93 |
92 } // namespace views | 94 } // namespace views |
93 | 95 |
94 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ | 96 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ |
OLD | NEW |