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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style.h
diff --git a/ui/views/style/platform_style.h b/ui/views/style/platform_style.h
index a4a33a1a6e41016fa85a33c4b630c0f8c3273e11..bc9eab35332e1e8bba1cdbbb0fb294d051be8170 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -92,6 +92,10 @@ class VIEWS_EXPORT PlatformStyle {
static std::unique_ptr<Border> CreateThemedLabelButtonBorder(
LabelButton* button);
+ // Called whenever a textfield keypress is unhandled for any reason. Gives
+ // visual/audio feedback about the unhandled key if platform-appropriate.
+ static void OnTextfieldKeypressUnhandled();
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
};
« 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