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

Unified Diff: ui/events/keycodes/keyboard_code_conversion_x.h

Issue 237363005: Convert chromeos::EventRewriter to a ui::EventRewriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/keycodes/keyboard_code_conversion_x.h
diff --git a/ui/events/keycodes/keyboard_code_conversion_x.h b/ui/events/keycodes/keyboard_code_conversion_x.h
index ff34ba1358d21c49a69c00ea1181a7896a0e7691..ea347569fb588710e1bdba112b166d054b046d94 100644
--- a/ui/events/keycodes/keyboard_code_conversion_x.h
+++ b/ui/events/keycodes/keyboard_code_conversion_x.h
@@ -17,6 +17,12 @@ EVENTS_BASE_EXPORT KeyboardCode KeyboardCodeFromXKeyEvent(XEvent* xev);
EVENTS_BASE_EXPORT KeyboardCode KeyboardCodeFromXKeysym(unsigned int keysym);
+// Returns ui:EF_ flags associated with an X11 Keysym, where the
+// ui::KeyboardCode alone is not sufficient to characterize it.
+// Currently used to distinguish numpad editing keys from their
+// cursor-block equivalents.
+EVENTS_BASE_EXPORT int EventFlagsFromXKeysym(unsigned int keysym);
+
EVENTS_BASE_EXPORT const char* CodeFromXEvent(XEvent* xev);
// Returns a character on a standard US PC keyboard from an XEvent.

Powered by Google App Engine
This is Rietveld 408576698