Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: ui/views/style/platform_style.h

Issue 2342343003: views: provide feedback when editing fails (Closed)
Patch Set: OnEditFailed -> OnKeypressUnhandled Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698