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

Unified Diff: ui/events/ozone/layout/xkb/xkb_key_code_converter.h

Issue 786813004: Generate correct KeyboardCode (VKEY). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x430194-xkb
Patch Set: rebase after crrev.com/308447 Created 6 years 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/ozone/layout/xkb/xkb_key_code_converter.h
diff --git a/ui/events/ozone/layout/xkb/xkb_key_code_converter.h b/ui/events/ozone/layout/xkb/xkb_key_code_converter.h
index 7f4f510418007104286bddba55169363ae5bd2e0..e01d2733d6142219b515d1bc822e8e1833de1ff7 100644
--- a/ui/events/ozone/layout/xkb/xkb_key_code_converter.h
+++ b/ui/events/ozone/layout/xkb/xkb_key_code_converter.h
@@ -11,6 +11,10 @@ namespace ui {
enum class DomCode;
+// XKB scan code values are platform-dependent; this provides the layout engine
+// with the mapping from DomCode to xkb_keycode_t. (This mapping is in principle
+// derivable from the XKB keyboard layout, but xkbcommon does not provide a
+// practical interface to do so.)
class EVENTS_OZONE_LAYOUT_EXPORT XkbKeyCodeConverter {
public:
XkbKeyCodeConverter();
« no previous file with comments | « ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc ('k') | ui/events/ozone/layout/xkb/xkb_keyboard_code_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698