#define DALI_WEB_ENGINE_PLUGIN_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.
virtual NativeImageSourcePtr GetNativeImageSource() = 0;
/**
+ * @brief Change orientation.
+ */
+ virtual void ChangeOrientation(int orientation) = 0;
+
+ /**
* @brief Return the URL of the Web.
*
* @return Url of string type
/*
- * 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 GetImplementation(*this).GetNativeImageSource();
}
+void WebEngine::ChangeOrientation(int orientation)
+{
+ return GetImplementation(*this).ChangeOrientation(orientation);
+}
+
Dali::WebEngineSettings& WebEngine::GetSettings() const
{
return GetImplementation(*this).GetSettings();
#define DALI_WEB_ENGINE_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.
NativeImageSourcePtr GetNativeImageSource();
/**
+ * @brief Change orientation.
+ */
+ void ChangeOrientation(int orientation);
+
+ /**
* @brief Get settings of WebEngine.
*/
Dali::WebEngineSettings& GetSettings() const;
/*
- * 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 mPlugin->GetNativeImageSource();
}
+void WebEngine::ChangeOrientation(int orientation)
+{
+ return mPlugin->ChangeOrientation(orientation);
+}
+
Dali::WebEngineSettings& WebEngine::GetSettings() const
{
return mPlugin->GetSettings();
#define DALI_WEB_ENGINE_IMPL_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.
Dali::NativeImageSourcePtr GetNativeImageSource();
/**
+ * @copydoc Dali::WebEngine::ChangeOrientation()
+ */
+ void ChangeOrientation(int orientation);
+
+ /**
* @copydoc Dali::WebEngine::GetSettings()
*/
Dali::WebEngineSettings& GetSettings() const;