Chromium Code Reviews| Index: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h |
| diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h |
| index a338c18da655f44148c2f4ded001145a90fc87f6..e2afd895d6a74f5cba8d8a467d1260a8c5d60563 100644 |
| --- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h |
| +++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h |
| @@ -50,6 +50,14 @@ class EVENTS_OZONE_LAYOUT_EXPORT XkbKeyboardLayoutEngine |
| std::string* layout_id, |
| std::string* layout_variant); |
| + // Used to sync up client side 'xkb_state' instance with modifiers status |
| + // update |
| + // from the server. |
| + int UpdateModifiers(uint32_t depressed_mods, |
| + uint32_t latched_mods, |
| + uint32_t locked_mods, |
| + uint32_t group); |
| + |
| protected: |
| // Table for EventFlagsToXkbFlags(). |
| struct XkbFlagMapEntry { |
| @@ -114,6 +122,12 @@ class EVENTS_OZONE_LAYOUT_EXPORT XkbKeyboardLayoutEngine |
| std::string current_layout_name_; |
| + struct { |
| + xkb_mod_index_t control; |
| + xkb_mod_index_t alt; |
| + xkb_mod_index_t shift; |
| + } xkb_mod_indexes_{0, 0, 0}; |
|
spang
2017/01/24 20:41:50
= {0, 0, 0};
Actually, probably even better to ju
tonikitoo
2017/01/24 21:51:10
Done.
|
| + |
| // Support weak pointers for attach & detach callbacks. |
| base::WeakPtrFactory<XkbKeyboardLayoutEngine> weak_ptr_factory_; |
| }; |