Update position & size of web engine.
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / web-engine.cpp
index efdc38c..17318de 100755 (executable)
 #include <dali/devel-api/adaptor-framework/web-engine.h>
 
 // INTERNAL INCLUDES
+#include <dali/devel-api/adaptor-framework/web-engine-back-forward-list.h>
+#include <dali/devel-api/adaptor-framework/web-engine-context.h>
+#include <dali/devel-api/adaptor-framework/web-engine-cookie-manager.h>
+#include <dali/devel-api/adaptor-framework/web-engine-settings.h>
 #include <dali/internal/web-engine/common/web-engine-impl.h>
 
+// EXTERNAL INCLUDES
+#include <dali/public-api/images/pixel-data.h>
+
 namespace Dali
 {
 WebEngine::WebEngine()
@@ -67,6 +74,11 @@ void WebEngine::Create(int width, int height, const std::string& locale, const s
   GetImplementation(*this).Create(width, height, locale, timezoneId);
 }
 
+void WebEngine::Create( int width, int height, int argc, char** argv )
+{
+  GetImplementation( *this ).Create( width, height, argc, argv );
+}
+
 void WebEngine::Destroy()
 {
   GetImplementation(*this).Destroy();
@@ -77,19 +89,49 @@ NativeImageInterfacePtr WebEngine::GetNativeImageSource()
   return GetImplementation(*this).GetNativeImageSource();
 }
 
+Dali::WebEngineSettings& WebEngine::GetSettings() const
+{
+  return GetImplementation( *this ).GetSettings();
+}
+
+Dali::WebEngineContext& WebEngine::GetContext() const
+{
+  return GetImplementation( *this ).GetContext();
+}
+
+Dali::WebEngineCookieManager& WebEngine::GetCookieManager() const
+{
+  return GetImplementation( *this ).GetCookieManager();
+}
+
+Dali::WebEngineBackForwardList& WebEngine::GetBackForwardList() const
+{
+  return GetImplementation( *this ).GetBackForwardList();
+}
+
 void WebEngine::LoadUrl(const std::string& url)
 {
   return GetImplementation(*this).LoadUrl(url);
 }
 
+std::string WebEngine::GetTitle() const
+{
+  return GetImplementation( *this ).GetTitle();
+}
+
+Dali::PixelData WebEngine::GetFavicon() const
+{
+  return GetImplementation( *this ).GetFavicon();
+}
+
 const std::string& WebEngine::GetUrl()
 {
   return GetImplementation(*this).GetUrl();
 }
 
-void WebEngine::LoadHTMLString(const std::string& htmlString)
+void WebEngine::LoadHtmlString(const std::string& htmlString)
 {
-  GetImplementation(*this).LoadHTMLString(htmlString);
+  GetImplementation(*this).LoadHtmlString(htmlString);
 }
 
 void WebEngine::Reload()
@@ -122,19 +164,19 @@ void WebEngine::SetScrollPosition( int x, int y )
   GetImplementation( *this ).SetScrollPosition( x, y );
 }
 
-void WebEngine::GetScrollPosition( int& x, int& y ) const
+Dali::Vector2 WebEngine::GetScrollPosition() const
 {
-  GetImplementation( *this ).GetScrollPosition( x, y );
+  return GetImplementation( *this ).GetScrollPosition();
 }
 
-void WebEngine::GetScrollSize( int& width, int& height ) const
+Dali::Vector2 WebEngine::GetScrollSize() const
 {
-  GetImplementation( *this ).GetScrollSize( width, height );
+  return GetImplementation( *this ).GetScrollSize();
 }
 
-void WebEngine::GetContentSize( int& width, int& height ) const
+Dali::Vector2 WebEngine::GetContentSize() const
 {
-  GetImplementation( *this ).GetContentSize( width, height );
+  return GetImplementation( *this ).GetContentSize();
 }
 
 bool WebEngine::CanGoForward()
@@ -167,39 +209,14 @@ void WebEngine::AddJavaScriptMessageHandler(const std::string& exposedObjectName
   GetImplementation(*this).AddJavaScriptMessageHandler(exposedObjectName, handler);
 }
 
-void WebEngine::ClearHistory()
-{
-  return GetImplementation(*this).ClearHistory();
-}
-
-void WebEngine::ClearCache()
-{
-  return GetImplementation(*this).ClearCache();
-}
-
-void WebEngine::ClearCookies()
-{
-  return GetImplementation(*this).ClearCookies();
-}
-
-Dali::WebEnginePlugin::CacheModel WebEngine::GetCacheModel() const
-{
-  return GetImplementation(*this).GetCacheModel();
-}
-
-void WebEngine::SetCacheModel(Dali::WebEnginePlugin::CacheModel cacheModel)
+void WebEngine::ClearAllTilesResources()
 {
-  GetImplementation(*this).SetCacheModel(cacheModel);
+  GetImplementation( *this ).ClearAllTilesResources();
 }
 
-Dali::WebEnginePlugin::CookieAcceptPolicy WebEngine::GetCookieAcceptPolicy() const
-{
-  return GetImplementation(*this).GetCookieAcceptPolicy();
-}
-
-void WebEngine::SetCookieAcceptPolicy(Dali::WebEnginePlugin::CookieAcceptPolicy policy)
+void WebEngine::ClearHistory()
 {
-  GetImplementation(*this).SetCookieAcceptPolicy(policy);
+  return GetImplementation(*this).ClearHistory();
 }
 
 const std::string& WebEngine::GetUserAgent() const
@@ -212,46 +229,6 @@ void WebEngine::SetUserAgent(const std::string& userAgent)
   GetImplementation(*this).SetUserAgent(userAgent);
 }
 
-bool WebEngine::IsJavaScriptEnabled() const
-{
-  return GetImplementation(*this).IsJavaScriptEnabled();
-}
-
-void WebEngine::EnableJavaScript(bool enabled)
-{
-  GetImplementation(*this).EnableJavaScript(enabled);
-}
-
-bool WebEngine::AreImagesAutomaticallyLoaded() const
-{
-  return GetImplementation(*this).AreImagesAutomaticallyLoaded();
-}
-
-void WebEngine::LoadImagesAutomatically(bool automatic)
-{
-  GetImplementation(*this).LoadImagesAutomatically(automatic);
-}
-
-const std::string& WebEngine::GetDefaultTextEncodingName() const
-{
-  return GetImplementation(*this).GetDefaultTextEncodingName();
-}
-
-void WebEngine::SetDefaultTextEncodingName(const std::string& defaultTextEncodingName)
-{
-  GetImplementation(*this).SetDefaultTextEncodingName(defaultTextEncodingName);
-}
-
-int WebEngine::GetDefaultFontSize() const
-{
-  return GetImplementation(*this).GetDefaultFontSize();
-}
-
-void WebEngine::SetDefaultFontSize(int defaultFontSize)
-{
-  GetImplementation(*this).SetDefaultFontSize(defaultFontSize);
-}
-
 void WebEngine::SetSize(int width, int height)
 {
   return GetImplementation(*this).SetSize(width, height);
@@ -272,6 +249,16 @@ void WebEngine::SetFocus( bool focused )
   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();