[Tizen] Add a WebView API for notifying orientation change
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 27 Aug 2024 06:35:19 +0000 (15:35 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 27 Aug 2024 06:35:19 +0000 (15:35 +0900)
This reverts commit 5a526148e487f5dc03ce9f296fbd27ab2af40039.

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 6d900cb599c72b79bb48eb9ceeaad074028bdbae..7b344199632cab46ef2888018f1309506a1b44b6 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.
@@ -298,6 +298,11 @@ public:
    */
   virtual NativeImageSourcePtr GetNativeImageSource() = 0;
 
+  /**
+   * @brief Change orientation.
+   */
+  virtual void ChangeOrientation(int orientation) = 0;
+
   /**
    * @brief Return the URL of the Web.
    *
index 7f07ca0a96623789f9c932dc8ecf8ba3c895fcaa..4d8fb89299165588452c18f7f7c5f42508d26b76 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 f8e3298c099fcac66fd6df10773954a059b40cc1..bb62795db8142a3b8217ae0db6e013595aa2f6fd 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.
@@ -150,6 +150,11 @@ public:
    */
   NativeImageSourcePtr GetNativeImageSource();
 
+  /**
+   * @brief Change orientation.
+   */
+  void ChangeOrientation(int orientation);
+
   /**
    * @brief Get settings of WebEngine.
    */
index 71b69ea0f42cf0dcef0ae9e15b5702ac5d3c977a..2b557f1fae541561c6410c223665f4efa091e835 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 b3ef0608bbb753c35e9b4317b5432cbf4cc28972..e356133174d2f093985c69c4d4451ffbbfb53e8d 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.
@@ -92,6 +92,11 @@ public:
    */
   Dali::NativeImageSourcePtr GetNativeImageSource();
 
+  /**
+   * @copydoc Dali::WebEngine::ChangeOrientation()
+   */
+  void ChangeOrientation(int orientation);
+
   /**
    * @copydoc Dali::WebEngine::GetSettings()
    */