Home
last modified time | relevance | path

Searched refs:NWebError (Results 1 - 25 of 33) sorted by relevance

12

/base/web/webview/interfaces/kits/cj/src/
H A Dwebview_ffi.cpp124 return NWebError::INIT_ERROR; in FfiOHOSWebviewCtlLoadUrl()
135 return NWebError::INIT_ERROR; in FfiOHOSWebviewCtlLoadUrlWithHeaders()
153 return NWebError::INIT_ERROR; in FfiOHOSWebviewCtlLoadData()
167 return NWebError::INIT_ERROR; in FfiOHOSWebviewCtlPreFetchPage()
172 return NWebError::PARAM_CHECK_ERROR; in FfiOHOSWebviewCtlPreFetchPage()
177 return NWebError::PARAM_CHECK_ERROR; in FfiOHOSWebviewCtlPreFetchPage()
180 if (ret != NWebError::NO_ERROR) { in FfiOHOSWebviewCtlPreFetchPage()
181 if (ret == NWebError::NWEB_ERROR) { in FfiOHOSWebviewCtlPreFetchPage()
192 return NWebError::INIT_ERROR; in FfiOHOSWebviewCtlPreFetchPageWithHeaders()
197 return NWebError in FfiOHOSWebviewCtlPreFetchPageWithHeaders()
[all...]
H A Dwebview_message_ffi.cpp48 *errCode = NWebError::CAN_NOT_POST_MESSAGE; in FfiOHOSWebMessagePortPostMessageEvent()
65 *errCode = NWebError::CAN_NOT_POST_MESSAGE; in FfiOHOSWebMessagePortPostMessageEventArr()
78 *errCode = NWebError::PARAM_CHECK_ERROR; in FfiOHOSWebMessagePortPostMessageEventExt()
84 *errCode = NWebError::CAN_NOT_POST_MESSAGE; in FfiOHOSWebMessagePortPostMessageEventExt()
88 *errCode = NWebError::PARAM_CHECK_ERROR; in FfiOHOSWebMessagePortPostMessageEventExt()
113 *errCode = NWebError::CAN_NOT_REGISTER_MESSAGE_EVENT; in FfiOHOSWebMessagePortOnMessageEvent()
128 *errCode = NWebError::CAN_NOT_REGISTER_MESSAGE_EVENT; in FfiOHOSWebMessagePortOnMessageEventExt()
163 *errCode = NWebError::PARAM_CHECK_ERROR; in FfiOHOSWebMessageExtImplGetType()
167 *errCode = NWebError::NO_ERROR; in FfiOHOSWebMessageExtImplGetType()
177 *errCode = NWebError in FfiOHOSWebMessageExtImplGetString()
[all...]
H A Dweb_storage.cpp30 int32_t errCode = NWebError::NO_ERROR; in CJdeleteOrigin()
33 if (web_storage->DeleteOrigin(origin) == NWebError::INVALID_ORIGIN) { in CJdeleteOrigin()
34 errCode = NWebError::INVALID_ORIGIN; in CJdeleteOrigin()
37 errCode = NWebError::NWEB_ERROR; in CJdeleteOrigin()
61 } else if (ret == NWebError::INVALID_ORIGIN) { in CjGetOriginUsageOrQuota()
62 *errCode = NWebError::INVALID_ORIGIN; in CjGetOriginUsageOrQuota()
71 } else if (ret == NWebError::INVALID_ORIGIN) { in CjGetOriginUsageOrQuota()
72 *errCode = NWebError::INVALID_ORIGIN; in CjGetOriginUsageOrQuota()
90 *errCode = NWebError::NO_WEBSTORAGE_ORIGIN; in CjGetOrigins()
95 *errCode = NWebError in CjGetOrigins()
[all...]
H A Dwebview_hasimage_callback.cpp21 using namespace NWebError;
25 callbackRef_(RetDataBool{NWebError::NO_ERROR, result}); in OnReceiveValue()
H A Dwebview_controller_impl.cpp50 return NWebError::INIT_ERROR; in ClosePort()
55 return NWebError::NO_ERROR; in ClosePort()
62 return NWebError::INIT_ERROR; in PostPortMessage()
67 return NWebError::CAN_NOT_POST_MESSAGE; in PostPortMessage()
70 return NWebError::NO_ERROR; in PostPortMessage()
78 return NWebError::INIT_ERROR; in SetPortMessageCallback()
83 return NWebError::CAN_NOT_REGISTER_MESSAGE_EVENT; in SetPortMessageCallback()
86 return NWebError::NO_ERROR; in SetPortMessageCallback()
180 return NWebError::INIT_ERROR; in LoadUrl()
189 return NWebError in LoadUrl()
[all...]
H A Dwebview_javascript_execute_callback.cpp88 RetDataCString ret = { .code = NWebError::INVALID_RESOURCE, .data = nullptr }; in OnReceiveValue()
97 ret.code = NWebError::NO_ERROR; in OnReceiveValue()
100 ret.code = NWebError::NEW_OOM; in OnReceiveValue()
108 RetDataI64 ret = { .code = NWebError::INVALID_RESOURCE, .data = 0 }; in OnReceiveValue()
119 ret.code = NWebError::NO_ERROR; in OnReceiveValue()
H A Dgeolocation_permission.cpp46 incognitoMode) == NWebError::INVALID_ORIGIN) { in ProcessActionByType()
47 *errCode = NWebError::INVALID_ORIGIN; in ProcessActionByType()
52 incognitoMode) == NWebError::INVALID_ORIGIN) { in ProcessActionByType()
53 *errCode =NWebError::INVALID_ORIGIN; in ProcessActionByType()
72 *errCode = NWebError::INVALID_ORIGIN; in ExecuteGetPermissionState()
H A Dwebview_function.cpp26 using namespace NWebError;
H A Dweb_cookie_manager.cpp35 errCode = NWebError::INVALID_URL; in CjGetCookie()
38 errCode = NWebError::NO_ERROR; in CjGetCookie()
/base/web/webview/interfaces/kits/napi/webdatabase/
H A Dnapi_web_data_base.cpp146 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials()
147 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "four")); in JsSaveHttpAuthCredentials()
152 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials()
153 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "host", "string")); in JsSaveHttpAuthCredentials()
158 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSaveHttpAuthCredentials()
159 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "realm", "string")); in JsSaveHttpAuthCredentials()
164 NWebError in JsSaveHttpAuthCredentials()
[all...]
H A Dnapi_geolocation_permission.cpp134 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in ProcessActionByType()
135 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "one", "two")); in ProcessActionByType()
141 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in ProcessActionByType()
142 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "origin", "string")); in ProcessActionByType()
158 incognitoMode) == NWebError::INVALID_ORIGIN) { in ProcessActionByType()
159 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::INVALID_ORIGIN); in ProcessActionByType()
164 incognitoMode) == NWebError in ProcessActionByType()
[all...]
/base/web/webview/interfaces/kits/napi/webadsblockmanager/
H A Dnapi_web_adsblock_manager.cpp83 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules()
84 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "two")); in JsSetAdsBlockRules()
92 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules()
99 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules()
107 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsSetAdsBlockRules()
131 NWebError in JsAddAdsBlockDisallowedList()
[all...]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dnapi_native_media_player.cpp248 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleStatusChanged()
255 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleStatusChanged()
261 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::TYPE_NOT_MATCH_WITCH_VALUE); in HandleStatusChanged()
286 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR); in HandleVolumeChanged()
293 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError in HandleVolumeChanged()
[all...]
H A Dwebview_controller.cpp89 using namespace NWebError;
293 ErrCode result = NWebError::NO_ERROR; in ZoomIn()
305 ErrCode result = NWebError::NO_ERROR; in ZoomOut()
351 return NWebError::INIT_ERROR; in SetCustomUserAgent()
355 return NWebError::INIT_ERROR; in SetCustomUserAgent()
358 return NWebError::NO_ERROR; in SetCustomUserAgent()
389 return NWebError::NO_ERROR; in BackOrForward()
398 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INIT_ERROR); in StoreWebArchiveCallback()
427 setResult[PARAMZERO] = BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in StoreWebArchiveCallback()
452 jsResult = NWebError in StoreWebArchivePromise()
[all...]
H A Dnapi_webview_controller.cpp51 using namespace NWebError;
52 using NWebError::NO_ERROR;
353 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginTop", "number")); in ParsePDFMarginConfigArgs()
363 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginBottom", "number")); in ParsePDFMarginConfigArgs()
373 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginRight", "number")); in ParsePDFMarginConfigArgs()
383 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "marginLeft", "number")); in ParsePDFMarginConfigArgs()
398 env, PARAM_CHECK_ERROR, NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "width", "number")); in ParsePDFConfigArgs()
407 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "height", "number")); in ParsePDFConfigArgs()
451 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "name", "string"));
457 NWebError
[all...]
H A Dnapi_web_scheme_handler_request.cpp30 using namespace OHOS::NWebError;
500 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JS_SetUrl()
545 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "code", "int")); in JS_SetStatus()
597 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "text", "string")); in JS_SetStatusText()
647 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "type", "string")); in JS_SetMimeType()
698 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "encoding", "string")); in JS_SetEncoding()
756 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "three")); in JS_SetHeaderByName()
762 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "name", "string")); in JS_SetHeaderByName()
768 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "value", "string")); in JS_SetHeaderByName()
774 NWebError in JS_SetHeaderByName()
[all...]
H A Dwebview_createpdf_execute_callback.cpp26 using namespace NWebError;
139 setResult[INTEGER_ZERO] = BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbAsync()
179 setResult[INTEGER_ZERO] = NWebError::BusinessError::CreateError(env, NWebError::INVALID_RESOURCE); in UvAfterWorkCbPromise()
/base/web/webview/interfaces/kits/napi/webstorage/
H A Dnapi_web_storage.cpp89 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsDeleteOrigin()
90 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_ONE, "one")); in JsDeleteOrigin()
97 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsDeleteOrigin()
98 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "origin", "string")); in JsDeleteOrigin()
103 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsDeleteOrigin()
111 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError in JsDeleteOrigin()
[all...]
/base/web/webview/interfaces/kits/napi/webcookiemanager/
H A Dnapi_web_cookie_manager.cpp162 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsFetchCookieAsync()
163 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_NUMBERS_ERROR_TWO, "one", "two")); in JsFetchCookieAsync()
169 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsFetchCookieAsync()
170 NWebError::FormatString(ParamCheckErrorMsgTemplate::TYPE_ERROR, "url", "string")); in JsFetchCookieAsync()
192 NWebError::BusinessError::ThrowErrorByErrcode(env, NWebError::PARAM_CHECK_ERROR, in JsFetchCookieAsync()
193 NWebError::FormatString(ParamCheckErrorMsgTemplate::PARAM_TYEPS_ERROR)); in JsFetchCookieAsync()
216 NWebError in JsGetCookie()
[all...]
/base/web/webview/interfaces/kits/napi/common/
H A Dnapi_parse_utils.cpp514 return NWebError::PARAM_CHECK_ERROR; in ConstructStringFlowbuf()
520 return NWebError::PARAM_CHECK_ERROR; in ConstructStringFlowbuf()
527 return NWebError::NEW_OOM; in ConstructStringFlowbuf()
531 return NWebError::NEW_OOM; in ConstructStringFlowbuf()
540 return NWebError::PARAM_CHECK_ERROR; in ConstructStringFlowbuf()
542 return NWebError::NO_ERROR; in ConstructStringFlowbuf()
550 return NWebError::PARAM_CHECK_ERROR; in ConstructArrayBufFlowbuf()
557 return NWebError::PARAM_CHECK_ERROR; in ConstructArrayBufFlowbuf()
562 return NWebError::PARAM_CHECK_ERROR; in ConstructArrayBufFlowbuf()
569 return NWebError in ConstructArrayBufFlowbuf()
[all...]
H A Dbusiness_error.h23 namespace NWebError { namespace
H A Dbusiness_error.cpp21 namespace NWebError { namespace
H A Dweb_errors.h37 namespace NWebError { namespace
/base/web/webview/interfaces/kits/cj/include/
H A Dweb_errors.h24 namespace NWebError { namespace
/base/web/webview/interfaces/kits/napi/webfunction/
H A Dnapi_webview_function.cpp29 using namespace NWebError;

Completed in 23 milliseconds

12