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: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp

Issue 2748993004: Don't call NOTIMPLEMENTED for caps lock state on non-Mac/Win platforms. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
index 72f23efaa2e348455e95389a3c6d244515b9c8fb..85e437ab33a192faf569ea68fdb70e76a57e6bdc 100644
--- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
@@ -437,7 +437,14 @@ bool KeyboardEventManager::currentCapsLockState() {
#elif OS(MACOSX)
return GetCurrentKeyModifiers() & alphaLock;
#else
- NOTIMPLEMENTED();
+ // Note that the caps lock state provided by this method is only
wkorman 2017/03/15 00:03:14 Two alternatives to this patch: 1. modify LayoutT
dtapuska 2017/03/15 00:11:04 this lgtm. This NOTIMPLEMENTED use to be a no-op b
+ // used to paint a caps lock icon for Mac password input fields.
+ // We may as well just return false if we end up here. Calling
+ // NOTIMPLEMENTED() just produces a verbose debug stack trace
+ // whenever an event is forwarded to a
+ // LayoutTextControlSingleLine on platforms lacking an
+ // implementation, such as CrOS, which isn't helpful as we have
+ // no current plans or need to use this.
stevenjb 2017/03/15 01:25:33 This is helpful, but maybe a little bit verbose :)
wkorman 2017/03/15 08:18:53 Done.
return false;
#endif
case OverrideCapsLockState::On:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698