return false;
}
+void RWHVAuraCommonHelperEfl::SendMouseDown(int button, int x, int y) {
+ if (auto* event_handler = GetEventHandler())
+ event_handler->SendMouseDown(button, x, y);
+}
+
+void RWHVAuraCommonHelperEfl::SendMouseUp(int button, int x, int y) {
+ if (auto* event_handler = GetEventHandler())
+ event_handler->SendMouseUp(button, x, y);
+}
+
+void RWHVAuraCommonHelperEfl::SendMouseMove(int x, int y) {
+ if (auto* event_handler = GetEventHandler())
+ event_handler->SendMouseMove(x, y);
+}
+
+void RWHVAuraCommonHelperEfl::SendMouseWheel(bool y_direction,
+ int step,
+ int x,
+ int y) {
+ if (auto* event_handler = GetEventHandler())
+ event_handler->SendMouseWheel(y_direction, step, x, y);
+}
+
+void RWHVAuraCommonHelperEfl::SendMouseOut() {
+ if (auto* event_handler = GetEventHandler())
+ event_handler->SendMouseOut();
+}
+
void RWHVAuraCommonHelperEfl::OnGestureEvent(ui::GestureEvent* event) {
if (event->type() == ui::ET_GESTURE_BEGIN)
HandleGestureBegin();
}
void SetTouchEventsEnabled(bool enabled);
bool TouchEventsEnabled();
+ void SendMouseDown(int button, int x, int y);
+ void SendMouseUp(int button, int x, int y);
+ void SendMouseMove(int x, int y);
+ void SendMouseWheel(bool y_direction, int step, int x, int y);
+ void SendMouseOut();
bool IsFocusedNodeContentEditable() const { return is_content_editable_; }
void SetKeyEventsEnabled(bool enabled);
}
}
+void EWebView::SendMouseDown(int button, int x, int y) {
+ if (!rwhva() || !rwhva()->offscreen_helper()) {
+ LOG(WARNING) << "RWHV is not created yet!";
+ return;
+ }
+
+ rwhva()->offscreen_helper()->SendMouseDown(button, x, y);
+}
+
+void EWebView::SendMouseUp(int button, int x, int y) {
+ if (!rwhva() || !rwhva()->offscreen_helper()) {
+ LOG(WARNING) << "RWHV is not created yet!";
+ return;
+ }
+
+ rwhva()->offscreen_helper()->SendMouseUp(button, x, y);
+}
+
+void EWebView::SendMouseMove(int x, int y) {
+ if (!rwhva() || !rwhva()->offscreen_helper()) {
+ LOG(WARNING) << "RWHV is not created yet!";
+ return;
+ }
+
+ rwhva()->offscreen_helper()->SendMouseMove(x, y);
+}
+
+void EWebView::SendMouseWheel(bool y_direction, int step, int x, int y) {
+ if (!rwhva() || !rwhva()->offscreen_helper()) {
+ LOG(WARNING) << "RWHV is not created yet!";
+ return;
+ }
+
+ rwhva()->offscreen_helper()->SendMouseWheel(y_direction, step, x, y);
+}
+
+void EWebView::SendMouseOut() {
+ if (!rwhva() || !rwhva()->offscreen_helper()) {
+ LOG(WARNING) << "RWHV is not created yet!";
+ return;
+ }
+
+ rwhva()->offscreen_helper()->SendMouseOut();
+}
+
bool EWebView::TouchEventsEnabled() const {
return rwhva()->offscreen_helper()->TouchEventsEnabled();
}
void HandleTouchEvents(Ewk_Touch_Event_Type type,
const Eina_List* points,
const Evas_Modifier* modifiers);
+ void SendMouseDown(int button, int x, int y);
+ void SendMouseUp(int button, int x, int y);
+ void SendMouseMove(int x, int y);
+ void SendMouseWheel(bool y_direction, int step, int x, int y);
+ void SendMouseOut();
void Show();
void Hide();
bool ExecuteJavaScript(const char* script,
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,
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.");
int y);
/**
+ * Sends mouse out event.
+ *
+ * @since_tizen 6.0
+ *
+ * @param[in] o view object
+ */
+EXPORT_API void ewk_view_feed_mouse_out(Evas_Object* o);
+
+/**
* @brief Sends key event.
*
* @since_tizen 2.4