OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_STYLE_PLATFORM_STYLE_H_ | 5 #ifndef UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "ui/views/controls/button/button.h" | 11 #include "ui/views/controls/button/button.h" |
12 #include "ui/views/controls/button/custom_button.h" | 12 #include "ui/views/controls/button/custom_button.h" |
13 #include "ui/views/controls/combobox/combobox.h" | 13 #include "ui/views/controls/combobox/combobox.h" |
14 #include "ui/views/views_export.h" | 14 #include "ui/views/views_export.h" |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 | 17 |
18 class Border; | 18 class Border; |
19 class FocusableBorder; | |
20 class Label; | 19 class Label; |
21 class LabelButton; | 20 class LabelButton; |
22 class ScrollBar; | 21 class ScrollBar; |
23 | 22 |
24 // Cross-platform API for providing platform-specific styling for toolkit-views. | 23 // Cross-platform API for providing platform-specific styling for toolkit-views. |
25 class VIEWS_EXPORT PlatformStyle { | 24 class VIEWS_EXPORT PlatformStyle { |
26 public: | 25 public: |
27 // Type used by LabelButton to map button states to text colors. | 26 // Type used by LabelButton to map button states to text colors. |
28 using ButtonColorByState = SkColor[Button::STATE_COUNT]; | 27 using ButtonColorByState = SkColor[Button::STATE_COUNT]; |
29 | 28 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // the failed edit if platform-appropriate. | 85 // the failed edit if platform-appropriate. |
87 static void OnTextfieldEditFailed(); | 86 static void OnTextfieldEditFailed(); |
88 | 87 |
89 private: | 88 private: |
90 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 89 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
91 }; | 90 }; |
92 | 91 |
93 } // namespace views | 92 } // namespace views |
94 | 93 |
95 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 94 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
OLD | NEW |