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

Unified Diff: ui/events/event.h

Issue 929053004: [KeyboardEvent] Add embedder APIs to translate between Dom |key| enum and strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup of the dom_key.h Created 5 years, 5 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
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index 49d650a5d70bb0bb066063c19a2630efc3a59eac..34b5f244833238c1bbc9f90b1fb2e1e5f66ac345 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -738,6 +738,9 @@ class EVENTS_EXPORT KeyEvent : public Event {
// Returns the DOM .key (layout meaning) for a keystroke event.
DomKey GetDomKey() const;
+ // Returns either DomKey or Unicode value + DomKey::CHARACTER.
+ int GetDomKeyOrCharacter() const;
+
// Normalizes flags_ so that it describes the state after the event.
// (Native X11 event flags describe the state before the event.)
void NormalizeFlags();

Powered by Google App Engine
This is Rietveld 408576698