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" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Applies platform styles to |label| and fills |color_by_state| with the text | 85 // Applies platform styles to |label| and fills |color_by_state| with the text |
86 // colors for normal, pressed, hovered, and disabled states, if the colors for | 86 // colors for normal, pressed, hovered, and disabled states, if the colors for |
87 // Button::STYLE_BUTTON buttons differ from those provided by ui::NativeTheme. | 87 // Button::STYLE_BUTTON buttons differ from those provided by ui::NativeTheme. |
88 static void ApplyLabelButtonTextStyle(Label* label, | 88 static void ApplyLabelButtonTextStyle(Label* label, |
89 ButtonColorByState* color_by_state); | 89 ButtonColorByState* color_by_state); |
90 | 90 |
91 // Applies the current system theme to the default border created by |button|. | 91 // Applies the current system theme to the default border created by |button|. |
92 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( | 92 static std::unique_ptr<Border> CreateThemedLabelButtonBorder( |
93 LabelButton* button); | 93 LabelButton* button); |
94 | 94 |
| 95 // Called whenever a textfield keypress is unhandled for any reason. Gives |
| 96 // visual/audio feedback about the unhandled key if platform-appropriate. |
| 97 static void OnTextfieldKeypressUnhandled(); |
| 98 |
95 private: | 99 private: |
96 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); | 100 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); |
97 }; | 101 }; |
98 | 102 |
99 } // namespace views | 103 } // namespace views |
100 | 104 |
101 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ | 105 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ |
OLD | NEW |