[M120 Migration][NUI] Add internal mouse event API for NUI.
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_view.cc
index e85e612..f9bc785 100644 (file)
@@ -1873,18 +1873,22 @@ void ewk_view_feed_mouse_down(Evas_Object* view,
                               Ewk_Mouse_Button_Type button,
                               int x,
                               int y) {
-  LOG_EWK_API_MOCKUP("NUI feature is not enabled");
+  EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+  LOG(INFO) << "ewk_view_feed_mouse_down";
+  impl->SendMouseDown(button, x, y);
 }
 
 void ewk_view_feed_mouse_up(Evas_Object* view,
                             Ewk_Mouse_Button_Type button,
                             int x,
                             int y) {
-  LOG_EWK_API_MOCKUP("NUI feature is not enabled");
+  EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+  impl->SendMouseUp(button, x, y);
 }
 
 void ewk_view_feed_mouse_move(Evas_Object* view, int x, int y) {
-  LOG_EWK_API_MOCKUP("NUI feature is not enabled");
+  EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+  impl->SendMouseMove(x, y);
 }
 
 void ewk_view_feed_mouse_wheel(Evas_Object* view,
@@ -1892,9 +1896,14 @@ void ewk_view_feed_mouse_wheel(Evas_Object* view,
                                int step,
                                int x,
                                int y) {
-  LOG_EWK_API_MOCKUP("NUI feature is not enabled");
+  EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+  impl->SendMouseWheel(!!y_direction, step, x, y);
 }
 
+void ewk_view_feed_mouse_out(Evas_Object* view) {
+  EWK_VIEW_IMPL_GET_OR_RETURN(view, impl);
+  impl->SendMouseOut();
+}
 void ewk_view_auto_login(Evas_Object *view, const char* user_name, const char* password)
 {
   LOG_EWK_API_MOCKUP("This API is not supported.");