ecore_imf: Add commit content event callback 44/131944/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 31 May 2017 09:23:32 +0000 (18:23 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 31 May 2017 10:07:12 +0000 (10:07 +0000)
COMMIT_CONTENT is called when the input method commits content such as an image.

Change-Id: Idf238dc9b27811999b1ee733eeba2318d57e54f1
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/lib/ecore_imf/Ecore_IMF.h

index 2d66631..8323f6f 100644 (file)
@@ -143,6 +143,7 @@ typedef struct _Ecore_IMF_Event_Preedit_Changed    Ecore_IMF_Event_Preedit_Chang
 typedef struct _Ecore_IMF_Event_Commit             Ecore_IMF_Event_Commit;
 typedef struct _Ecore_IMF_Event_Delete_Surrounding Ecore_IMF_Event_Delete_Surrounding;
 typedef struct _Ecore_IMF_Event_Selection          Ecore_IMF_Event_Selection;
+typedef struct _Ecore_IMF_Event_Commit_Content     Ecore_IMF_Event_Commit_Content;
 
 /* Events to filter */
 typedef struct _Ecore_IMF_Event_Mouse_Down         Ecore_IMF_Event_Mouse_Down;
@@ -192,7 +193,8 @@ typedef enum
    ECORE_IMF_CALLBACK_COMMIT,             /**< "COMMIT" is called when a complete input sequence has been entered by the user @since 1.2 */
    ECORE_IMF_CALLBACK_DELETE_SURROUNDING, /**< "DELETE_SURROUNDING" is called when the input method needs to delete all or part of the context surrounding the cursor @since 1.2 */
    ECORE_IMF_CALLBACK_SELECTION_SET,      /**< "SELECTION_SET" is called when the input method needs to set the selection @since 1.9 */
-   ECORE_IMF_CALLBACK_PRIVATE_COMMAND_SEND /**< "PRIVATE_COMMAND_SEND" is called when the input method sends a private command @since 1.12 */
+   ECORE_IMF_CALLBACK_PRIVATE_COMMAND_SEND, /**< "PRIVATE_COMMAND_SEND" is called when the input method sends a private command @since 1.12 */
+   ECORE_IMF_CALLBACK_COMMIT_CONTENT      /**< "COMMIT_CONTENT" is called when the input method commits content such as an image @since 1.20 */
 } Ecore_IMF_Callback_Type;
 
 /**
@@ -492,6 +494,21 @@ struct _Ecore_IMF_Event_Selection
 };
 
 /**
+ * @struct _Ecore_IMF_Event_Commit_Content
+ * @brief The structure type used with the Commit_Content Input Method event
+ * @since 1.20
+ *
+ * @since_tizen 4.0
+ */
+struct _Ecore_IMF_Event_Commit_Content
+{
+   Ecore_IMF_Context *ctx;                  /**< The associated Ecore IMF Context */
+   const char        *content_uri;          /**< The content URI */
+   const char        *description;          /**< The content description */
+   const char        *mime_types;           /**< The content MIME types */
+};
+
+/**
  * @struct _Ecore_IMF_Event_Mouse_Down
  * @brief The structure type used with the Mouse_Down event
  */