[Tizen] Add a WebView API for notifying orientation change. accepted/tizen/unified/20240731.160125 accepted/tizen/unified/dev/20240805.054527 accepted/tizen/unified/toolchain/20240812.133545 accepted/tizen/unified/x/20240801.044315
authordongsug.song <dongsug.song@samsung.com>
Wed, 31 Jul 2024 00:23:19 +0000 (09:23 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 31 Jul 2024 00:23:23 +0000 (09:23 +0900)
This reverts commit ac06ae63a4ecb542b056de6815a22e9e73d069e6.

Change-Id: Ide3dc05ece9d159f48f8507a78ffc95b700b0a8a

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;