// 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>
/**
* @brief WebEngine signal type related with page loading.
*/
- typedef Signal<void(const std::string&)> WebEnginePageLoadSignalType;
+ using WebEnginePageLoadSignalType = Signal< void( const std::string& ) >;
/**
* @brief WebView signal type related with page loading error.
*/
- typedef Signal<void(const std::string&, int)> WebEnginePageLoadErrorSignalType;
+ using WebEnginePageLoadErrorSignalType = Signal< void( const std::string&, int ) >;
// forward declaration.
enum class ScrollEdge;
/**
* @brief WebView signal type related with scroll edge reached.
*/
- typedef Signal< void( const ScrollEdge )> WebEngineScrollEdgeReachedSignalType;
+ using WebEngineScrollEdgeReachedSignalType = Signal< void( const ScrollEdge ) >;
/**
* @brief Enumeration for the scroll edge.
/**
* @brief Gets the current scroll position of the given view.
*/
- virtual void GetScrollPosition( int& x, int& y ) const = 0;
+ virtual Dali::Vector2 GetScrollPosition() const = 0;
/**
* @brief Gets the possible scroll size of the given view.
*/
- virtual void GetScrollSize( int& width, int& height ) const = 0;
+ virtual Dali::Vector2 GetScrollSize() const = 0;
/**
* @brief Gets the last known content's size.
*/
- virtual void GetContentSize( int& width, int& height ) const = 0;
+ virtual Dali::Vector2 GetContentSize() const = 0;
/**
* @brief Returns whether forward is possible.
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.