| 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 f9186ca0c885701107feb19f746d54bcc88a3993..d85ec62f84461909054060771c1c26a3e897fe66 100644
|
| --- a/ui/events/keycodes/keyboard_code_conversion_x.h
|
| +++ b/ui/events/keycodes/keyboard_code_conversion_x.h
|
| @@ -10,6 +10,7 @@
|
| #include "ui/events/keycodes/keyboard_codes_posix.h"
|
|
|
| typedef union _XEvent XEvent;
|
| +typedef struct _XDisplay XDisplay;
|
|
|
| namespace ui {
|
|
|
| @@ -26,6 +27,14 @@ EVENTS_BASE_EXPORT uint16 GetCharacterFromXEvent(XEvent* xev);
|
| EVENTS_BASE_EXPORT int XKeysymForWindowsKeyCode(KeyboardCode keycode,
|
| bool shift);
|
|
|
| +// Returns a XKeyEvent keycode (scancode) for a KeyboardCode. Keyboard layouts
|
| +// are usually not injective, so inverse mapping should be avoided when
|
| +// practical. A round-trip keycode -> KeyboardCode -> keycode will not
|
| +// necessarily return the original keycode.
|
| +EVENTS_BASE_EXPORT unsigned int XKeyCodeForWindowsKeyCode(KeyboardCode key_code,
|
| + int flags,
|
| + XDisplay* display);
|
| +
|
| // Converts an X keycode into ui::KeyboardCode.
|
| EVENTS_BASE_EXPORT KeyboardCode
|
| DefaultKeyboardCodeFromHardwareKeycode(unsigned int hardware_code);
|
|
|