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 16 matching lines...) Expand all Loading... | |
27 // Internal border around checkboxes and radio buttons. | 27 // Internal border around checkboxes and radio buttons. |
28 INSETS_CHECKBOX_RADIO_BUTTON, | 28 INSETS_CHECKBOX_RADIO_BUTTON, |
29 // The margins around the button row of a dialog. The top margin is implied | 29 // The margins around the button row of a dialog. The top margin is implied |
30 // by the content insets. | 30 // by the content insets. |
31 INSETS_DIALOG_BUTTON_ROW, | 31 INSETS_DIALOG_BUTTON_ROW, |
32 // The margins that should be applied around the contents of a dialog. | 32 // The margins that should be applied around the contents of a dialog. |
33 INSETS_DIALOG_CONTENTS, | 33 INSETS_DIALOG_CONTENTS, |
34 // The margins around the icon/title of a dialog. The bottom margin is implied | 34 // The margins around the icon/title of a dialog. The bottom margin is implied |
35 // by the content insets. | 35 // by the content insets. |
36 INSETS_DIALOG_TITLE, | 36 INSETS_DIALOG_TITLE, |
37 // Margins used by toasts. | |
38 INSETS_TOAST, | |
Peter Kasting
2017/07/15 02:48:08
This should be in chrome_layout_provider.h and not
ananta
2017/07/15 07:04:14
This was already moved in the patchset i uploaded
| |
37 // Padding to add to vector image buttons to increase their click and touch | 39 // Padding to add to vector image buttons to increase their click and touch |
38 // target size. | 40 // target size. |
39 INSETS_VECTOR_IMAGE_BUTTON, | 41 INSETS_VECTOR_IMAGE_BUTTON, |
40 | 42 |
41 // Embedders must start Insets enum values from this value. | 43 // Embedders must start Insets enum values from this value. |
42 VIEWS_INSETS_END, | 44 VIEWS_INSETS_END, |
43 | 45 |
44 // All Insets enum values must be below this value. | 46 // All Insets enum values must be below this value. |
45 VIEWS_INSETS_MAX = 0x1000 | 47 VIEWS_INSETS_MAX = 0x1000 |
46 }; | 48 }; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 | 109 |
108 private: | 110 private: |
109 DefaultTypographyProvider typography_provider_; | 111 DefaultTypographyProvider typography_provider_; |
110 | 112 |
111 DISALLOW_COPY_AND_ASSIGN(LayoutProvider); | 113 DISALLOW_COPY_AND_ASSIGN(LayoutProvider); |
112 }; | 114 }; |
113 | 115 |
114 } // namespace views | 116 } // namespace views |
115 | 117 |
116 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ | 118 #endif // UI_VIEWS_LAYOUT_LAYOUT_PROVIDER_H_ |
OLD | NEW |