Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / events / event_converter_in_process.cc
index af563ed..e9e5a86 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));
@@ -155,7 +160,7 @@ void EventConverterInProcess::NotifyButtonPress(EventConverterInProcess* data,
                            position,
                            position,
                            flags,
-                           1);
+                           flags);
     data->DispatchEvent(&mouseev);
 
     if (type == ui::ET_MOUSE_RELEASED && data->observer_)
@@ -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) {