Lines Matching defs:WebviewController
91 std::unordered_map<int32_t, WebviewController*> g_webview_controller_map;
92 std::string WebviewController::customeSchemeCmdLine_ = "";
93 bool WebviewController::existNweb_ = false;
94 bool WebviewController::webDebuggingAccess_ = OHOS::system::GetBoolParameter("web.debug.devtools", false);
95 std::set<std::string> WebviewController::webTagSet_;
96 int32_t WebviewController::webTagStrId_ = 0;
98 WebviewController::WebviewController(int32_t nwebId) : nwebId_(nwebId)
106 WebviewController::WebviewController(const std::string& webTag) : webTag_(webTag)
111 WebviewController::~WebviewController()
117 void WebviewController::SetWebId(int32_t nwebId)
143 WebviewController* WebviewController::FromID(int32_t nwebId)
153 void WebviewController::InnerCompleteWindowNew(int32_t parentNwebId)
155 WVLOG_D("WebviewController::InnerCompleteWindowNew parentNwebId == "
159 WVLOG_E("WebviewController::InnerCompleteWindowNew parentNwebId == %{public}d "
166 WVLOG_E("WebviewController::InnerCompleteWindowNew parentControl or "
175 WVLOG_E("WebviewController::InnerCompleteWindowNew currentControl or "
202 bool WebviewController::IsInit() const
207 bool WebviewController::AccessForward() const
214 WVLOG_E("WebviewController::AccessForward nweb_ptr is null");
219 bool WebviewController::AccessBackward() const
229 bool WebviewController::AccessStep(int32_t step) const
239 void WebviewController::ClearHistory()
247 void WebviewController::Forward()
255 void WebviewController::Backward()
263 void WebviewController::OnActive()
271 void WebviewController::OnInactive()
279 void WebviewController::Refresh()
287 ErrCode WebviewController::ZoomIn()
299 ErrCode WebviewController::ZoomOut()
311 int32_t WebviewController::GetWebId() const
321 std::string WebviewController::GetUserAgent()
334 std::string WebviewController::GetCustomUserAgent() const
347 ErrCode WebviewController::SetCustomUserAgent(const std::string& userAgent)
361 std::string WebviewController::GetTitle()
371 int32_t WebviewController::GetPageHeight()
381 ErrCode WebviewController::BackOrForward(int32_t step)
392 void WebviewController::StoreWebArchiveCallback(const std::string &baseName, bool autoName, napi_env env,
446 void WebviewController::StoreWebArchivePromise(const std::string &baseName, bool autoName, napi_env env,
487 std::vector<std::string> WebviewController::CreateWebMessagePorts()
498 ErrCode WebviewController::PostWebMessage(std::string& message, std::vector<std::string>& ports, std::string& targetUrl)
561 std::shared_ptr<HitTestResult> WebviewController::GetHitTestValue()
574 void WebviewController::RequestFocus()
582 std::string WebviewController::GenerateWebTag()
584 std::string webTag = "arkweb:" + std::to_string(WebviewController::webTagStrId_);
585 while (WebviewController::webTagSet_.find(webTag) != WebviewController::webTagSet_.end()) {
586 WebviewController::webTagStrId_++;
587 webTag = "arkweb:" + std::to_string(WebviewController::webTagStrId_);
592 bool WebviewController::GetRawFileUrl(const std::string &fileName,
625 bool WebviewController::ParseUrl(napi_env env, napi_value urlObj, std::string& result) const
661 bool WebviewController::ParseRawFileUrl(napi_env env, napi_value urlObj, std::string& result) const
686 bool WebviewController::GetResourceUrl(napi_env env, napi_value urlObj, std::string& result) const
714 ErrCode WebviewController::PostUrl(std::string& url, std::vector<char>& postData)
723 ErrCode WebviewController::LoadUrl(std::string url)
732 ErrCode WebviewController::LoadUrl(std::string url, std::map<std::string, std::string> httpHeaders)
741 ErrCode WebviewController::LoadData(std::string data, std::string mimeType, std::string encoding,
754 int WebviewController::ConverToWebHitTestType(int hitType)
795 int WebviewController::GetHitTest()
810 void WebviewController::ClearMatches()
818 void WebviewController::SearchNext(bool forward)
826 void WebviewController::EnableSafeBrowsing(bool enable)
834 bool WebviewController::IsSafeBrowsingEnabled() const
844 void WebviewController::SearchAllAsync(const std::string& searchString)
852 void WebviewController::ClearSslCache()
860 void WebviewController::ClearClientAuthenticationCache()
868 void WebviewController::Stop()
876 ErrCode WebviewController::Zoom(float factor)
888 ErrCode WebviewController::DeleteJavaScriptRegister(const std::string& objName,
906 void WebviewController::SetNWebJavaScriptResultCallBack()
921 void WebviewController::RegisterJavaScriptProxy(RegisterJavaScriptProxyParam& param)
925 WVLOG_E("WebviewController::RegisterJavaScriptProxy nweb_ptr is null");
932 WVLOG_E("WebviewController::RegisterJavaScriptProxy javaScriptResultCb_ is "
938 WVLOG_E("WebviewController::RegisterJavaScriptProxy all methodList are "
961 void WebviewController::RunJavaScriptCallback(
987 void WebviewController::RunJavaScriptPromise(const std::string &script, napi_env env,
1006 void WebviewController::RunJavaScriptCallbackExt(
1034 void WebviewController::RunJavaScriptPromiseExt(
1055 void WebviewController::CreatePDFCallbackExt(
1079 void WebviewController::CreatePDFPromiseExt(
1096 std::string WebviewController::GetUrl()
1106 std::string WebviewController::GetOriginalUrl()
1116 bool WebviewController::TerminateRenderProcess() const
1126 void WebviewController::PutNetworkAvailable(bool available)
1134 ErrCode WebviewController::HasImagesCallback(napi_env env, napi_ref jsCallback)
1160 ErrCode WebviewController::HasImagesPromise(napi_env env, napi_deferred deferred)
1179 void WebviewController::RemoveCache(bool includeDiskFiles)
1187 std::shared_ptr<NWebHistoryList> WebviewController::GetHistoryList()
1215 bool WebviewController::GetFavicon(
1226 std::vector<uint8_t> WebviewController::SerializeWebState()
1236 bool WebviewController::RestoreWebState(const std::vector<uint8_t> &state) const
1246 void WebviewController::ScrollPageDown(bool bottom)
1255 void WebviewController::ScrollPageUp(bool top)
1264 void WebviewController::ScrollTo(float x, float y)
1273 void WebviewController::ScrollBy(float deltaX, float deltaY)
1282 void WebviewController::SlideScroll(float vx, float vy)
1291 void WebviewController::SetScrollable(bool enable)
1304 bool WebviewController::GetScrollable() const
1317 void WebviewController::InnerSetHapPath(const std::string &hapPath)
1322 bool WebviewController::GetCertChainDerData(std::vector<std::string> &certChainDerData) const
1333 ErrCode WebviewController::SetAudioMuted(bool muted)
1344 ErrCode WebviewController::PrefetchPage(std::string& url, std::map<std::string, std::string> additionalHttpHeaders)
1372 void* WebviewController::CreateWebPrintDocumentAdapter(const std::string& jobName)
1381 void WebviewController::CloseAllMediaPresentations()
1389 void WebviewController::StopAllMedia()
1397 void WebviewController::ResumeAllMedia()
1405 void WebviewController::PauseAllMedia()
1413 int WebviewController::GetMediaPlaybackState()
1422 int WebviewController::GetSecurityLevel()
1452 bool WebviewController::IsIncognitoMode() const
1462 void WebviewController::SetPrintBackground(bool enable)
1470 bool WebviewController::GetPrintBackground() const
1481 void WebviewController::EnableIntelligentTrackingPrevention(bool enable)
1489 bool WebviewController::IsIntelligentTrackingPreventionEnabled() const
1504 bool WebviewController::SetWebSchemeHandler(const char* scheme, WebSchemeHandler* handler) const
1507 WVLOG_E("WebviewController::SetWebSchemeHandler handler or scheme is nullptr");
1515 int32_t WebviewController::ClearWebSchemeHandler()
1520 bool WebviewController::SetWebServiveWorkerSchemeHandler(
1528 int32_t WebviewController::ClearWebServiceWorkerSchemeHandler()
1533 ErrCode WebviewController::StartCamera()
1544 ErrCode WebviewController::StopCamera()
1555 ErrCode WebviewController::CloseCamera()
1566 std::string WebviewController::GetLastJavascriptProxyCallingFrameUrl()
1576 void WebviewController::OnCreateNativeMediaPlayer(napi_env env, napi_ref callback)
1587 bool WebviewController::ParseScriptContent(napi_env env, napi_value value, std::string &script)
1613 std::shared_ptr<CacheOptions> WebviewController::ParseCacheOptions(napi_env env, napi_value value) {
1631 void WebviewController::PrecompileJavaScriptPromise(
1667 bool WebviewController::ParseResponseHeaders(napi_env env,
1704 ParseURLResult WebviewController::ParseURLList(napi_env env, napi_value value, std::vector<std::string>& urlList)
1719 bool WebviewController::CheckURL(std::string& url) const
1734 std::vector<uint8_t> WebviewController::ParseUint8Array(napi_env env, napi_value value)
1760 void WebviewController::InjectOfflineResource(const std::vector<std::string>& urlList,
1781 void WebviewController::EnableAdsBlock(bool enable)
1789 bool WebviewController::IsAdsBlockEnabled() const
1799 bool WebviewController::IsAdsBlockEnabledForCurPage() const
1809 std::string WebviewController::GetSurfaceId()
1822 void WebviewController::UpdateInstanceId(int32_t newId)
1829 ErrCode WebviewController::SetUrlTrustList(const std::string& urlTrustList, std::string& detailErrMsg)
1853 bool WebviewController::ParseJsLengthResourceToInt(
1907 bool WebviewController::ParseJsLengthToInt(
1938 ErrCode WebviewController::WebPageSnapshot(
1954 bool WebviewController::GetHapModuleInfo()
1984 void WebviewController::SetPathAllowingUniversalAccess(
2002 void WebviewController::ScrollToWithAnime(float x, float y, int32_t duration)
2011 void WebviewController::ScrollByWithAnime(float deltaX, float deltaY, int32_t duration)
2020 void WebviewController::SetBackForwardCacheOptions(int32_t size, int32_t timeToLive)
2030 void WebviewController::GetScrollOffset(float* offset_x, float* offset_y)
2038 bool WebviewController::ScrollByWithResult(float deltaX, float deltaY) const
2048 void WebviewController::SetScrollable(bool enable, int32_t scrollType)