X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fweb-view%2Fweb-view-impl.h;h=14fb0b52fb67b46dbcbdddda7252b6c226d737a3;hb=06390b11a4bbb71ee3d9a0508ed33cb3aa14d8a3;hp=476911041d1a1b8315b7db729ca4516f7441db1a;hpb=70510385d88cfbd5c232117d8436ca74c523e172;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/web-view/web-view-impl.h b/dali-toolkit/internal/controls/web-view/web-view-impl.h index 4769110..14fb0b5 100755 --- a/dali-toolkit/internal/controls/web-view/web-view-impl.h +++ b/dali-toolkit/internal/controls/web-view/web-view-impl.h @@ -27,6 +27,7 @@ #include #include #include +#include namespace Dali { @@ -53,6 +54,8 @@ protected: WebView( const std::string& locale, const std::string& timezoneId ); + WebView( int argc, char** argv ); + virtual ~WebView(); public: @@ -88,6 +91,18 @@ public: Dali::Toolkit::WebBackForwardList* GetBackForwardList() const; /** + * @copydoc Dali::Toolkit::WebView::New( int, char** ) + */ + static Toolkit::WebView New( int argc, char** argv ); + + /** + * @brief Get Favicon of web page. + * + * @return Handle to a fav icon + */ + Dali::Toolkit::ImageView& GetFavicon(); + + /** * @copydoc Dali::Toolkit::WebView::LoadUrl() */ void LoadUrl( const std::string& url ); @@ -153,6 +168,11 @@ public: void AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void( const std::string& ) > handler ); /** + * @brief Clears all tiles resources of Web. + */ + void ClearAllTilesResources(); + + /** * @copydoc Dali::Toolkit::WebView::ClearHistory() */ void ClearHistory(); @@ -267,21 +287,28 @@ private: * @param[out] x The coordinate x of scroll * @param[out] y The coordinate y of scroll */ - void GetScrollPosition( int& x, int& y ) const; + Dali::Vector2 GetScrollPosition() const; /** * @brief Gets the possible scroll size of the given view. * @param[out] width The width of scroll size * @param[out] height The height of scroll size */ - void GetScrollSize( int& width, int& height ) const; + Dali::Vector2 GetScrollSize() const; /** * @brief Gets the last known content's size. * @param[out] width The width of content's size * @param[out] height The height of content's size */ - void GetContentSize( int& width, int& height ) const; + Dali::Vector2 GetContentSize() const; + + /** + * @brief Returns the title of the Web. + * + * @return The title of web page + */ + std::string GetTitle() const; /** * @brief Get user agent string. @@ -336,6 +363,7 @@ private: std::unique_ptr mWebCookieManager; std::unique_ptr mWebSettings; std::unique_ptr mWebBackForwardList; + Dali::Toolkit::ImageView mFaviconView; }; } // namespace Internal