// 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>
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.
*
* @return A signal object to connect with.
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();
/**
* @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.
*
* @return A signal object to connect with.
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();
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()
*/
Dali::WebEnginePlugin::WebEnginePageLoadSignalType& PageLoadStartedSignal();