/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
return Control::DownCast<WebView, Internal::WebView>(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();
#define DALI_TOOLKIT_WEB_VIEW_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
static WebView DownCast(BaseHandle handle);
/**
+ * @brief Change orientation.
+ */
+ void ChangeOrientation(int orientation);
+
+ /**
* @brief Get WebSettings of WebEngine.
*/
Dali::Toolkit::WebSettings* GetSettings() const;
SetDisplayArea(displayArea);
}
+void WebView::ChangeOrientation(int orientation)
+{
+ if(mWebEngine)
+ {
+ mWebEngine.ChangeOrientation(orientation);
+ }
+}
+
Dali::Toolkit::WebSettings* WebView::GetSettings() const
{
return mWebSettings.get();
static Dali::WebEngineCookieManager* GetCookieManager();
/**
+ * @copydoc Dali::Toolkit::WebView::ChangeOrientation()
+ */
+ void ChangeOrientation(int orientation);
+
+ /**
* @copydoc Dali::Toolkit::WebView::GetSettings()
*/
Dali::Toolkit::WebSettings* GetSettings() const;