X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fweb-view%2Fweb-context.cpp;h=128546b0a5c24ba61611642a305466821cc52dcf;hp=413f5ca9c18a980aceba790a3e3343589d1e2e4a;hb=e98b145669d75257580ac3efd9bc2159a9964eba;hpb=c857a82d2a092fe17e654baf70afd454143310de diff --git a/dali-toolkit/devel-api/controls/web-view/web-context.cpp b/dali-toolkit/devel-api/controls/web-view/web-context.cpp old mode 100644 new mode 100755 index 413f5ca..128546b --- a/dali-toolkit/devel-api/controls/web-view/web-context.cpp +++ b/dali-toolkit/devel-api/controls/web-view/web-context.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ #include // EXTERNAL INCLUDES -#include +#include namespace Dali { @@ -49,14 +49,29 @@ void WebContext::SetProxyUri(const std::string& uri) mWebEngineContext.SetProxyUri(uri); } +std::string WebContext::GetProxyUri() const +{ + return mWebEngineContext.GetProxyUri(); +} + +void WebContext::SetProxyBypassRule(const std::string& proxy, const std::string& bypass) +{ + mWebEngineContext.SetProxyBypassRule(proxy, bypass); +} + +std::string WebContext::GetProxyBypassRule() const +{ + return mWebEngineContext.GetProxyBypassRule(); +} + void WebContext::SetCertificateFilePath(const std::string& certificatePath) { mWebEngineContext.SetCertificateFilePath(certificatePath); } -void WebContext::DisableCache(bool cacheDisabled) +std::string WebContext::GetCertificateFilePath() const { - mWebEngineContext.DisableCache(cacheDisabled); + return mWebEngineContext.GetCertificateFilePath(); } void WebContext::SetDefaultProxyAuth(const std::string& username, const std::string& password) @@ -94,9 +109,9 @@ void WebContext::DeleteAllWebStorage() mWebEngineContext.DeleteAllWebStorage(); } -bool WebContext::DeleteWebStorageOrigin(Dali::WebEngineSecurityOrigin& origin) +bool WebContext::DeleteWebStorage(Dali::WebEngineSecurityOrigin& origin) { - return mWebEngineContext.DeleteWebStorageOrigin(origin); + return mWebEngineContext.DeleteWebStorage(origin); } void WebContext::DeleteLocalFileSystem() @@ -129,5 +144,95 @@ void WebContext::RegisterMimeOverriddenCallback(Dali::WebEngineContext::WebEngin mWebEngineContext.RegisterMimeOverriddenCallback(callback); } +void WebContext::RegisterRequestInterceptedCallback(Dali::WebEngineContext::WebEngineRequestInterceptedCallback callback) +{ + mWebEngineContext.RegisterRequestInterceptedCallback(callback); +} + +void WebContext::EnableCache(bool cacheEnabled) +{ + mWebEngineContext.EnableCache(cacheEnabled); +} + +bool WebContext::IsCacheEnabled() const +{ + return mWebEngineContext.IsCacheEnabled(); +} + +void WebContext::SetAppId(const std::string& appId) +{ + mWebEngineContext.SetAppId(appId); +} + +bool WebContext::SetAppVersion(const std::string& appVersion) +{ + return mWebEngineContext.SetAppVersion(appVersion); +} + +void WebContext::SetApplicationType(const Dali::WebEngineContext::ApplicationType applicationType) +{ + mWebEngineContext.SetApplicationType(applicationType); +} + +void WebContext::SetTimeOffset(float timeOffset) +{ + mWebEngineContext.SetTimeOffset(timeOffset); +} + +void WebContext::SetTimeZoneOffset(float timeZoneOffset, float daylightSavingTime) +{ + mWebEngineContext.SetTimeZoneOffset(timeZoneOffset, daylightSavingTime); +} + +void WebContext::SetDefaultZoomFactor(float zoomFactor) +{ + mWebEngineContext.SetDefaultZoomFactor(zoomFactor); +} + +float WebContext::GetDefaultZoomFactor() const +{ + return mWebEngineContext.GetDefaultZoomFactor(); +} + +void WebContext::RegisterUrlSchemesAsCorsEnabled(const std::vector& schemes) +{ + mWebEngineContext.RegisterUrlSchemesAsCorsEnabled(schemes); +} + +void WebContext::RegisterJsPluginMimeTypes(const std::vector& mimeTypes) +{ + mWebEngineContext.RegisterJsPluginMimeTypes(mimeTypes); +} + +bool WebContext::DeleteAllApplicationCache() +{ + return mWebEngineContext.DeleteAllApplicationCache(); +} + +bool WebContext::DeleteAllWebIndexedDatabase() +{ + return mWebEngineContext.DeleteAllWebIndexedDatabase(); +} + +void WebContext::DeleteFormPasswordDataList(const std::vector& list) +{ + mWebEngineContext.DeleteFormPasswordDataList(list); +} + +void WebContext::DeleteAllFormPasswordData() +{ + mWebEngineContext.DeleteAllFormPasswordData(); +} + +void WebContext::DeleteAllFormCandidateData() +{ + mWebEngineContext.DeleteAllFormCandidateData(); +} + +bool WebContext::FreeUnusedMemory() +{ + return mWebEngineContext.FreeUnusedMemory(); +} + } // namespace Toolkit } // namespace Dali