[Tizen] Update position & size of web engine. 85/252885/1 accepted/tizen/6.0/unified/20210205.032617 submit/tizen_6.0/20210204.105950
authorhuayong.xu <huayong.xu@samsung.com>
Mon, 9 Nov 2020 10:06:59 +0000 (18:06 +0800)
committerJiyun Yang <ji.yang@samsung.com>
Wed, 3 Feb 2021 03:54:41 +0000 (12:54 +0900)
Originally position of web engine is not updated when position of
web view is changed.
This patch is to update position & size of web engine.

Change-Id: I7ec0a70a12a4ce19c3d4ddec54f127415f13c40e

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

index eb4a5fe8d073356335cd6c528556bd911e3d0fc4..4401491061fc2c3b270d22103aaf069ee6b9bee4 100755 (executable)
@@ -20,6 +20,7 @@
 
 // EXTERNAL INCLUDES
 #include <dali/public-api/images/native-image-interface.h>
+#include <dali/public-api/math/rect.h>
 #include <dali/public-api/signals/dali-signal.h>
 #include <functional>
 
@@ -293,6 +294,18 @@ public:
    */
   virtual void SetFocus( bool focused ) = 0;
 
+  /**
+   * @brief Update display area.
+   * @param[in] displayArea The display area need be updated.
+   */
+  virtual void UpdateDisplayArea( Dali::Rect< int > displayArea ) = 0;
+
+  /**
+   * @brief Enable video hole.
+   * @param[in] enabled True if enabled, false othewise.
+   */
+  virtual void EnableVideoHole( bool enabled ) = 0;
+
   /**
    * @brief Connects to this signal to be notified when page loading is started.
    *
index 76dfec0f38fa91f0f0c440366214a7c3d4a7dfd2..3acecebd47218246e78cdba78f787e64da089397 100755 (executable)
@@ -249,6 +249,16 @@ void WebEngine::SetFocus( bool focused )
   GetImplementation( *this ).SetFocus( focused );
 }
 
+void WebEngine::UpdateDisplayArea( Dali::Rect< int > displayArea )
+{
+  GetImplementation( *this ).UpdateDisplayArea( displayArea );
+}
+
+void WebEngine::EnableVideoHole( bool enabled )
+{
+  GetImplementation( *this ).EnableVideoHole( enabled );
+}
+
 Dali::WebEnginePlugin::WebEnginePageLoadSignalType& WebEngine::PageLoadStartedSignal()
 {
   return GetImplementation(*this).PageLoadStartedSignal();
index b733353ca20edb99f78e67ccd6dcbf8560931434..b4333fcd66e316904fa57bd852c476d593dbe03f 100755 (executable)
@@ -295,9 +295,22 @@ public:
 
   /**
    * @brief Set focus.
+   * @param[in] focused True if web view is focused, false otherwise
    */
   void SetFocus( bool focused );
 
+  /**
+   * @brief Update display area.
+   * @param[in] displayArea The area to display web page.
+   */
+  void UpdateDisplayArea( Dali::Rect< int > displayArea );
+
+  /**
+   * @brief Enable video hole.
+   * @param[in] enabled True if video hole is enabled, false otherwise
+   */
+  void EnableVideoHole( bool enabled );
+
   /**
    * @brief Connects to this signal to be notified when page loading is started.
    *
index 09433876ee1075d39880844aa1be01830e63c200..8c08ebc86d61975e6dd1f8866cc8da8666319b77 100755 (executable)
@@ -348,6 +348,16 @@ void WebEngine::SetFocus( bool focused )
   mPlugin->SetFocus( focused );
 }
 
+void WebEngine::UpdateDisplayArea( Dali::Rect< int > displayArea )
+{
+  mPlugin->UpdateDisplayArea( displayArea );
+}
+
+void WebEngine::EnableVideoHole( bool enabled )
+{
+  mPlugin->EnableVideoHole( enabled );
+}
+
 Dali::WebEnginePlugin::WebEnginePageLoadSignalType& WebEngine::PageLoadStartedSignal()
 {
   return mPlugin->PageLoadStartedSignal();
index a2a6571399890b441ec38b03ff503572a04e3240..609a15342532ed6d56818834066e821126f355e2 100755 (executable)
@@ -238,6 +238,16 @@ public:
    */
   void SetFocus( bool focused );
 
+  /**
+   * @copydoc Dali::WebEngine::UpdateDisplayArea()
+   */
+  void UpdateDisplayArea( Dali::Rect< int > displayArea );
+
+  /**
+   * @copydoc Dali::WebEngine::EnableVideoHole()
+   */
+  void EnableVideoHole( bool enabled );
+
   /**
    * @copydoc Dali::WebEngine::PageLoadStartedSignal()
    */