Revert "Add a new api to update geometry of input panel" 12/194412/1
authorInhong Han <inhong1.han@samsung.com>
Tue, 4 Dec 2018 07:02:47 +0000 (16:02 +0900)
committerInhong Han <inhong1.han@samsung.com>
Tue, 4 Dec 2018 07:04:49 +0000 (16:04 +0900)
This reverts commit 7831a5543d73cc0157ff71c78bd3fb8c223ccf67.

Change-Id: I51e42941314d37208134c3f4ccb7803da91a0778

include/inputmethod.h
src/inputmethod.cpp

index e098c29936a4c59ab03b8cf27a6785c8044fbf07..0710aff2813467a4a2323ac2408a018c317d014b 100644 (file)
@@ -2464,28 +2464,6 @@ int ime_request_hide(void);
  */
 int ime_update_input_panel_event(ime_event_type_e type, unsigned int value);
 
-/**
- * @brief Updates a custom geometry of input panel window.
- *
- * @since_tizen 5.5
- *
- * @privlevel public
- *
- * @privilege %http://tizen.org/privilege/ime
- *
- * @param[in] x The x position in screen
- * @param[in] y The y position in screen
- * @param[in] width The window width
- * @param[in] height The window height
- *
- * @return 0 on success, otherwise a negative error value
- * @retval #IME_ERROR_NONE No error
- * @retval #IME_ERROR_INVALID_PARAMETER Invalid parameter
- * @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
- */
-int ime_update_custom_geometry(int x, int y, int width, int height);
-
 /**
  * @}
  */
index fb1a7c6685fa6c6ff5ca8cc991a6f65b5c27e2f0..15e443fa9316a2a668934146d992dcabc5d1877c 100644 (file)
@@ -2087,25 +2087,3 @@ EXPORT_API int ime_update_input_panel_event(ime_event_type_e type, unsigned int
 
     return IME_ERROR_NONE;
 }
-
-EXPORT_API int ime_update_custom_geometry(int x, int y, int width, int height)
-{
-    ime_error_e retVal = IME_ERROR_NONE;
-
-    if (x < 0 || y < 0 || width < 0 || height < 0) {
-        LOGW("IME_ERROR_INVALID_PARAMETER");
-        return IME_ERROR_INVALID_PARAMETER;
-    }
-
-    retVal = _check_privilege();
-    if (retVal != IME_ERROR_NONE) return retVal;
-
-    if (!g_running) {
-        LOGW("IME_ERROR_NOT_RUNNING");
-        return IME_ERROR_NOT_RUNNING;
-    }
-
-    g_core.update_geometry(x, y, width, height);
-
-    return IME_ERROR_NONE;
-}