From: joogab.yun Date: Tue, 4 Feb 2025 06:21:45 +0000 (+0900) Subject: Revert "[Tizen] Add APIs for setting IME position, cursor theme name." X-Git-Tag: accepted/tizen/unified/20250205.095537~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bfae89f89f5d7f4f5bcc3e7c209e9786c092cc2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Revert "[Tizen] Add APIs for setting IME position, cursor theme name." This reverts commit 755d7eb56b3af5b7686612e52d4a96073b01b583. --- diff --git a/dali-toolkit/devel-api/controls/web-view/web-settings.cpp b/dali-toolkit/devel-api/controls/web-view/web-settings.cpp index a4178e72fa..385ecc6210 100755 --- a/dali-toolkit/devel-api/controls/web-view/web-settings.cpp +++ b/dali-toolkit/devel-api/controls/web-view/web-settings.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -269,15 +269,6 @@ bool WebSettings::IsExtraFeatureEnabled(const std::string& feature) const return mWebEngineSettings.IsExtraFeatureEnabled(feature); } -void WebSettings::SetImeStyle(int style) -{ - mWebEngineSettings.SetImeStyle(style); -} - -int WebSettings::GetImeStyle() const -{ - return mWebEngineSettings.GetImeStyle(); -} } // namespace Toolkit diff --git a/dali-toolkit/devel-api/controls/web-view/web-settings.h b/dali-toolkit/devel-api/controls/web-view/web-settings.h index 1708a8ad0a..de428338c6 100755 --- a/dali-toolkit/devel-api/controls/web-view/web-settings.h +++ b/dali-toolkit/devel-api/controls/web-view/web-settings.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_WEB_SETTINGS_H /* - * Copyright (c) 2024 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -407,25 +407,6 @@ public: */ bool IsExtraFeatureEnabled(const std::string& feature) const; - /** - * @brief Sets the style of IME. - * - * @param[in] style @c IME_STYLE_FULL full IME style - * @c IME_STYLE_FLOATING floating IME style - * @c IME_STYLE_DYNAMIC dynamic IME style - * - */ - void SetImeStyle(int style); - - /** - * @brief Gets the style of IME. - * - * @return @c IME_STYLE_FULL full IME style - * @c IME_STYLE_FLOATING floating IME style - * @c IME_STYLE_DYNAMIC dynamic IME style - */ - int GetImeStyle() const; - private: Dali::WebEngineSettings& mWebEngineSettings; }; diff --git a/dali-toolkit/devel-api/controls/web-view/web-view.cpp b/dali-toolkit/devel-api/controls/web-view/web-view.cpp index 9446d65de5..05d5a7be7e 100755 --- a/dali-toolkit/devel-api/controls/web-view/web-view.cpp +++ b/dali-toolkit/devel-api/controls/web-view/web-view.cpp @@ -189,16 +189,6 @@ bool WebView::StopInspectorServer() return Dali::Toolkit::GetImpl(*this).StopInspectorServer(); } -bool WebView::SetImePositionAndAlignment(Dali::Vector2 position, int alignment) -{ - return Dali::Toolkit::GetImpl(*this).SetImePositionAndAlignment(position, alignment); -} - -void WebView::SetCursorThemeName(const std::string themeName) -{ - Dali::Toolkit::GetImpl(*this).SetCursorThemeName(themeName); -} - void WebView::ScrollBy(int32_t deltaX, int32_t deltaY) { Dali::Toolkit::GetImpl(*this).ScrollBy(deltaX, deltaY); diff --git a/dali-toolkit/devel-api/controls/web-view/web-view.h b/dali-toolkit/devel-api/controls/web-view/web-view.h index d216539aad..cacec24671 100755 --- a/dali-toolkit/devel-api/controls/web-view/web-view.h +++ b/dali-toolkit/devel-api/controls/web-view/web-view.h @@ -413,21 +413,6 @@ public: */ bool StopInspectorServer(); - /** - * @brief Set the style of IME. - * @param[in] position Position of IME. - * @param[in] alignment Alignment of IME. - * - * @return true if succeeded, false otherwise - */ - bool SetImePositionAndAlignment(Dali::Vector2 position, int alignment); - - /** - * @brief Set the theme name of cursor. - * @param[in] themeName The name of theme of cursor. - */ - void SetCursorThemeName(const std::string themeName); - /** * @brief Scroll web page of view by deltaX and deltaY. * @param[in] deltaX The delta x of scroll diff --git a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp index 9bef72c5ac..a4f99a9c99 100644 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp @@ -503,19 +503,6 @@ bool WebView::StopInspectorServer() return mWebEngine ? mWebEngine.StopInspectorServer() : false; } -bool WebView::SetImePositionAndAlignment(Dali::Vector2 position, int alignment) -{ - return mWebEngine ? mWebEngine.SetImePositionAndAlignment(position, alignment) : false; -} - -void WebView::SetCursorThemeName(const std::string themeName) -{ - if(mWebEngine) - { - mWebEngine.SetCursorThemeName(themeName); - } -} - void WebView::ScrollBy(int32_t deltaX, int32_t deltaY) { if(mWebEngine) diff --git a/dali-toolkit/internal/controls/web-view/web-view-impl.h b/dali-toolkit/internal/controls/web-view/web-view-impl.h index fce9dd2d44..21a4c76660 100644 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.h +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.h @@ -187,21 +187,6 @@ public: */ bool StopInspectorServer(); - /** - * @brief Set the style of IME. - * @param[in] position Position of IME. - * @param[in] alignment Alignment of IME. - * - * @return true if succeeded, false otherwise - */ - bool SetImePositionAndAlignment(Dali::Vector2 position, int alignment); - - /** - * @brief Set the theme name of cursor. - * @param[in] themeName The name of theme of cursor. - */ - void SetCursorThemeName(const std::string themeName); - /** * @copydoc Dali::Toolkit::WebView::ScrollBy() */