Upstream version 11.39.252.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / events / remote_event_dispatcher.cc
index 1850705..8c367a1 100644 (file)
@@ -54,9 +54,24 @@ void RemoteEventDispatcher::PointerLeave(unsigned handle,
 }
 
 void RemoteEventDispatcher::KeyNotify(ui::EventType type,
-                                      unsigned code,
-                                      unsigned modifiers) {
-  Dispatch(new WaylandInput_KeyNotify(type, code, modifiers));
+                                      unsigned code) {
+  Dispatch(new WaylandInput_KeyNotify(type, code));
+}
+
+void RemoteEventDispatcher::VirtualKeyNotify(ui::EventType type,
+                                             uint32_t key,
+                                             uint32_t modifiers) {
+  Dispatch(new WaylandInput_VirtualKeyNotify(type, key, modifiers));
+}
+
+void RemoteEventDispatcher::KeyModifiers(uint32_t mods_depressed,
+                                         uint32_t mods_latched,
+                                         uint32_t mods_locked,
+                                         uint32_t group) {
+  Dispatch(new WaylandInput_KeyModifiers(mods_depressed,
+                                         mods_latched,
+                                         mods_locked,
+                                         group));
 }
 
 void RemoteEventDispatcher::TouchNotify(ui::EventType type,
@@ -105,6 +120,11 @@ void RemoteEventDispatcher::PreeditStart() {
   Dispatch(new WaylandInput_PreeditStart());
 }
 
+void RemoteEventDispatcher::InitializeXKB(base::SharedMemoryHandle fd,
+                                          uint32_t size) {
+  Dispatch(new WaylandInput_InitializeXKB(fd, size));
+}
+
 void RemoteEventDispatcher::Dispatch(IPC::Message* message) {
     ui::EventConverterOzoneWayland::PostTaskOnMainLoop(
           base::Bind(&RemoteEventDispatcher::Send, this, message));