text_input: add dummy implementation of tizen only handlers 90/280990/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 6 Sep 2022 07:46:30 +0000 (16:46 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 7 Sep 2022 09:50:57 +0000 (18:50 +0900)
to avoid a crash from a client's request.

Change-Id: Ie224f2437fa38aad83fa983e32feb088df1ecc7e

src/text_input/text_input.c

index d25b1a4..ad4bcf2 100644 (file)
@@ -354,6 +354,130 @@ text_input_handle_invoke_action(struct wl_client *client,
     wl_signal_emit(&text_input->events.invoke_action, &ds_event);
 }
 
+static void
+text_input_handle_set_return_key_type(struct wl_client *client,
+    struct wl_resource *resource, uint32_t return_key_type)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_set_return_key_type");
+}
+
+static void
+text_input_handle_set_return_key_disabled(struct wl_client *client,
+    struct wl_resource *resource, uint32_t return_key_disabled)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_set_return_key_disabled");
+}
+
+static void
+text_input_handle_set_input_panel_data(struct wl_client *client,
+    struct wl_resource *resource, const char *input_panel_data,
+    uint32_t input_panel_length)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_set_input_panel_data");
+}
+
+static void
+text_input_handle_bidi_direction(struct wl_client *client,
+    struct wl_resource *resource, uint32_t direction)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_bidi_direction");
+}
+
+static void
+text_input_handle_set_cursor_position(struct wl_client *client,
+    struct wl_resource *resource, uint32_t cursor_position)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_set_cursor_position");
+}
+
+static void
+text_input_handle_process_input_device_event(struct wl_client *client,
+    struct wl_resource *resource, uint32_t event_type, const char *event_data,
+    uint32_t event_length)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_process_input_device_event");
+}
+
+static void
+text_input_handle_filter_key_event(struct wl_client *client,
+    struct wl_resource *resource, uint32_t serial, uint32_t time,
+    const char *keyname, uint32_t modifiers, const char *dev_name,
+    uint32_t dev_class, uint32_t dev_subclass, uint32_t keycode)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_filter_key_event");
+}
+
+static void
+text_input_handle_get_hide_permission(struct wl_client *client,
+    struct wl_resource *resource)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_get_hide_permission");
+}
+
+static void
+text_input_handle_set_capital_mode(struct wl_client *client,
+    struct wl_resource *resource, uint32_t mode)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_set_capital_mode");
+}
+
+static void
+text_input_handle_prediction_hint(struct wl_client *client,
+    struct wl_resource *resource, const char *text)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_prediction_hint");
+}
+
+static void
+text_input_handle_set_mime_type(struct wl_client *client,
+    struct wl_resource *resource, const char *type)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_set_mime_type");
+}
+
+static void
+text_input_handle_set_input_panel_position(struct wl_client *client,
+    struct wl_resource *resource, uint32_t x, uint32_t y)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_set_input_panel_position");
+}
+
+static void
+text_input_handle_finalize_content(struct wl_client *client,
+    struct wl_resource *resource, const char *text, uint32_t cursor_position)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_finalize_content");
+}
+
+static void
+text_input_handle_prediction_hint_data(struct wl_client *client,
+    struct wl_resource *resource, const char *key, const char *value)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_prediction_hint_data");
+}
+
+static void
+text_input_handle_input_panel_enabled(struct wl_client *client,
+    struct wl_resource *resource, uint32_t enabled)
+{
+    // TODO:
+    ds_inf("Not Implemented. text_input_handle_input_panel_enabled");
+}
+
 static const struct wl_text_input_interface text_input_impl = {
     .destroy = text_input_handle_destroy,
     .activate = text_input_handle_activate,
@@ -367,21 +491,21 @@ static const struct wl_text_input_interface text_input_impl = {
     .commit_state = text_input_handle_commit_state,
     .invoke_action = text_input_handle_invoke_action,
     //for tizen only
-    .set_return_key_type = NULL,
-    .set_return_key_disabled = NULL,
-    .set_input_panel_data = NULL,
-    .bidi_direction = NULL,
-    .set_cursor_position = NULL,
-    .process_input_device_event = NULL,
-    .filter_key_event = NULL,
-    .get_hide_permission = NULL,
-    .set_capital_mode = NULL,
-    .prediction_hint = NULL,
-    .set_mime_type = NULL,
-    .set_input_panel_position = NULL,
-    .finalize_content = NULL,
-    .prediction_hint_data = NULL,
-    .input_panel_enabled = NULL,
+    .set_return_key_type = text_input_handle_set_return_key_type,
+    .set_return_key_disabled = text_input_handle_set_return_key_disabled,
+    .set_input_panel_data = text_input_handle_set_input_panel_data,
+    .bidi_direction = text_input_handle_bidi_direction,
+    .set_cursor_position = text_input_handle_set_cursor_position,
+    .process_input_device_event = text_input_handle_process_input_device_event,
+    .filter_key_event = text_input_handle_filter_key_event,
+    .get_hide_permission = text_input_handle_get_hide_permission,
+    .set_capital_mode = text_input_handle_set_capital_mode,
+    .prediction_hint = text_input_handle_prediction_hint,
+    .set_mime_type = text_input_handle_set_mime_type,
+    .set_input_panel_position = text_input_handle_set_input_panel_position,
+    .finalize_content = text_input_handle_finalize_content,
+    .prediction_hint_data = text_input_handle_prediction_hint_data,
+    .input_panel_enabled = text_input_handle_input_panel_enabled,
 };
 
 static void