|
[KeyboardEvent] Use DOM |code| rather than Windows-based key code & introduce XKB support to generate value for DomKey in X11
- Instead of relying on the Windows KeyCode uses Dom |code| to convert to the character.
- Introduces helper functions to get the meaning of a DOM |code| in a platform independent way. It supports control characters as well.
It assumes a US keyboard layout is used, so it may only be used when there is no native event or no better way to get the character.
- The table it uses are responsible for converting are: Dom |code| to a printable character, Dom |code| to Dom |key|, Dom |code| to VKeys, and definitions of the xkbcommon keysym type (xkb_keysym_t) and values (XKB_KEY_...) for both xkbcommon and traditional X11.
- To facilitate the Dom |code| to be used, it removes all the code which was used to derive character from the keycode.
To introduce XKB support in X11.
- XKB related files are moved out of Ozone directory to ui/events/keycodes and now applies to both Ozone and X11.
- Due to this move, layout_util is removed and xkb_keyboard_code_conversion functionality is moved to ui/events/keycode.
- To derive meaning for X11 events updates returns a dom |key| and character from an XEvent.
- Return the dom |key| determined by the XKB layout result (keysym, character) and character from an XEvent
Originally based on Kevin's CLs.
R=kpschoedel, Wez
BUG= 444048
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1253 lines, -832 lines) |
Patch |
 |
M |
content/renderer/render_view_browsertest.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/base/accelerators/accelerator.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/event.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/events.gyp
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/keycodes/keyboard_code_conversion.h
|
View
|
1
2
3
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/events/keycodes/keyboard_code_conversion.cc
|
View
|
1
2
3
|
2 chunks |
+647 lines, -220 lines |
0 comments
|
Download
|
 |
M |
ui/events/keycodes/keyboard_code_conversion_x.h
|
View
|
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/keycodes/keyboard_code_conversion_x.cc
|
View
|
|
3 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
ui/events/keycodes/keyboard_code_conversion_xkb.h
|
View
|
1
|
2 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
A + |
ui/events/keycodes/keyboard_code_conversion_xkb.cc
|
View
|
1
2
3
|
2 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/events/keycodes/keyboard_codes_win.h
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/events/keycodes/xkb_keysym.h
|
View
|
|
1 chunk |
+533 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/BUILD.gn
|
View
|
1
2
3
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/evdev/keyboard_evdev.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/ozone/events_ozone.gyp
|
View
|
1
2
3
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
D |
ui/events/ozone/layout/layout_util.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
 |
D |
ui/events/ozone/layout/layout_util.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
ui/events/ozone/layout/xkb/xkb_keyboard_code_conversion.h
|
View
|
|
1 chunk |
+0 lines, -32 lines |
0 comments
|
Download
|
 |
D |
ui/events/ozone/layout/xkb/xkb_keyboard_code_conversion.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -453 lines |
0 comments
|
Download
|
 |
M |
ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
|
View
|
1
2
3
|
4 chunks |
+4 lines, -20 lines |
0 comments
|
Download
|
 |
M |
ui/events/test/event_generator.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_event_dispatcher_linux.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|