X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Fdevel-api%2Fadaptor-framework%2Fweb-engine.h;h=102ea8c50842b2ecdafd58a19ecf2714618d6a5b;hb=06420ad253d1338ec54947f589c81e6cffcd76ff;hp=a01db89870ed31903ee04bdd8bd6c70516510911;hpb=000d9e2ec52d1749d68a11532895db8b3a4544e7;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/web-engine.h b/dali/devel-api/adaptor-framework/web-engine.h index a01db89..102ea8c 100755 --- a/dali/devel-api/adaptor-framework/web-engine.h +++ b/dali/devel-api/adaptor-framework/web-engine.h @@ -97,6 +97,16 @@ public: void Create(int width, int height, const std::string& locale, const std::string& timezoneId); /** + * @brief Creates WebEngine instance. + * + * @param [in] width The width of Web + * @param [in] height The height of Web + * @param [in] argc The count of application arguments + * @param [in] argv The string array of application arguments + */ + void Create( int width, int height, int argc, char** argv ); + + /** * @brief Destroys WebEngine instance. */ void Destroy(); @@ -134,6 +144,20 @@ public: void LoadUrl(const std::string& url); /** + * @brief Returns the title of the Web. + * + * @return The title of web page + */ + std::string GetTitle() const; + + /** + * @brief Returns the Favicon of the Web. + * + * @return FavIcon of Dali::PixelData& type + */ + Dali::PixelData GetFavicon() const; + + /** * @brief Gets the url. */ const std::string& GetUrl(); @@ -178,17 +202,17 @@ public: /** * @brief Gets the current scroll position of the given view. */ - void GetScrollPosition( int& x, int& y ) const; + Dali::Vector2 GetScrollPosition() const; /** * @brief Gets the possible scroll size of the given view. */ - void GetScrollSize( int& width, int& height ) const; + Dali::Vector2 GetScrollSize() const; /** * @brief Gets the last known content's size. */ - void GetContentSize( int& width, int& height ) const; + Dali::Vector2 GetContentSize() const; /** * @brief Returns whether forward is possible. @@ -231,6 +255,11 @@ public: void AddJavaScriptMessageHandler(const std::string& exposedObjectName, std::function handler); /** + * @brief Clears all tiles resources of Web. + */ + void ClearAllTilesResources(); + + /** * @brief Clears the history of Web. */ void ClearHistory(); @@ -266,10 +295,23 @@ 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. * * @return A signal object to connect with.