[Tizen] Add a WebView API for notifying orientation change. 19/305519/1
authorhuayong.xu <huayong.xu@samsung.com>
Fri, 2 Feb 2024 06:51:49 +0000 (14:51 +0800)
committerhuayong.xu <huayong.xu@samsung.com>
Fri, 2 Feb 2024 06:51:49 +0000 (14:51 +0800)
Change-Id: I20ee245fb1f82beb5259a7fb3ec8c51d2ffab098

dali/devel-api/adaptor-framework/web-engine/web-engine-plugin.h
dali/devel-api/adaptor-framework/web-engine/web-engine.cpp
dali/devel-api/adaptor-framework/web-engine/web-engine.h
dali/internal/web-engine/common/web-engine-impl.cpp
dali/internal/web-engine/common/web-engine-impl.h

index 6d900cb..7b34419 100755 (executable)
@@ -2,7 +2,7 @@
 #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.
@@ -299,6 +299,11 @@ public:
   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
index 7f07ca0..4d8fb89 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -105,6 +105,11 @@ NativeImageSourcePtr WebEngine::GetNativeImageSource()
   return GetImplementation(*this).GetNativeImageSource();
 }
 
+void WebEngine::ChangeOrientation(int orientation)
+{
+  return GetImplementation(*this).ChangeOrientation(orientation);
+}
+
 Dali::WebEngineSettings& WebEngine::GetSettings() const
 {
   return GetImplementation(*this).GetSettings();
index f8e3298..bb62795 100755 (executable)
@@ -2,7 +2,7 @@
 #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.
@@ -151,6 +151,11 @@ public:
   NativeImageSourcePtr GetNativeImageSource();
 
   /**
+   * @brief Change orientation.
+   */
+  void ChangeOrientation(int orientation);
+
+  /**
    * @brief Get settings of WebEngine.
    */
   Dali::WebEngineSettings& GetSettings() const;
index 71b69ea..2b557f1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -315,6 +315,11 @@ Dali::NativeImageSourcePtr WebEngine::GetNativeImageSource()
   return mPlugin->GetNativeImageSource();
 }
 
+void WebEngine::ChangeOrientation(int orientation)
+{
+  return mPlugin->ChangeOrientation(orientation);
+}
+
 Dali::WebEngineSettings& WebEngine::GetSettings() const
 {
   return mPlugin->GetSettings();
index b3ef060..e356133 100755 (executable)
@@ -2,7 +2,7 @@
 #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.
@@ -93,6 +93,11 @@ public:
   Dali::NativeImageSourcePtr GetNativeImageSource();
 
   /**
+   * @copydoc Dali::WebEngine::ChangeOrientation()
+   */
+  void ChangeOrientation(int orientation);
+
+  /**
    * @copydoc Dali::WebEngine::GetSettings()
    */
   Dali::WebEngineSettings& GetSettings() const;