Upstream version 9.38.204.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / events / event_converter_in_process.cc
index 23f042c..7e63077 100644 (file)
@@ -94,6 +94,11 @@ void EventConverterInProcess::WindowResized(unsigned handle,
           height));
 }
 
+void EventConverterInProcess::WindowUnminimized(unsigned handle) {
+  ui::EventConverterOzoneWayland::PostTaskOnMainLoop(base::Bind(
+      &EventConverterInProcess::NotifyWindowUnminimized, this, handle));
+}
+
 void EventConverterInProcess::Commit(unsigned handle, const std::string& text) {
   ui::EventConverterOzoneWayland::PostTaskOnMainLoop(base::Bind(
       &EventConverterInProcess::NotifyCommit, this, handle, text));
@@ -199,7 +204,7 @@ void EventConverterInProcess::NotifyKeyEvent(EventConverterInProcess* data,
                                              ui::KeyboardCode code,
                                              uint16 CharacterCodeFromNativeKey,
                                              unsigned modifiers) {
-  ui::KeyEvent keyev(type, code, modifiers, false);
+  ui::KeyEvent keyev(type, code, modifiers);
   keyev.set_character(CharacterCodeFromNativeKey);
   data->DispatchEvent(&keyev);
 }
@@ -240,6 +245,13 @@ EventConverterInProcess::NotifyWindowResized(EventConverterInProcess* data,
 }
 
 void
+EventConverterInProcess::NotifyWindowUnminimized(EventConverterInProcess* data,
+                                                 unsigned handle) {
+  if (data->observer_)
+    data->observer_->OnWindowUnminimized(handle);
+}
+
+void
 EventConverterInProcess::NotifyCommit(EventConverterInProcess* data,
                                       unsigned handle,
                                       const std::string& text) {