Home
last modified time | relevance | path

Searched refs:jsResult (Results 1 – 7 of 7) sorted by relevance

/base/web/webview/interfaces/kits/napi/webasynccontroller/
Dnapi_web_async_controller.cpp202 napi_value jsResult = nullptr; in StoreWebArchiveCallback() local
206 napi_get_null(env, &jsResult); in StoreWebArchiveCallback()
207 napi_call_function(env, nullptr, callback, 1, &jsResult, &callbackResult); in StoreWebArchiveCallback()
230 napi_value jsResult = nullptr; in StoreWebArchiveCallback() local
233 napi_get_null(env, &jsResult); in StoreWebArchiveCallback()
235 napi_create_string_utf8(env, result.c_str(), NAPI_AUTO_LENGTH, &jsResult); in StoreWebArchiveCallback()
237 napi_call_function(env, nullptr, callback, 1, &jsResult, &callbackResult); in StoreWebArchiveCallback()
254 napi_value jsResult = nullptr; in StoreWebArchivePromise() local
255 napi_get_null(env, &jsResult); in StoreWebArchivePromise()
256 napi_reject_deferred(env, deferred, jsResult); in StoreWebArchivePromise()
[all …]
/base/print/print_fwk/frameworks/helper/src/
Dprint_preview_attribute_helper.cpp63 napi_value jsResult = NapiPrintUtils::GetNamedProperty(env, jsValue, PARAM_PREATTRIBUTE_RESULT); in BuildFromJs() local
64 if (jsResult != nullptr) { in BuildFromJs()
65 auto result = NapiPrintUtils::GetUint32FromValue(env, jsResult); in BuildFromJs()
/base/print/print_fwk/frameworks/kits/extension/src/
Djs_print_callback.cpp76 jsParam_.jsResult = nullptr; in BuildJsWorker()
102 jsWorkParam->jsResult = jsWorkParam->nativeEngine->CallFunction( in Exec()
121 return jsParam_.jsResult; in Exec()
/base/print/print_fwk/frameworks/kits/extension/include/
Djs_print_callback.h52 NativeValue *jsResult; member
63 jsResult = nullptr; in JsWorkParam()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_push_callback.cpp73 NativeValue *jsResult = engine_.CreateObject(); in OnCheckNotification() local
74 NativeObject *result = AbilityRuntime::ConvertNativeValueTo<NativeObject>(jsResult); in OnCheckNotification()
80 NativeValue *argv[] = { jsResult }; in OnCheckNotification()
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp307 napi_value jsResult = nullptr; in SaveCookieAsyncCallback() local
308 napi_get_null(env, &jsResult); in SaveCookieAsyncCallback()
312 napi_call_function(env, nullptr, callback, INTEGER_ONE, &jsResult, &callbackResult); in SaveCookieAsyncCallback()
324 napi_value jsResult = nullptr; in SaveCookieAsyncPromise() local
325 napi_get_undefined(env, &jsResult); in SaveCookieAsyncPromise()
326 napi_reject_deferred(env, deferred, jsResult); in SaveCookieAsyncPromise()
407 napi_value jsResult = nullptr; in UvJsCallbackThreadWoker() local
408 napi_get_undefined(data->env_, &jsResult); in UvJsCallbackThreadWoker()
409 napi_resolve_deferred(data->env_, data->deferred_, jsResult); in UvJsCallbackThreadWoker()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_controller.cpp294 napi_value jsResult = nullptr; in StoreWebArchivePromise() local
295 jsResult = NWebError::BusinessError::CreateError(env, NWebError::INIT_ERROR); in StoreWebArchivePromise()
296 napi_reject_deferred(env, deferred, jsResult); in StoreWebArchivePromise()
703 napi_value jsResult = nullptr; in RunJavaScriptPromise() local
704 jsResult = NWebError::BusinessError::CreateError(env, NWebError::INIT_ERROR); in RunJavaScriptPromise()
705 napi_reject_deferred(env, deferred, jsResult); in RunJavaScriptPromise()
775 napi_value jsResult = nullptr; in HasImagesPromise() local
776 jsResult = NWebError::BusinessError::CreateError(env, NWebError::INIT_ERROR); in HasImagesPromise()
777 napi_reject_deferred(env, deferred, jsResult); in HasImagesPromise()