From: Inhong Han Date: Tue, 4 Dec 2018 07:02:47 +0000 (+0900) Subject: Revert "Add a new api to update geometry of input panel" X-Git-Tag: submit/tizen/20181204.071903~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd57ec950ae6c3b28adb25b55a8dcc5fcb869684;p=platform%2Fcore%2Fapi%2Finputmethod.git Revert "Add a new api to update geometry of input panel" This reverts commit 7831a5543d73cc0157ff71c78bd3fb8c223ccf67. Change-Id: I51e42941314d37208134c3f4ccb7803da91a0778 --- diff --git a/include/inputmethod.h b/include/inputmethod.h index e098c29..0710aff 100644 --- a/include/inputmethod.h +++ b/include/inputmethod.h @@ -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); - /** * @} */ diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index fb1a7c6..15e443f 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -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; -}