From: Jaehyun Cho Date: Tue, 27 Aug 2024 06:36:58 +0000 (+0900) Subject: Revert "[Tizen] Add a WebView API for notifying orientation change" X-Git-Tag: accepted/tizen/unified/20240909.154217~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdbde278901f14a3f5e58dae3fe9fb822f237ba9;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Revert "[Tizen] Add a WebView API for notifying orientation change" This reverts commit 0af21078d17e43c575aea159605d9039493c6804. --- 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 422acfd1d0..3b0f3b6065 100755 --- a/dali-toolkit/devel-api/controls/web-view/web-view.cpp +++ b/dali-toolkit/devel-api/controls/web-view/web-view.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -84,11 +84,6 @@ WebView WebView::DownCast(BaseHandle handle) return Control::DownCast(handle); } -void WebView::ChangeOrientation(int orientation) -{ - return Dali::Toolkit::GetImpl(*this).ChangeOrientation(orientation); -} - Dali::Toolkit::WebSettings* WebView::GetSettings() const { return Dali::Toolkit::GetImpl(*this).GetSettings(); 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 7585bab85f..42b78bce42 100755 --- a/dali-toolkit/devel-api/controls/web-view/web-view.h +++ b/dali-toolkit/devel-api/controls/web-view/web-view.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_WEB_VIEW_H /* - * Copyright (c) 2024 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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,11 +269,6 @@ public: */ static WebView DownCast(BaseHandle handle); - /** - * @brief Change orientation. - */ - void ChangeOrientation(int orientation); - /** * @brief Get WebSettings of WebEngine. */ 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 000647cf99..233e1d0430 100644 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.cpp +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.cpp @@ -340,14 +340,6 @@ void WebView::OnRelayout(const Vector2& size, RelayoutContainer& container) SetDisplayArea(displayArea); } -void WebView::ChangeOrientation(int orientation) -{ - if(mWebEngine) - { - mWebEngine.ChangeOrientation(orientation); - } -} - Dali::Toolkit::WebSettings* WebView::GetSettings() const { return mWebSettings.get(); 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 156c723496..aded7817a4 100644 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.h +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.h @@ -87,11 +87,6 @@ public: */ static Dali::WebEngineCookieManager* GetCookieManager(); - /** - * @copydoc Dali::Toolkit::WebView::ChangeOrientation() - */ - void ChangeOrientation(int orientation); - /** * @copydoc Dali::Toolkit::WebView::GetSettings() */