Changed the API name by API review 99/142199/3
authorInHong Han <inhong1.han@samsung.com>
Thu, 3 Aug 2017 04:36:07 +0000 (13:36 +0900)
committerInHong Han <inhong1.han@samsung.com>
Thu, 3 Aug 2017 06:57:24 +0000 (15:57 +0900)
Change-Id: I86265a119b962b78fb796276ea38f46144df9b32

include/inputmethod.h
src/inputmethod.cpp

index b37e66187b0afb844ba9061ff0c6775ca735a795..71fe097d9c931e33a4e51974bc06c1c2584117f0 100644 (file)
@@ -699,11 +699,11 @@ typedef void (*ime_prediction_hint_set_cb)(const char *prediction_hint, void *us
  * @param[in] mime_type The MIME type to be set to the input panel
  * @param[in] user_data User data to be passed to the callback function
  *
- * @pre The callback can be registered using ime_event_set_mime_type_set_cb() function.
+ * @pre The callback can be registered using ime_event_set_mime_type_set_request_cb() function.
  *
- * @see ime_event_set_mime_type_set_cb()
+ * @see ime_event_set_mime_type_set_request_cb()
  */
-typedef void (*ime_mime_type_set_cb)(const char *mime_type, void *user_data);
+typedef void (*ime_mime_type_set_request_cb)(const char *mime_type, void *user_data);
 
 /**
  * @brief The structure type to contain the set of the essential callback functions for IME application lifecycle and appearance.
@@ -2199,7 +2199,7 @@ int ime_event_set_prediction_hint_set_cb(ime_prediction_hint_set_cb callback_fun
  *
  * @privilege %http://tizen.org/privilege/ime
  *
- * @remarks The ime_mime_type_set_cb() callback function is called when an associated text input
+ * @remarks The ime_mime_type_set_request_cb() callback function is called when an associated text input
  * UI control requests the text entry to set the MIME type.
  *
  * @param[in] callback_func @c mime_type_set event callback function
@@ -2212,10 +2212,10 @@ int ime_event_set_prediction_hint_set_cb(ime_prediction_hint_set_cb callback_fun
  *
  * @post The ime_run() function should be called to start to run IME application's main loop.
  *
- * @see ime_mime_type_set_cb()
+ * @see ime_mime_type_set_request_cb()
  * @see ime_run()
  */
-int ime_event_set_mime_type_set_cb(ime_mime_type_set_cb callback_func, void *user_data);
+int ime_event_set_mime_type_set_request_cb(ime_mime_type_set_request_cb callback_func, void *user_data);
 
 /**
  * @brief Sends a private command to the associated text input UI control.
@@ -2249,15 +2249,15 @@ int ime_send_private_command(const char *command);
  *
  * @param[in] content The content URI to be sent
  * @param[in] description The content description
- * @param[in] mime_type The MIME type received from the ime_mime_type_set_cb()
+ * @param[in] mime_type The MIME type received from the ime_mime_type_set_request_cb()
  *
  * @return 0 on success, otherwise a negative error value
  * @retval #IME_ERROR_NONE No error
  * @retval #IME_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function
  * @retval #IME_ERROR_NOT_RUNNING IME main loop isn't started yet
  *
- * @see ime_mime_type_set_cb()
- * @see ime_event_set_mime_type_set_cb()
+ * @see ime_mime_type_set_request_cb()
+ * @see ime_event_set_mime_type_set_request_cb()
  */
 int ime_commit_content(const char *content, const char *description, const char *mime_type);
 
index 83296cd045f2535f780dc308bccb1a78fe10a039..3affbcb43f83acd1bd3a5fa6b482d3736a07090c 100644 (file)
@@ -98,7 +98,7 @@ typedef struct
     ime_lookup_table_changed_cb lookup_table_changed;
     ime_process_input_device_event_cb process_input_device_event;   /**< Called when the event is received from the unconventional input devices */
     ime_prediction_hint_set_cb prediction_hint_set;
-    ime_mime_type_set_cb mime_type_set;
+    ime_mime_type_set_request_cb mime_type_set;
     void *focus_in_user_data;
     void *focus_out_user_data;
     void *surrounding_text_updated_user_data;
@@ -2065,7 +2065,7 @@ EXPORT_API int ime_event_set_prediction_hint_set_cb(ime_prediction_hint_set_cb c
     return IME_ERROR_NONE;
 }
 
-EXPORT_API int ime_event_set_mime_type_set_cb(ime_mime_type_set_cb callback_func, void *user_data)
+EXPORT_API int ime_event_set_mime_type_set_request_cb(ime_mime_type_set_request_cb callback_func, void *user_data)
 {
     ime_error_e retVal = IME_ERROR_NONE;