Merge "Implements CanvasRenderer that can draw Vector Primitives using ThorVG" into...
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / web-engine.cpp
old mode 100644 (file)
new mode 100755 (executable)
index f2df43e..d5c7c96
@@ -134,11 +134,26 @@ void WebEngine::LoadHtmlString(const std::string& htmlString)
   GetImplementation(*this).LoadHtmlString(htmlString);
 }
 
+bool WebEngine::LoadHtmlStringOverrideCurrentEntry(const std::string& html, const std::string& basicUri, const std::string& unreachableUrl)
+{
+  return GetImplementation(*this).LoadHtmlStringOverrideCurrentEntry(html, basicUri, unreachableUrl);
+}
+
+bool WebEngine::LoadContents(const std::string& contents, uint32_t contentSize, const std::string& mimeType, const std::string& encoding, const std::string& baseUri)
+{
+  return GetImplementation(*this).LoadContents(contents, contentSize, mimeType, encoding, baseUri);
+}
+
 void WebEngine::Reload()
 {
   GetImplementation(*this).Reload();
 }
 
+bool WebEngine::ReloadWithoutCache()
+{
+  return GetImplementation(*this).ReloadWithoutCache();
+}
+
 void WebEngine::StopLoading()
 {
   GetImplementation(*this).StopLoading();
@@ -154,11 +169,46 @@ void WebEngine::Resume()
   GetImplementation(*this).Resume();
 }
 
+void WebEngine::SuspendNetworkLoading()
+{
+  GetImplementation(*this).SuspendNetworkLoading();
+}
+
+void WebEngine::ResumeNetworkLoading()
+{
+  GetImplementation(*this).ResumeNetworkLoading();
+}
+
+bool WebEngine::AddCustomHeader(const std::string& name, const std::string& value)
+{
+  return GetImplementation(*this).AddCustomHeader(name, value);
+}
+
+bool WebEngine::RemoveCustomHeader(const std::string& name)
+{
+  return GetImplementation(*this).RemoveCustomHeader(name);
+}
+
+uint32_t WebEngine::StartInspectorServer(uint32_t port)
+{
+  return GetImplementation(*this).StartInspectorServer(port);
+}
+
+bool WebEngine::StopInspectorServer()
+{
+  return GetImplementation(*this).StopInspectorServer();
+}
+
 void WebEngine::ScrollBy(int deltaX, int deltaY)
 {
   GetImplementation(*this).ScrollBy(deltaX, deltaY);
 }
 
+bool WebEngine::ScrollEdgeBy(int deltaX, int deltaY)
+{
+  return GetImplementation(*this).ScrollEdgeBy(deltaX, deltaY);
+}
+
 void WebEngine::SetScrollPosition(int x, int y)
 {
   GetImplementation(*this).SetScrollPosition(x, y);
@@ -209,44 +259,44 @@ void WebEngine::AddJavaScriptMessageHandler(const std::string& exposedObjectName
   GetImplementation(*this).AddJavaScriptMessageHandler(exposedObjectName, handler);
 }
 
-void WebEngine::RegisterJavaScriptAlertCallback( Dali::WebEnginePlugin::JavaScriptAlertCallback callback )
+void WebEngine::RegisterJavaScriptAlertCallback(Dali::WebEnginePlugin::JavaScriptAlertCallback callback)
 {
-  GetImplementation( *this ).RegisterJavaScriptAlertCallback( callback );
+  GetImplementation(*this).RegisterJavaScriptAlertCallback(callback);
 }
 
 void WebEngine::JavaScriptAlertReply()
 {
-  GetImplementation( *this ).JavaScriptAlertReply();
+  GetImplementation(*this).JavaScriptAlertReply();
 }
 
-void WebEngine::RegisterJavaScriptConfirmCallback( Dali::WebEnginePlugin::JavaScriptConfirmCallback callback )
+void WebEngine::RegisterJavaScriptConfirmCallback(Dali::WebEnginePlugin::JavaScriptConfirmCallback callback)
 {
-  GetImplementation( *this ).RegisterJavaScriptConfirmCallback( callback );
+  GetImplementation(*this).RegisterJavaScriptConfirmCallback(callback);
 }
 
-void WebEngine::JavaScriptConfirmReply( bool confirmed )
+void WebEngine::JavaScriptConfirmReply(bool confirmed)
 {
-  GetImplementation( *this ).JavaScriptConfirmReply( confirmed );
+  GetImplementation(*this).JavaScriptConfirmReply(confirmed);
 }
 
-void WebEngine::RegisterJavaScriptPromptCallback( Dali::WebEnginePlugin::JavaScriptPromptCallback callback )
+void WebEngine::RegisterJavaScriptPromptCallback(Dali::WebEnginePlugin::JavaScriptPromptCallback callback)
 {
-  GetImplementation( *this ).RegisterJavaScriptPromptCallback( callback );
+  GetImplementation(*this).RegisterJavaScriptPromptCallback(callback);
 }
 
-void WebEngine::JavaScriptPromptReply( const std::string& result )
+void WebEngine::JavaScriptPromptReply(const std::string& result)
 {
-  GetImplementation( *this ).JavaScriptPromptReply( result );
+  GetImplementation(*this).JavaScriptPromptReply(result);
 }
 
 void WebEngine::ClearHistory()
 {
-  return GetImplementation(*this).ClearHistory();
+  GetImplementation(*this).ClearHistory();
 }
 
 void WebEngine::ClearAllTilesResources()
 {
-  GetImplementation( *this ).ClearAllTilesResources();
+  GetImplementation(*this).ClearAllTilesResources();
 }
 
 const std::string& WebEngine::GetUserAgent() const
@@ -261,7 +311,32 @@ void WebEngine::SetUserAgent(const std::string& userAgent)
 
 void WebEngine::SetSize(int width, int height)
 {
-  return GetImplementation(*this).SetSize(width, height);
+  GetImplementation(*this).SetSize(width, height);
+}
+
+void WebEngine::SetDocumentBackgroundColor(Dali::Vector4 color)
+{
+  GetImplementation(*this).SetDocumentBackgroundColor(color);
+}
+
+void WebEngine::ClearTilesWhenHidden(bool cleared)
+{
+  GetImplementation(*this).ClearTilesWhenHidden(cleared);
+}
+
+void WebEngine::SetTileCoverAreaMultiplier(float multiplier)
+{
+  GetImplementation(*this).SetTileCoverAreaMultiplier(multiplier);
+}
+
+void WebEngine::EnableCursorByClient(bool enabled)
+{
+  GetImplementation(*this).EnableCursorByClient(enabled);
+}
+
+std::string WebEngine::GetSelectedText() const
+{
+  return GetImplementation(*this).GetSelectedText();
 }
 
 bool WebEngine::SendTouchEvent(const TouchEvent& touch)
@@ -289,6 +364,81 @@ void WebEngine::SetFocus(bool focused)
   GetImplementation(*this).SetFocus(focused);
 }
 
+void WebEngine::SetPageZoomFactor(float zoomFactor)
+{
+  GetImplementation(*this).SetPageZoomFactor(zoomFactor);
+}
+
+float WebEngine::GetPageZoomFactor() const
+{
+  return GetImplementation(*this).GetPageZoomFactor();
+}
+
+void WebEngine::SetTextZoomFactor(float zoomFactor)
+{
+  GetImplementation(*this).SetTextZoomFactor(zoomFactor);
+}
+
+float WebEngine::GetTextZoomFactor() const
+{
+  return GetImplementation(*this).GetTextZoomFactor();
+}
+
+float WebEngine::GetLoadProgressPercentage() const
+{
+  return GetImplementation(*this).GetLoadProgressPercentage();
+}
+
+void WebEngine::SetScaleFactor(float scaleFactor, Dali::Vector2 point)
+{
+  GetImplementation(*this).SetScaleFactor(scaleFactor, point);
+}
+
+float WebEngine::GetScaleFactor() const
+{
+  return GetImplementation(*this).GetScaleFactor();
+}
+
+void WebEngine::ActivateAccessibility(bool activated)
+{
+  GetImplementation(*this).ActivateAccessibility(activated);
+}
+
+bool WebEngine::SetVisibility(bool visible)
+{
+  return GetImplementation(*this).SetVisibility(visible);
+}
+
+bool WebEngine::HighlightText(const std::string& text, Dali::WebEnginePlugin::FindOption options, uint32_t maxMatchCount)
+{
+  return GetImplementation(*this).HighlightText(text, options, maxMatchCount);
+}
+
+void WebEngine::AddDynamicCertificatePath(const std::string& host, const std::string& certPath)
+{
+  GetImplementation(*this).AddDynamicCertificatePath(host, certPath);
+}
+
+Dali::PixelData WebEngine::GetScreenshot(Dali::Rect<int> viewArea, float scaleFactor)
+{
+  return GetImplementation(*this).GetScreenshot(viewArea, scaleFactor);
+}
+
+bool WebEngine::GetScreenshotAsynchronously(Dali::Rect<int> viewArea, float scaleFactor, Dali::WebEnginePlugin::ScreenshotCapturedCallback callback)
+{
+  return GetImplementation(*this).GetScreenshotAsynchronously(viewArea, scaleFactor, callback);
+}
+
+bool WebEngine::CheckVideoPlayingAsynchronously(Dali::WebEnginePlugin::VideoPlayingCallback callback)
+{
+  return GetImplementation(*this).CheckVideoPlayingAsynchronously(callback);
+}
+
+void WebEngine::RegisterGeolocationPermissionCallback(Dali::WebEnginePlugin::GeolocationPermissionCallback callback)
+{
+  GetImplementation(*this).RegisterGeolocationPermissionCallback(callback);
+}
+
 void WebEngine::UpdateDisplayArea(Dali::Rect<int> displayArea)
 {
   GetImplementation(*this).UpdateDisplayArea(displayArea);
@@ -339,4 +489,14 @@ Dali::WebEnginePlugin::WebEngineUrlChangedSignalType& WebEngine::UrlChangedSigna
   return GetImplementation(*this).UrlChangedSignal();
 }
 
+Dali::WebEnginePlugin::WebEngineFormRepostDecisionSignalType& WebEngine::FormRepostDecisionSignal()
+{
+  return GetImplementation(*this).FormRepostDecisionSignal();
+}
+
+Dali::WebEnginePlugin::WebEngineFrameRenderedSignalType& WebEngine::FrameRenderedSignal()
+{
+  return GetImplementation(*this).FrameRenderedSignal();
+}
+
 } // namespace Dali