[Tizen] Implement some new ewk apis in web engine plugin.
[platform/core/uifw/dali-extension.git] / dali-extension / web-engine-chromium / tizen-web-engine-chromium.h
index 1d6d78f..acf87ba 100755 (executable)
@@ -29,6 +29,9 @@
 
 namespace Dali
 {
+
+class PixelData;
+
 namespace Plugin
 {
 
@@ -111,18 +114,42 @@ public:
 
   // WebEnginePlugin Interface
 
-
   /**
    * @copydoc Dali::WebEnginePlugin::Create()
    */
   void Create( int width, int height, const std::string& locale, const std::string& timezoneID ) override;
 
   /**
+   * @copydoc Dali::WebEnginePlugin::Create()
+   */
+  void Create( int width, int height, int argc, char** argv ) override;
+
+  /**
    * @copydoc Dali::WebEnginePlugin::Destroy()
    */
   void Destroy() override;
 
   /**
+   * @copydoc Dali::WebEnginePlugin::GetSettings()
+   */
+  Dali::WebEngineSettings& GetSettings() const override;
+
+  /**
+   * @copydoc Dali::WebEnginePlugin::GetContext()
+   */
+  Dali::WebEngineContext& GetContext() const override;
+
+  /**
+   * @copydoc Dali::WebEnginePlugin::GetCookieManager()
+   */
+  Dali::WebEngineCookieManager& GetCookieManager() const override;
+
+  /**
+   * @copydoc Dali::WebEnginePlugin::GetBackForwardList()
+   */
+  Dali::WebEngineBackForwardList& GetBackForwardList() const override;
+
+  /**
    * @copydoc Dali::WebEnginePlugin::LoadUrl()
    */
   void LoadUrl( const std::string& url ) override;
@@ -133,14 +160,24 @@ public:
   NativeImageInterfacePtr GetNativeImageSource() override;
 
   /**
+   * @copydoc Dali::WebEnginePlugin::GetTitle()
+   */
+  std::string GetTitle() const override;
+
+  /**
+   * @copydoc Dali::WebEnginePlugin::GetFavicon()
+   */
+  Dali::PixelData GetFavicon() const override;
+
+  /**
    * @copydoc Dali::WebEnginePlugin::GetUrl()
    */
   const std::string& GetUrl() override;
 
   /**
-   * @copydoc Dali::WebEnginePlugin::LoadHTMLString()
+   * @copydoc Dali::WebEnginePlugin::LoadHtmlString()
    */
-  void LoadHTMLString( const std::string& string ) override;
+  void LoadHtmlString( const std::string& string ) override;
 
   /**
    * @copydoc Dali::WebEnginePlugin::Reload()
@@ -218,39 +255,14 @@ public:
   void AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void( const std::string& ) > handler ) override;
 
   /**
-   * @copydoc Dali::WebEnginePlugin::ClearHistory()
-   */
-  void ClearHistory() override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::ClearCache()
-   */
-  void ClearCache() override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::ClearCookies()
-   */
-  void ClearCookies() override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::GetCacheModel()
-   */
-  Dali::WebEnginePlugin::CacheModel GetCacheModel() const override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::SetCacheModel()
+   * @copydoc Dali::WebEnginePlugin::ClearAllTilesResources()
    */
-  void SetCacheModel( Dali::WebEnginePlugin::CacheModel cacheModel ) override;
+  void ClearAllTilesResources() override;
 
   /**
-   * @copydoc Dali::WebEnginePlugin::GetCookieAcceptPolicy()
-   */
-  Dali::WebEnginePlugin::CookieAcceptPolicy GetCookieAcceptPolicy() const override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::SetCookieAcceptPolicy()
+   * @copydoc Dali::WebEnginePlugin::ClearHistory()
    */
-  void SetCookieAcceptPolicy( Dali::WebEnginePlugin::CookieAcceptPolicy policy ) override;
+  void ClearHistory() override;
 
   /**
    * @copydoc Dali::WebEnginePlugin::GetUserAgent()
@@ -263,46 +275,6 @@ public:
   void SetUserAgent( const std::string& userAgent ) override;
 
   /**
-   * @copydoc Dali::WebEnginePlugin::IsJavaScriptEnabled()
-   */
-  bool IsJavaScriptEnabled() const override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::EnableJavaScript()
-   */
-  void EnableJavaScript( bool enabled ) override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::AreImagesAutomaticallyLoaded()
-   */
-  bool AreImagesAutomaticallyLoaded() const override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::LoadImagesAutomatically()
-   */
-  void LoadImagesAutomatically( bool automatic ) override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::GetDefaultTextEncodingName()
-   */
-  const std::string& GetDefaultTextEncodingName() const override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::SetDefaultTextEncodingName()
-   */
-  void SetDefaultTextEncodingName( const std::string& defaultTextEncodingName ) override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::GetDefaultFontSize()
-   */
-  int GetDefaultFontSize() const override;
-
-  /**
-   * @copydoc Dali::WebEnginePlugin::SetDefaultFontSize()
-   */
-  void SetDefaultFontSize( int defaultFontSize ) override;
-
-  /**
    * @copydoc Dali::WebEnginePlugin::SetSize()
    */
   void SetSize( int width, int height ) override;