/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/ |
H A D | jsi_matrix4_module.cpp | 34 Matrix4 ConvertToMatrix(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in ConvertToMatrix() argument 37 if (value->GetArrayLength(runtime) != MATRIX_LENGTH) { in ConvertToMatrix() 44 auto itemJSValue = value->GetProperty(runtime, index); in ConvertToMatrix() 45 if (!itemJSValue->IsNumber(runtime)) { in ConvertToMatrix() 48 result.Set(j, i, static_cast<float>(itemJSValue->ToDouble(runtime))); in ConvertToMatrix() 54 shared_ptr<JsValue> ConvertToJSValue(const shared_ptr<JsRuntime>& runtime, const Matrix4& matrix) in ConvertToJSValue() argument 56 shared_ptr<JsValue> result = runtime->NewArray(); in ConvertToJSValue() 60 result->SetProperty(runtime, runtime->NewInt32(index), runtime in ConvertToJSValue() 66 ConvertToDouble(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, double defaultValue) ConvertToDouble() argument 76 Combine(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Combine() argument 95 Invert(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Invert() argument 106 Translate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Translate() argument 130 Skew(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Skew() argument 147 Scale(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Scale() argument 182 Rotate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Rotate() argument 220 TransformPoint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) TransformPoint() argument 245 ParsePoint(shared_ptr<JsValue> array, std::vector<OHOS::Ace::NG::PointT<int32_t>>& vector, const shared_ptr<JsRuntime>& runtime) ParsePoint() argument 261 SetPolyToPoly(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) SetPolyToPoly() argument 317 AddCommonMatrixProperties(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& obj) AddCommonMatrixProperties() argument 339 Copy(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Copy() argument 353 Init(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Init() argument 367 Identity(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) Identity() argument 377 InitMatrix4Module(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) InitMatrix4Module() argument [all...] |
H A D | jsi_app_module.cpp | 25 shared_ptr<JsValue> AppGetInfo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in AppGetInfo() argument 28 auto instance = static_cast<JsiDeclarativeEngineInstance*>(runtime->GetEmbedderData()); in AppGetInfo() 30 return runtime->NewNull(); in AppGetInfo() 34 return runtime->NewNull(); in AppGetInfo() 37 shared_ptr<JsValue> appInfo = runtime->NewObject(); in AppGetInfo() 42 appInfo->SetProperty(runtime, "appID", runtime->NewString(appId)); in AppGetInfo() 43 appInfo->SetProperty(runtime, "appName", runtime->NewString(appName)); in AppGetInfo() 44 appInfo->SetProperty(runtime, "versionNam in AppGetInfo() 49 AppTerminate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppTerminate() argument 77 AppSetImageCacheCount(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppSetImageCacheCount() argument 114 AppSetImageRawDataCacheSize( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppSetImageRawDataCacheSize() argument 153 AppSetImageFileCacheSize(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppSetImageFileCacheSize() argument 167 AppRequestFullWindow(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppRequestFullWindow() argument 173 AppScreenOnVisible(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppScreenOnVisible() argument 179 InitAppModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) InitAppModule() argument [all...] |
H A D | jsi_curves_module.cpp | 27 shared_ptr<JsValue> CurvesInterpolate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in CurvesInterpolate() argument 30 auto jsCurveString = thisObj->GetProperty(runtime, "__curveString"); in CurvesInterpolate() 31 auto curveString = jsCurveString->ToString(runtime); in CurvesInterpolate() 32 auto curveObjFunc = thisObj->GetProperty(runtime, "__curveCustomFunc"); in CurvesInterpolate() 34 return runtime->NewNull(); in CurvesInterpolate() 37 if (argv[0]->IsNumber(runtime)) { in CurvesInterpolate() 38 time = argv[0]->ToDouble(runtime); in CurvesInterpolate() 42 if (curveObjFunc->IsFunction(runtime)) { in CurvesInterpolate() 44 runtime](float time) -> float { in CurvesInterpolate() 46 std::vector<shared_ptr<JsValue>> argv = { runtime in CurvesInterpolate() 59 CurvesInitInternal(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) CurvesInitInternal() argument 89 CurvesInit(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) CurvesInit() argument 95 InitCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) InitCurve() argument 101 CreateSpringCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateSpringCurve() argument 136 CreateInterpolatingSpring(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateInterpolatingSpring() argument 159 CreateCubicCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateCubicCurve() argument 188 CreateStepsCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateStepsCurve() argument 214 CreateSpringMotionCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateSpringMotionCurve() argument 245 CreateResponsiveSpringMotionCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, RefPtr<Curve>& curve) CreateResponsiveSpringMotionCurve() argument 276 ParseCurves(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, std::string& curveString) ParseCurves() argument 323 CurvesBezier(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) CurvesBezier() argument 330 BezierCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) BezierCurve() argument 337 CurvesSpring(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) CurvesSpring() argument 344 SpringCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) SpringCurve() argument 351 InterpolatingSpringCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) InterpolatingSpringCurve() argument 358 CurvesSteps(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) CurvesSteps() argument 365 StepsCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) StepsCurve() argument 371 CustomCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) CustomCurve() argument 378 SpringMotionCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) SpringMotionCurve() argument 385 ResponsiveSpringMotionCurve(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) ResponsiveSpringMotionCurve() argument 392 InitCurvesModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) InitCurvesModule() argument [all...] |
H A D | jsi_router_module.cpp | 24 std::string DeclarativeParseRouteUrl(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, in DeclarativeParseRouteUrl() argument 27 std::string argStr = arg->GetJsonString(runtime); in DeclarativeParseRouteUrl() 41 std::string DeclarativeParseRouteParams(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, in DeclarativeParseRouteParams() argument 44 std::string argStr = arg->GetJsonString(runtime); in DeclarativeParseRouteParams() 53 shared_ptr<JsValue> PagePush(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in PagePush() argument 57 return runtime->NewNull(); in PagePush() 60 std::string uri = DeclarativeParseRouteUrl(runtime, argv[0], ROUTE_KEY_URI); in PagePush() 61 std::string params = DeclarativeParseRouteParams(runtime, argv[0], ROUTE_KEY_PARAMS); in PagePush() 64 return runtime->NewNull(); in PagePush() 68 return runtime in PagePush() 71 PageReplace(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) PageReplace() argument 89 PageBack(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) PageBack() argument 111 PageClear(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) PageClear() argument 123 PageGetLength(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) PageGetLength() argument 135 PageGetState(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) PageGetState() argument 154 PageGetParams(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) PageGetParams() argument 169 InitRouterModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) InitRouterModule() argument [all...] |
H A D | jsi_module_manager.cpp | 32 const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& thisObj, const std::string& moduleName) in InitModule() 35 void (*)(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& thisObj)> in InitModule() 37 { "system.router", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 38 shared_ptr<JsValue>& thisObj) { InitRouterModule(runtime, thisObj); } }, in InitModule() 39 { "ohos.router", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 40 shared_ptr<JsValue>& thisObj) { InitRouterModule(runtime, thisObj); } }, in InitModule() 41 { "system.app", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 42 shared_ptr<JsValue>& thisObj) { InitAppModule(runtime, thisObj); } }, in InitModule() 43 { "ohos.app", [](const shared_ptr<JsRuntime>& runtime, in InitModule() 44 shared_ptr<JsValue>& thisObj) { InitAppModule(runtime, thisOb in InitModule() 31 InitModule( const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& thisObj, const std::string& moduleName) InitModule() argument [all...] |
H A D | jsi_timer_module.cpp | 26 shared_ptr<JsValue> SetTimeoutOrInterval(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in SetTimeoutOrInterval() argument 29 auto instance = static_cast<JsiDeclarativeEngineInstance*>(runtime->GetEmbedderData()); in SetTimeoutOrInterval() 31 return runtime->NewNull(); in SetTimeoutOrInterval() 35 return runtime->NewNull(); in SetTimeoutOrInterval() 39 return runtime->NewNull(); in SetTimeoutOrInterval() 41 if (!argv[0]->IsFunction(runtime)) { in SetTimeoutOrInterval() 42 return runtime->NewNull(); in SetTimeoutOrInterval() 46 if (argc < 2 || !argv[1]->IsNumber(runtime)) { in SetTimeoutOrInterval() 49 return runtime->NewInt32(callbackId); in SetTimeoutOrInterval() 51 delay = static_cast<uint32_t>(argv[1]->ToInt32(runtime)); in SetTimeoutOrInterval() 61 ClearTimeoutOrInterval(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) ClearTimeoutOrInterval() argument 87 SetTimeout(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) SetTimeout() argument 93 SetInterval(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) SetInterval() argument 99 ClearTimeout(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) ClearTimeout() argument 106 ClearInterval(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) ClearInterval() argument 156 InitTimerModule(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& moduleObj) InitTimerModule() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_canvas_bridge.cpp | 34 RefPtr<PixelMap> CreatePixelMapFromNapiValue(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue> jsValue) in CreatePixelMapFromNapiValue() argument 36 auto engine = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in CreatePixelMapFromNapiValue() 53 shared_ptr<ArkJSRuntime> arkRuntime = std::static_pointer_cast<ArkJSRuntime>(runtime); in CreatePixelMapFromNapiValue() 99 inline double GetJsDoubleVal(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetJsDoubleVal() argument 101 if (!runtime || !value) { in GetJsDoubleVal() 102 LOGE("runtime or value is null."); in GetJsDoubleVal() 105 if (value->IsNumber(runtime) || value->IsString(runtime)) { in GetJsDoubleVal() 106 return value->ToDouble(runtime); in GetJsDoubleVal() 111 inline std::vector<double> GetJsDashValue(const shared_ptr<JsRuntime>& runtime, cons argument 136 GetJsRectParam( const shared_ptr<JsRuntime>& runtime, int32_t argc, const std::vector<shared_ptr<JsValue>>& argv) GetJsRectParam() argument 155 GetCurrentNodeId(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetCurrentNodeId() argument 169 PushTaskToPage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::function<void(const RefPtr<CanvasTaskPool>&)>& task) PushTaskToPage() argument 193 JsParseTextState(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) JsParseTextState() argument 255 HandleJsContext(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args) HandleJsContext() argument 354 HandleWebglContext(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args, CanvasRenderContextBase*& canvasRenderContext) HandleWebglContext() argument 460 HandleToDataURL(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args) HandleToDataURL() argument 500 JsSetAntiAlias(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args) JsSetAntiAlias() argument 526 JsCreateLinearGradient(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreateLinearGradient() argument 547 JsCreateRadialGradient(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreateRadialGradient() argument 572 JsAddColorStop(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAddColorStop() argument 596 GetGradient(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetGradient() argument 609 JsFillRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillRect() argument 622 JsStrokeRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeRect() argument 635 JsClearRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsClearRect() argument 648 JsFillText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillText() argument 666 JsStrokeText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeText() argument 684 JsMeasureText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMeasureText() argument 735 JsBeginPath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsBeginPath() argument 747 JsClosePath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsClosePath() argument 759 JsMoveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMoveTo() argument 773 JsLineTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineTo() argument 787 JsBezierCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsBezierCurveTo() argument 806 JsQuadraticCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsQuadraticCurveTo() argument 823 JsArc(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsArc() argument 851 JsArcTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsArcTo() argument 869 JsEllipse(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsEllipse() argument 894 JsRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRect() argument 903 JsFill(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFill() argument 911 JsStroke(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStroke() argument 936 JsClip(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsClip() argument 944 JsRestore(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRestore() argument 956 JsSave(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSave() argument 968 JsRotate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRotate() argument 977 JsScale(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsScale() argument 991 JsSetTransform(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSetTransform() argument 1010 JsTransform(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTransform() argument 1029 JsTranslate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTranslate() argument 1043 JsSetLineDash(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSetLineDash() argument 1058 JsGetLineDash(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsGetLineDash() argument 1069 ParseDomImage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, double& width, double& height, std::string& src) ParseDomImage() argument 1093 JsDrawImage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsDrawImage() argument 1166 JsCreatePath2D(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreatePath2D() argument 1188 JsPath2DAddPath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DAddPath() argument 1224 JsPath2DSetTransform(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DSetTransform() argument 1251 JsPath2DMoveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DMoveTo() argument 1276 JsPath2DLineTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DLineTo() argument 1301 JsPath2DArc(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DArc() argument 1333 JsPath2DArcTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DArcTo() argument 1359 JsPath2DQuadraticCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DQuadraticCurveTo() argument 1385 JsPath2DBezierCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DBezierCurveTo() argument 1412 JsPath2DEllipse(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DEllipse() argument 1445 JsPath2DRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DRect() argument 1471 JsPath2DClosePath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DClosePath() argument 1491 JsMakePath2D(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMakePath2D() argument 1511 GetPath2D(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetPath2D() argument 1527 JsCreatePattern(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreatePattern() argument 1564 GetPattern(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetPattern() argument 1574 JsCreateImageData(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreateImageData() argument 1615 JsPutImageData(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPutImageData() argument 1657 ParseImageData(const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, std::vector<std::string>& array, ImageData& imageData) ParseImageData() argument 1749 JsGetPixelMap(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsGetPixelMap() argument 1847 JsGetJsonData(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsGetJsonData() argument 1888 JsTransferFromImageBitmap(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTransferFromImageBitmap() argument 1921 JsDrawBitmapMesh(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsDrawBitmapMesh() argument 1956 JsFillStyleGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillStyleGetter() argument 1962 JsFillStyleSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillStyleSetter() argument 1996 JsStrokeStyleGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeStyleGetter() argument 2002 JsStrokeStyleSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeStyleSetter() argument 2036 JsLineCapGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineCapGetter() argument 2042 JsLineCapSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineCapSetter() argument 2065 JsLineJoinGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineJoinGetter() argument 2071 JsLineJoinSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineJoinSetter() argument 2094 JsMiterLimitGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMiterLimitGetter() argument 2100 JsMiterLimitSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMiterLimitSetter() argument 2117 JsLineWidthGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineWidthGetter() argument 2123 JsLineWidthSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineWidthSetter() argument 2140 JsTextAlignGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextAlignGetter() argument 2146 JsTextAlignSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextAlignSetter() argument 2164 JsTextBaselineGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextBaselineGetter() argument 2170 JsTextBaselineSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextBaselineSetter() argument 2189 JsFontGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFontGetter() argument 2195 JsFontSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFontSetter() argument 2234 JsAlphaGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAlphaGetter() argument 2240 JsAlphaSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAlphaSetter() argument 2257 JsCompositeOperationGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCompositeOperationGetter() argument 2263 JsCompositeOperationSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCompositeOperationSetter() argument 2296 JsLineDashOffsetGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineDashOffsetGetter() argument 2302 JsLineDashOffsetSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineDashOffsetSetter() argument 2319 JsShadowBlurGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowBlurGetter() argument 2325 JsShadowBlurSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowBlurSetter() argument 2342 JsShadowColorGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowColorGetter() argument 2348 JsShadowColorSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowColorSetter() argument 2366 JsShadowOffsetXGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetXGetter() argument 2372 JsShadowOffsetXSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetXSetter() argument 2389 JsShadowOffsetYGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetYGetter() argument 2395 JsShadowOffsetYSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetYSetter() argument 2412 JsSmoothingEnabledGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingEnabledGetter() argument 2418 JsSmoothingEnabledSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingEnabledSetter() argument 2435 JsSmoothingQualityGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingQualityGetter() argument 2441 JsSmoothingQualitySetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingQualitySetter() argument 2461 JsWidthGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsWidthGetter() argument 2499 JsHeightGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsHeightGetter() argument [all...] |
H A D | jsi_offscreen_canvas_bridge.cpp | 43 inline double GetJsDoubleVal(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetJsDoubleVal() argument 45 if (!runtime || !value) { in GetJsDoubleVal() 46 LOGE("runtime or value is null."); in GetJsDoubleVal() 49 if (value->IsNumber(runtime) || value->IsString(runtime)) { in GetJsDoubleVal() 50 return value->ToDouble(runtime); in GetJsDoubleVal() 55 inline std::vector<double> GetJsDashValue(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) in GetJsDashValue() argument 58 if (!runtime || !value) { in GetJsDashValue() 59 LOGE("runtime or value is null."); in GetJsDashValue() 62 auto valueStr = value->ToString(runtime); in GetJsDashValue() 80 GetJsRectParam( const shared_ptr<JsRuntime>& runtime, int32_t argc, const std::vector<shared_ptr<JsValue>>& argv) GetJsRectParam() argument 99 GetCurrentBridgeId(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetCurrentBridgeId() argument 113 GetOffscreenCanvasBridge( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetOffscreenCanvasBridge() argument 128 GlobalGetOffscreenCanvas(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GlobalGetOffscreenCanvas() argument 137 JsParseTextDirection(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) JsParseTextDirection() argument 147 JsParseTextState(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) JsParseTextState() argument 214 GetBridge(const shared_ptr<JsRuntime>& runtime) GetBridge() argument 229 JsGetContext(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsGetContext() argument 314 JsCreateLinearGradient(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreateLinearGradient() argument 335 JsCreateRadialGradient(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreateRadialGradient() argument 360 JsAddColorStop(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAddColorStop() argument 384 GetGradient(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetGradient() argument 397 JsFillRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillRect() argument 412 JsStrokeRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeRect() argument 427 JsClearRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsClearRect() argument 442 JsFillText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillText() argument 463 JsStrokeText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeText() argument 484 JsMeasureText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMeasureText() argument 510 JsBeginPath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsBeginPath() argument 524 JsClosePath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsClosePath() argument 538 JsMoveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMoveTo() argument 554 JsLineTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineTo() argument 570 JsBezierCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsBezierCurveTo() argument 591 JsQuadraticCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsQuadraticCurveTo() argument 610 JsArc(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsArc() argument 640 JsArcTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsArcTo() argument 660 JsEllipse(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsEllipse() argument 687 JsRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRect() argument 698 JsFill(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFill() argument 708 JsStroke(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStroke() argument 737 JsClip(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsClip() argument 747 JsRestore(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRestore() argument 761 JsSave(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSave() argument 775 JsRotate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRotate() argument 786 JsScale(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsScale() argument 802 JsSetTransform(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSetTransform() argument 823 JsTransform(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTransform() argument 844 JsTranslate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTranslate() argument 860 JsSetLineDash(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSetLineDash() argument 877 JsGetLineDash(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsGetLineDash() argument 888 ParseDomImage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, double& width, double& height, std::string& src) ParseDomImage() argument 912 JsDrawImage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsDrawImage() argument 967 JsCreatePath2D(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreatePath2D() argument 989 JsPath2DAddPath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DAddPath() argument 1025 JsPath2DSetTransform(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DSetTransform() argument 1052 JsPath2DMoveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DMoveTo() argument 1077 JsPath2DLineTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DLineTo() argument 1102 JsPath2DArc(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DArc() argument 1134 JsPath2DArcTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DArcTo() argument 1160 JsPath2DQuadraticCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DQuadraticCurveTo() argument 1186 JsPath2DBezierCurveTo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DBezierCurveTo() argument 1213 JsPath2DEllipse(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DEllipse() argument 1246 JsPath2DRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DRect() argument 1272 JsPath2DClosePath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPath2DClosePath() argument 1292 JsMakePath2D(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMakePath2D() argument 1312 GetPath2D( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetPath2D() argument 1329 JsTransferToImageBitmap(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTransferToImageBitmap() argument 1343 JsToDataURL(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsToDataURL() argument 1361 JsCreatePattern(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreatePattern() argument 1398 GetPattern(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value) GetPattern() argument 1408 JsCreateImageData(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreateImageData() argument 1449 JsPutImageData(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPutImageData() argument 1493 ParseImageData(const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc, std::vector<std::string>& array, ImageData& imageData) ParseImageData() argument 1561 JsFillStyleGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillStyleGetter() argument 1567 JsFillStyleSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFillStyleSetter() argument 1611 JsStrokeStyleGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeStyleGetter() argument 1617 JsStrokeStyleSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsStrokeStyleSetter() argument 1661 JsLineCapGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineCapGetter() argument 1667 JsLineCapSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineCapSetter() argument 1692 JsLineJoinGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineJoinGetter() argument 1698 JsLineJoinSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineJoinSetter() argument 1723 JsMiterLimitGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMiterLimitGetter() argument 1729 JsMiterLimitSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsMiterLimitSetter() argument 1748 JsLineWidthGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineWidthGetter() argument 1754 JsLineWidthSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineWidthSetter() argument 1773 JsTextAlignGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextAlignGetter() argument 1779 JsTextAlignSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextAlignSetter() argument 1799 JsTextBaselineGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextBaselineGetter() argument 1805 JsTextBaselineSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsTextBaselineSetter() argument 1826 JsFontGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFontGetter() argument 1832 JsFontSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFontSetter() argument 1872 JsAlphaGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAlphaGetter() argument 1878 JsAlphaSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAlphaSetter() argument 1897 JsCompositeOperationGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCompositeOperationGetter() argument 1903 JsCompositeOperationSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCompositeOperationSetter() argument 1938 JsLineDashOffsetGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineDashOffsetGetter() argument 1944 JsLineDashOffsetSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsLineDashOffsetSetter() argument 1963 JsShadowBlurGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowBlurGetter() argument 1969 JsShadowBlurSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowBlurSetter() argument 1988 JsShadowColorGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowColorGetter() argument 1994 JsShadowColorSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowColorSetter() argument 2014 JsShadowOffsetXGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetXGetter() argument 2020 JsShadowOffsetXSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetXSetter() argument 2039 JsShadowOffsetYGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetYGetter() argument 2045 JsShadowOffsetYSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsShadowOffsetYSetter() argument 2064 JsSmoothingEnabledGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingEnabledGetter() argument 2070 JsSmoothingEnabledSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingEnabledSetter() argument 2089 JsSmoothingQualityGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingQualityGetter() argument 2095 JsSmoothingQualitySetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSmoothingQualitySetter() argument 2117 JsFilterParamGetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFilterParamGetter() argument 2123 JsFilterParamSetter(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFilterParamSetter() argument 2145 JsIsPointInStroke(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsIsPointInStroke() argument 2188 JsIsPointInPath(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsIsPointInPath() argument 2231 JsResetTransform(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsResetTransform() argument [all...] |
H A D | ark_js_value.h | 40 ArkJSValue(const shared_ptr<ArkJSRuntime> &runtime, Local<JSValueRef> value) : value_(runtime->GetEcmaVm(), value) in ArkJSValue() argument 48 int32_t ToInt32(shared_ptr<JsRuntime> runtime) override; 49 double ToDouble(shared_ptr<JsRuntime> runtime) override; 50 std::string ToString(shared_ptr<JsRuntime> runtime) override; 51 bool ToBoolean(shared_ptr<JsRuntime> runtime) override; 53 bool IsUndefined(shared_ptr<JsRuntime> runtime) override; 54 bool IsNull(shared_ptr<JsRuntime> runtime) override; 55 bool IsBoolean(shared_ptr<JsRuntime> runtime) override; 56 bool IsInt32(shared_ptr<JsRuntime> runtime) overrid 90 GetValue(const shared_ptr<ArkJSRuntime> &runtime) GetValue() argument 95 SetValue(const shared_ptr<ArkJSRuntime> &runtime, const Local<JSValueRef> &value) SetValue() argument [all...] |
H A D | js_value.h | 36 virtual int32_t ToInt32(shared_ptr<JsRuntime> runtime) = 0; 37 virtual double ToDouble(shared_ptr<JsRuntime> runtime) = 0; 38 virtual std::string ToString(shared_ptr<JsRuntime> runtime) = 0; 39 virtual bool ToBoolean(shared_ptr<JsRuntime> runtime) = 0; 41 virtual bool IsObject(shared_ptr<JsRuntime> runtime) = 0; 42 virtual bool IsArray(shared_ptr<JsRuntime> runtime) = 0; 43 virtual bool IsUndefined(shared_ptr<JsRuntime> runtime) = 0; 44 virtual bool IsNull(shared_ptr<JsRuntime> runtime) = 0; 45 virtual bool IsNumber(shared_ptr<JsRuntime> runtime) = 0; 46 virtual bool IsInt32(shared_ptr<JsRuntime> runtime) [all...] |
H A D | jsi_chart_bridge.cpp | 26 const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, AxisOption& axisOption) in GetAttrOptionsAxis() 28 if (!runtime || !valObject || !valObject->IsObject(runtime)) { in GetAttrOptionsAxis() 34 valObject->GetPropertyNames(runtime, propertyNames, len); in GetAttrOptionsAxis() 36 shared_ptr<JsValue> key = propertyNames->GetElement(runtime, i); in GetAttrOptionsAxis() 41 std::string keyStr = key->ToString(runtime); in GetAttrOptionsAxis() 42 shared_ptr<JsValue> item = valObject->GetProperty(runtime, key); in GetAttrOptionsAxis() 47 if (item->IsNumber(runtime) || item->IsBoolean(runtime) || item->IsString(runtime)) { in GetAttrOptionsAxis() 25 GetAttrOptionsAxis( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, AxisOption& axisOption) GetAttrOptionsAxis() argument 67 GetAttrOptionsSeriesPoint( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, PointInfo& pointInfo) GetAttrOptionsSeriesPoint() argument 121 GetChartAttrOptionsSeriesLineStyle( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, ChartOptions& chartOptions) GetChartAttrOptionsSeriesLineStyle() argument 164 GetChartAttrOptionsSeriesLoop( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, ChartOptions& chartOptions) GetChartAttrOptionsSeriesLoop() argument 206 GetChartAttrOptionsSeries( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, ChartOptions& chartOptions) GetChartAttrOptionsSeries() argument 273 ParseTextInfoAndSegmentInfo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& val, const std::string& key, TextInfo& textInfo, SegmentInfo& segmentInfo) ParseTextInfoAndSegmentInfo() argument 312 ParseAttrDataStyle( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, double index, LineInfo& line) ParseAttrDataStyle() argument 357 GetAttrDataSetData( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& dataArrayVal, MainChart& dataSet) GetAttrDataSetData() argument 398 GetAttrDataset(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, MainChart& dataSet) GetAttrDataset() argument 434 ParseAttrSegment(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, Segment& segment) ParseAttrSegment() argument 474 GetAttrOptionsObject(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject) GetAttrOptionsObject() argument 523 GetAttrDatasets(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valArray) GetAttrDatasets() argument 536 ParseAttrSegmentArray(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valArray) ParseAttrSegmentArray() argument 549 ParseAttrSingleSegment(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject) ParseAttrSingleSegment() argument [all...] |
H A D | jsi_engine.cpp | 74 RefPtr<PixelMap> CreatePixelMapFromNapiValue(const shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue> jsValue) in CreatePixelMapFromNapiValue() argument 76 auto engine = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in CreatePixelMapFromNapiValue() 93 shared_ptr<ArkJSRuntime> arkRuntime = std::static_pointer_cast<ArkJSRuntime>(runtime); in CreatePixelMapFromNapiValue() 117 RefPtr<JsAcePage> GetStagingPage(const shared_ptr<JsRuntime>& runtime) in GetStagingPage() argument 119 if (!runtime) { in GetStagingPage() 123 auto engineInstance = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in GetStagingPage() 127 RefPtr<JsAcePage> GetRunningPage(const shared_ptr<JsRuntime>& runtime) in GetRunningPage() argument 129 if (!runtime) { in GetRunningPage() 133 auto engineInstance = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in GetRunningPage() 137 RefPtr<FrontendDelegate> GetFrontendDelegate(const shared_ptr<JsRuntime>& runtime) in GetFrontendDelegate() argument 147 GetValueAsString(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, std::string& str) GetValueAsString() argument 185 GetStyleFamilyValue( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, std::string& familyStyle) GetStyleFamilyValue() argument 230 GetStyleAnimationName(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, std::vector<std::unordered_map<std::string, std::string>>& styleVec) GetStyleAnimationName() argument 257 GetAttrImage( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, ImageProperties& imageProperties) GetAttrImage() argument 297 GetAttrImages( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arrayVal, std::vector<ImageProperties>& images) GetAttrImages() argument 314 SetDomAttributesWithArray(const shared_ptr<JsRuntime>& runtime, const std::string& keyStr, const shared_ptr<JsValue>& value, std::vector<std::pair<std::string, std::string>>& attrs, JsCommandDomElementOperator& command) SetDomAttributesWithArray() argument 345 SetDomAttributesWithObject(const shared_ptr<JsRuntime>& runtime, const std::string& keyStr, const shared_ptr<JsValue>& value, JsCommandDomElementOperator& command) SetDomAttributesWithObject() argument 377 SetDomAttributes( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& attrObj, JsCommandDomElementOperator& command) SetDomAttributes() argument 426 SetDomStyle( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& styleObj, JsCommandDomElementOperator& command) SetDomStyle() argument 507 AddDomEvent( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& eventObj, JsCommandDomElementOperator& command) AddDomEvent() argument 537 GetAppInfo(const shared_ptr<JsRuntime>& runtime) GetAppInfo() argument 555 Terminate(const shared_ptr<JsRuntime>& runtime) Terminate() argument 570 GetPackageInfoCallback( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& message, const std::string& callbackId) GetPackageInfoCallback() argument 605 GetPackageInfo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) GetPackageInfo() argument 623 RequestFullWindow(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) RequestFullWindow() argument 656 SetScreenOnVisible(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) SetScreenOnVisible() argument 703 GetLocale(const shared_ptr<JsRuntime>& runtime) GetLocale() argument 717 SetLocale(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) SetLocale() argument 804 ParseRouteUrl(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& key) ParseRouteUrl() argument 819 ParseRouteUrlSpecial(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) ParseRouteUrlSpecial() argument 837 ParseRouteParams( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& key) ParseRouteParams() argument 849 ParseIntParams(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& key) ParseIntParams() argument 860 ParseRouteOverwrite(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& key) ParseRouteOverwrite() argument 871 AddListener(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) AddListener() argument 886 ShowToast(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) ShowToast() argument 922 ParseDialogButtons( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& key) ParseDialogButtons() argument 944 ShowDialog(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) ShowDialog() argument 993 SetTimer(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, bool isInterval) SetTimer() argument 1009 ClearTimeout(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) ClearTimeout() argument 1024 JsHandleAnimationFrame( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleAnimationFrame() argument 1043 JsHandleCallback( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleCallback() argument 1072 JsHandleAppApi( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleAppApi() argument 1100 GetParams( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, std::map<std::string, std::string>& params) GetParams() argument 1123 GetParamsWithCallbackId(const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv, std::map<std::string, std::string>& params, std::string& callbackId) GetParamsWithCallbackId() argument 1174 JsReadText(const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv) JsReadText() argument 1247 JsReadArrayBuffer( const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv) JsReadArrayBuffer() argument 1307 JsHandleReadResource( const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv, const std::string& methodName) JsHandleReadResource() argument 1320 JsHandleOffscreenCanvas( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleOffscreenCanvas() argument 1340 JsCallConfiguration( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsCallConfiguration() argument 1351 JsGetDeviceInfo(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) JsGetDeviceInfo() argument 1371 JsHandleImage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) JsHandleImage() argument 1399 JsHandleGridLayout( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleGridLayout() argument 1414 JsHandleMediaQuery( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleMediaQuery() argument 1455 ShowActionMenu(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) ShowActionMenu() argument 1524 JsHandlePrompt( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandlePrompt() argument 1539 EnableAlertBeforeBackPage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) EnableAlertBeforeBackPage() argument 1600 DisableAlertBeforeBackPage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) DisableAlertBeforeBackPage() argument 1635 PostponePageTransition(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) PostponePageTransition() argument 1655 LaunchPageTransition(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) LaunchPageTransition() argument 1675 JsHandlePageRoute( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandlePageRoute() argument 1758 JsHandleSetTimeout( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleSetTimeout() argument 1773 JsHandleAnimator( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, const std::string& methodName) JsHandleAnimator() argument 1809 JsHandleModule(const std::string& moduleName, const std::string& methodName, const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv) JsHandleModule() argument 1872 JsDomCreateBody(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsDomCreateBody() argument 1897 JsDomAddElement(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsDomAddElement() argument 1945 JsRemoveElement(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRemoveElement() argument 1975 JsUpdateElementAttrs(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsUpdateElementAttrs() argument 2009 JsUpdateElementStyles(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsUpdateElementStyles() argument 2041 JsOnCreateFinish(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsOnCreateFinish() argument 2055 JsOnUpdateFinish(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsOnUpdateFinish() argument 2071 JsCallNative(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCallNative() argument 2106 JsCallComponent(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCallComponent() argument 2209 GetNodeId(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg) GetNodeId() argument 2264 AppSetData(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppSetData() argument 2298 AppGetData(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppGetData() argument 2328 AppSetDataImage(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AppSetDataImage() argument 2354 JsSetAttribute(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSetAttribute() argument 2382 JsSetStyle(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsSetStyle() argument 2408 JsAppendChild(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAppendChild() argument 2440 CreateDomElement(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) CreateDomElement() argument 2462 JsFocus(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsFocus() argument 2476 JsAnimate(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimate() argument 2494 JsGetBoundingClientRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsGetBoundingClientRect() argument 2501 JsGetInspector(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsGetInspector() argument 2508 JsCreateElement(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCreateElement() argument 2525 JsPerfPrint(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPerfPrint() argument 2533 JsPerfSleep(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPerfSleep() argument 2542 JsPerfBegin(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPerfBegin() argument 2551 JsPerfEnd(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPerfEnd() argument 2560 JsHiViewReport(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsHiViewReport() argument 2578 JsPluralRulesFormat(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsPluralRulesFormat() argument 2723 JsCallNativeHandler(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsCallNativeHandler() argument 2800 SyscapCanIUse(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) SyscapCanIUse() argument 3073 auto runtime = engineInstance_->GetJsRuntime(); Initialize() local [all...] |
H A D | jsi_animation_bridge.cpp | 23 RefPtr<FrontendDelegate> GetFrontendDelegate(shared_ptr<JsRuntime>&& runtime) in GetFrontendDelegate() argument 25 if (!runtime) { in GetFrontendDelegate() 26 LOGE("Get front delegate failed. runtime is null."); in GetFrontendDelegate() 29 auto engine = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in GetFrontendDelegate() 42 RefPtr<JsAcePage> GetPageById(const shared_ptr<JsRuntime>& runtime, int32_t pageId) in GetPageById() argument 44 if (!runtime) { in GetPageById() 45 LOGE("Get page by id failed, runtime is null"); in GetPageById() 48 auto delegate = GetFrontendDelegate(runtime); in GetPageById() 56 inline NodeId GetCurrentNodeId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) in GetCurrentNodeId() argument 62 shared_ptr<JsValue> jsNodeId = value->GetProperty(runtime, "__nodeI in GetCurrentNodeId() 75 GetCurrentPageId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) GetCurrentPageId() argument 93 HandleJsAnimationContext( const shared_ptr<JsRuntime>& runtime, int32_t pageId, int32_t nodeId, AnimationOperation operation) HandleJsAnimationContext() argument 124 CallAnimationFinishJs(const WeakPtr<JsiAnimationBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime, const RefPtr<JsAcePage>& page) CallAnimationFinishJs() argument 150 CallAnimationCancelJs(const WeakPtr<JsiAnimationBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime, const RefPtr<JsAcePage>& page) CallAnimationCancelJs() argument 177 JsUpdatePlayState( shared_ptr<JsRuntime>&& runtime, const WeakPtr<JsiAnimationBridge>& bridgeWeak, const char* state) JsUpdatePlayState() argument 201 AddListenerForEventCallback(const WeakPtr<JsiAnimationBridge>& bridgeWeak, const RefPtr<Animator>& animator, shared_ptr<JsRuntime> runtime, const RefPtr<JsAcePage>& page) AddListenerForEventCallback() argument 237 JsiAnimationBridge( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& animationContext, NodeId nodeId) JsiAnimationBridge() argument 244 JsAnimationStartTimeGet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationStartTimeGet() argument 281 JsAnimationStartTimeSet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationStartTimeSet() argument 310 JsAnimationPendingGet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationPendingGet() argument 350 JsAnimationPendingSet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationPendingSet() argument 356 JsAnimationPlayStateGet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationPlayStateGet() argument 372 JsAnimationPlayStateSet(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationPlayStateSet() argument 549 JsAnimationPlay(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationPlay() argument 558 JsAnimationFinish(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationFinish() argument 567 JsAnimationPause(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationPause() argument 576 JsAnimationCancel(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationCancel() argument 585 JsAnimationReverse(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimationReverse() argument 594 CreateAnimationContext( shared_ptr<JsRuntime> runtime, int32_t pageId, NodeId nodeId) CreateAnimationContext() argument 624 JsiAnimationBridgeTaskCreate( shared_ptr<JsRuntime> runtime, const RefPtr<JsiAnimationBridge>& bridge, std::string param) JsiAnimationBridgeTaskCreate() argument [all...] |
H A D | jsi_animator_bridge.cpp | 23 RefPtr<FrontendDelegate> GetFrontendDelegate(shared_ptr<JsRuntime>&& runtime) in GetFrontendDelegate() argument 25 if (!runtime) { in GetFrontendDelegate() 26 LOGE("Get front delegate failed. runtime is null."); in GetFrontendDelegate() 29 auto engine = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in GetFrontendDelegate() 42 RefPtr<JsAcePage> GetPageById(const shared_ptr<JsRuntime>& runtime, int32_t pageId) in GetPageById() argument 44 if (!runtime) { in GetPageById() 45 LOGE("Get page by id failed, runtime is null"); in GetPageById() 48 auto delegate = GetFrontendDelegate(runtime); in GetPageById() 56 inline int32_t GetCurrentBridgeId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) in GetCurrentBridgeId() argument 62 shared_ptr<JsValue> jsBridgeId = value->GetProperty(runtime, "__bridgeI in GetCurrentBridgeId() 71 GetCurrentPageId(shared_ptr<JsRuntime>& runtime, shared_ptr<JsValue>& value) GetCurrentPageId() argument 86 HandleJsAnimatorContext(const shared_ptr<JsRuntime>& runtime, int32_t pageId, int32_t bridgeId, AnimatorOperation operation) HandleJsAnimatorContext() argument 111 CallAnimationStartJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime) CallAnimationStartJs() argument 136 CallAnimationFinishJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime) CallAnimationFinishJs() argument 161 CallAnimationCancelJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime) CallAnimationCancelJs() argument 186 CallAnimationRepeatJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime) CallAnimationRepeatJs() argument 211 CallAnimationFrameJs(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, shared_ptr<JsRuntime>&& runtime, double value) CallAnimationFrameJs() argument 237 AddListenerForEventCallback(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, const RefPtr<Animator>& animator, shared_ptr<JsRuntime> runtime) AddListenerForEventCallback() argument 291 AddFrameListener(const WeakPtr<JsiAnimatorBridge>& bridgeWeak, const RefPtr<KeyframeAnimation<double>>& animator, shared_ptr<JsRuntime> runtime) AddFrameListener() argument 313 CreateAnimatorContext( shared_ptr<JsRuntime> runtime, int32_t pageId, int32_t bridgeId) CreateAnimatorContext() argument 334 JsAnimatorPlay(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimatorPlay() argument 343 JsAnimatorFinish(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimatorFinish() argument 352 JsAnimatorPause(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimatorPause() argument 361 JsAnimatorCancel(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimatorCancel() argument 370 JsAnimatorReverse(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimatorReverse() argument 380 JsAnimatorUpdate(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimatorUpdate() argument 418 JsAnimatorReset(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsAnimatorReset() argument 467 JsiAnimatorBridge(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& animatorContext) JsiAnimatorBridge() argument 563 JsiAnimatorTaskCreate( shared_ptr<JsRuntime> runtime, const RefPtr<JsiAnimatorBridge>& bridge, const std::string& param) JsiAnimatorTaskCreate() argument 669 UpdateAnimator(const RefPtr<Animator>& animator, const RefPtr<JsiAnimatorBridge>& bridge, shared_ptr<JsRuntime> runtime, const std::unordered_map<std::string, std::string>& params) UpdateAnimator() argument [all...] |
H A D | jsi_component_api_bridge.cpp | 22 shared_ptr<JsValue> JsiComponentApiBridge::JsGetScrollOffset(const shared_ptr<JsRuntime>& runtime, NodeId nodeId) in JsGetScrollOffset() argument 24 if (!runtime) { in JsGetScrollOffset() 25 LOGE("JsGetScrollOffset failed. runtime is null."); in JsGetScrollOffset() 28 auto engine = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in JsGetScrollOffset() 31 return runtime->NewUndefined(); in JsGetScrollOffset() 36 return runtime->NewUndefined(); in JsGetScrollOffset() 67 return runtime->NewUndefined(); in JsGetScrollOffset() 70 shared_ptr<JsValue> offsetContext = runtime->NewObject(); in JsGetScrollOffset() 71 offsetContext->SetProperty(runtime, "x", runtime in JsGetScrollOffset() 76 JsGetBoundingRect(const shared_ptr<JsRuntime>& runtime, NodeId nodeId) JsGetBoundingRect() argument 101 JsGetInspector(const shared_ptr<JsRuntime>& runtime, NodeId nodeId) JsGetInspector() argument 122 JsScrollTo( const shared_ptr<JsRuntime>& runtime, const std::string& arguments, NodeId nodeId) JsScrollTo() argument [all...] |
H A D | jsi_input_bridge.cpp | 22 const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, InputOption& inputOption) in GetInputOption() 24 if (!valObject->IsObject(runtime)) { in GetInputOption() 30 if (!valObject->GetPropertyNames(runtime, properties, len)) { in GetInputOption() 35 const auto& key = properties->GetElement(runtime, i); in GetInputOption() 36 std::string keyStr = key->ToString(runtime); in GetInputOption() 40 const auto& val = valObject->GetProperty(runtime, key); in GetInputOption() 41 if (val->IsNumber(runtime) || val->IsBoolean(runtime) || val->IsString(runtime)) { in GetInputOption() 42 std::string valStr = val->ToString(runtime); in GetInputOption() 21 GetInputOption( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valObject, InputOption& inputOption) GetInputOption() argument 57 ParseInputOptions(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& valArray) ParseInputOptions() argument [all...] |
H A D | jsi_canvas_bridge.h | 33 void HandleJsContext(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args); 34 void HandleToDataURL(const shared_ptr<JsRuntime>& runtime, NodeId id, const std::string& args); 51 static shared_ptr<JsValue> JsCreateLinearGradient(const shared_ptr<JsRuntime>& runtime, 53 static shared_ptr<JsValue> JsCreateRadialGradient(const shared_ptr<JsRuntime>& runtime, 55 static shared_ptr<JsValue> JsAddColorStop(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 59 static shared_ptr<JsValue> JsFillRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 61 static shared_ptr<JsValue> JsStrokeRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 63 static shared_ptr<JsValue> JsClearRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 67 static shared_ptr<JsValue> JsFillText(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 69 static shared_ptr<JsValue> JsStrokeText(const shared_ptr<JsRuntime>& runtime, cons [all...] |
H A D | jsi_offscreen_canvas_bridge.h | 37 shared_ptr<JsValue> GetBridge(const shared_ptr<JsRuntime>& runtime); 50 static shared_ptr<JsValue> JsGetContext(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 52 static shared_ptr<JsValue> JsTransferToImageBitmap(const shared_ptr<JsRuntime>& runtime, 54 static shared_ptr<JsValue> JsToDataURL(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 58 static shared_ptr<JsValue> JsCreateLinearGradient(const shared_ptr<JsRuntime>& runtime, 60 static shared_ptr<JsValue> JsCreateRadialGradient(const shared_ptr<JsRuntime>& runtime, 62 static shared_ptr<JsValue> JsCreatePattern(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 64 static shared_ptr<JsValue> JsAddColorStop(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 66 static shared_ptr<JsValue> JsFillRect(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& value, 68 static shared_ptr<JsValue> JsClearRect(const shared_ptr<JsRuntime>& runtime, cons [all...] |
H A D | jsi_list_bridge.cpp | 22 shared_ptr<JsValue> JsiListBridge::JsGetCurrentOffset(const shared_ptr<JsRuntime>& runtime, NodeId nodeId) in JsGetCurrentOffset() argument 24 if (!runtime) { in JsGetCurrentOffset() 25 LOGE("JsGetCurrentOffset failed. runtime is null."); in JsGetCurrentOffset() 28 auto engine = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in JsGetCurrentOffset() 31 return runtime->NewUndefined(); in JsGetCurrentOffset() 36 return runtime->NewUndefined(); in JsGetCurrentOffset() 59 return runtime->NewUndefined(); in JsGetCurrentOffset() 62 shared_ptr<JsValue> offsetContext = runtime->NewObject(); in JsGetCurrentOffset() 63 offsetContext->SetProperty(runtime, "x", runtime in JsGetCurrentOffset() [all...] |
H A D | ark_js_value.cpp | 20 int32_t ArkJSValue::ToInt32(shared_ptr<JsRuntime> runtime) in ToInt32() argument 22 shared_ptr<ArkJSRuntime> pandaRuntime = std::static_pointer_cast<ArkJSRuntime>(runtime); in ToInt32() 32 double ArkJSValue::ToDouble(shared_ptr<JsRuntime> runtime) in ToDouble() argument 34 shared_ptr<ArkJSRuntime> pandaRuntime = std::static_pointer_cast<ArkJSRuntime>(runtime); in ToDouble() 49 std::string ArkJSValue::ToString(shared_ptr<JsRuntime> runtime) in ToString() argument 51 shared_ptr<ArkJSRuntime> pandaRuntime = std::static_pointer_cast<ArkJSRuntime>(runtime); in ToString() 66 bool ArkJSValue::ToBoolean(shared_ptr<JsRuntime> runtime) in ToBoolean() argument 68 shared_ptr<ArkJSRuntime> pandaRuntime = std::static_pointer_cast<ArkJSRuntime>(runtime); in ToBoolean() 77 bool ArkJSValue::IsUndefined([[maybe_unused]] shared_ptr<JsRuntime> runtime) in IsUndefined() argument 82 bool ArkJSValue::IsNull([[maybe_unused]] shared_ptr<JsRuntime> runtime) in IsNull() argument 87 IsBoolean([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsBoolean() argument 92 IsInt32([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsInt32() argument 97 WithinInt32([[maybe_unused]] shared_ptr<JsRuntime> runtime) WithinInt32() argument 102 IsString([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsString() argument 108 IsNumber([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsNumber() argument 114 IsObject([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsObject() argument 120 IsArray([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsArray() argument 126 IsFunction([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsFunction() argument 133 IsException([[maybe_unused]] shared_ptr<JsRuntime> runtime) IsException() argument 139 Call(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> thisObj, std::vector<shared_ptr<JsValue>> argv, int32_t argc) Call() argument 166 GetPropertyNames(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> &propName, int32_t &len) GetPropertyNames() argument 190 GetEnumerablePropertyNames(shared_ptr<JsRuntime> runtime, shared_ptr<JsValue> &propName, int32_t &len) GetEnumerablePropertyNames() argument 214 GetProperty(shared_ptr<JsRuntime> runtime, int32_t idx) GetProperty() argument 236 GetProperty(shared_ptr<JsRuntime> runtime, const std::string &name) GetProperty() argument 244 GetProperty(shared_ptr<JsRuntime> runtime, const shared_ptr<JsValue> &name) GetProperty() argument 267 SetProperty(shared_ptr<JsRuntime> runtime, const std::string &name, const shared_ptr<JsValue> &value) SetProperty() argument 275 SetProperty(shared_ptr<JsRuntime> runtime, const shared_ptr<JsValue> &name, const shared_ptr<JsValue> &value) SetProperty() argument 295 SetAccessorProperty(shared_ptr<JsRuntime> runtime, const std::string &name, const shared_ptr<JsValue> &getter, const shared_ptr<JsValue> &setter) SetAccessorProperty() argument 304 SetAccessorProperty(shared_ptr<JsRuntime> runtime, const shared_ptr<JsValue> &name, const shared_ptr<JsValue> &getter, const shared_ptr<JsValue> &setter) SetAccessorProperty() argument 325 HasProperty(shared_ptr<JsRuntime> runtime, const std::string &name) HasProperty() argument 333 HasProperty(shared_ptr<JsRuntime> runtime, const shared_ptr<JsValue> &name) HasProperty() argument 356 GetArrayLength(shared_ptr<JsRuntime> runtime) GetArrayLength() argument 369 GetElement(shared_ptr<JsRuntime> runtime, int32_t idx) GetElement() argument 391 GetJsonString(const shared_ptr<JsRuntime>& runtime) GetJsonString() argument 414 CheckException(const shared_ptr<ArkJSRuntime> &runtime, const Local<JSValueRef> &value) const CheckException() argument [all...] |
H A D | jsi_group_js_bridge.cpp | 43 int32_t JsiGroupJsBridge::InitializeGroupJsBridge(const shared_ptr<JsRuntime>& runtime) in InitializeGroupJsBridge() argument 45 if (!runtime) { in InitializeGroupJsBridge() 50 runtime_ = runtime; in InitializeGroupJsBridge() 89 shared_ptr<JsValue> JsiGroupJsBridge::ProcessJsRequest(const shared_ptr<JsRuntime>& runtime, in ProcessJsRequest() argument 99 return runtime->NewUndefined(); in ProcessJsRequest() 103 instance = static_cast<JsiEngineInstance*>(runtime->GetEmbedderData()); in ProcessJsRequest() 105 LOGE("invalid args, failed to get JsiEngineInstance from the runtime"); in ProcessJsRequest() 106 return runtime->NewUndefined(); in ProcessJsRequest() 110 declarativeInstance = static_cast<JsiDeclarativeEngineInstance*>(runtime->GetEmbedderData()); in ProcessJsRequest() 112 LOGE("invalid args, failed to get JsiDeclarativeEngineInstance from the runtime"); in ProcessJsRequest() 167 ProcessJsRequest(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) ProcessJsRequest() argument 247 ProcessJsRequestSync(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) ProcessJsRequestSync() argument 331 SetEventGroupCallBackFuncs(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& localEventCallbackFunc, int32_t callbackId, int32_t requestId) SetEventGroupCallBackFuncs() argument 376 ProcessParseJsError( ParseJsDataResult errorType, const shared_ptr<JsRuntime>& runtime, int32_t callbackId) ProcessParseJsError() argument 429 SerializationObjectToString( const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& val) SerializationObjectToString() argument 455 ParseJsPara(const shared_ptr<JsRuntime>& runtime, const std::vector<shared_ptr<JsValue>>& argv, int32_t beginIndex, int32_t requestId, std::vector<CodecData>& arguments) ParseJsPara() argument [all...] |
H A D | jsi_stepper_bridge.cpp | 21 shared_ptr<JsRuntime> runtime, const shared_ptr<JsValue>& valObject, StepperLabels& stepperLabel) in GetAttrLabel() 23 if (!runtime) { in GetAttrLabel() 24 LOGE("runtime is null"); in GetAttrLabel() 27 if (!valObject->IsObject(runtime)) { in GetAttrLabel() 33 valObject->GetPropertyNames(runtime, propertyNames, len); in GetAttrLabel() 35 shared_ptr<JsValue> key = propertyNames->GetElement(runtime, i); in GetAttrLabel() 40 std::string keyStr = key->ToString(runtime); in GetAttrLabel() 41 shared_ptr<JsValue> item = valObject->GetProperty(runtime, key); in GetAttrLabel() 46 if (item->IsString(runtime) || item->IsNumber(runtime)) { in GetAttrLabel() 20 GetAttrLabel( shared_ptr<JsRuntime> runtime, const shared_ptr<JsValue>& valObject, StepperLabels& stepperLabel) GetAttrLabel() argument [all...] |
/foundation/arkui/ace_engine/interfaces/inner_api/ace/ |
H A D | declarative_module_preloader.cpp | 26 void InitAceModule(void* runtime)
in InitAceModule() argument 39 entry(runtime);
in InitAceModule() 42 void DeclarativeModulePreloader::Preload(NativeEngine& runtime)
in Preload() argument 44 InitAceModule(reinterpret_cast<void*>(&runtime));
in Preload() 52 void InitAceModuleCard(void* runtime, const char* bundleName, const void* hapPathMap)
in InitAceModuleCard() argument 65 entry(runtime, bundleName, hapPathMap);
in InitAceModuleCard() 68 void DeclarativeModulePreloader::PreloadCard(NativeEngine& runtime, const std::string& bundleName,
in PreloadCard() argument 71 InitAceModuleCard(reinterpret_cast<void*>(&runtime), bundleName.c_str(),
in PreloadCard() 75 void ReloadAceModuleCard(void* runtime, const char* bundleName, const void* hapPathMap)
in ReloadAceModuleCard() argument 88 entry(runtime, bundleNam in ReloadAceModuleCard() 91 ReloadCard(NativeEngine& runtime, const std::string &bundleName, const std::map<std::string, std::string>& hapPathMap) ReloadCard() argument 102 InitAceModuleWorker(void* runtime) InitAceModuleWorker() argument 118 PreloadWorker(NativeEngine& runtime) PreloadWorker() argument [all...] |
/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/jsi/ |
H A D | jsi_pa_engine.cpp | 66 shared_ptr<JsValue> JsOnCreateFinish(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in JsOnCreateFinish() argument 69 return runtime->NewUndefined(); in JsOnCreateFinish() 73 shared_ptr<JsValue> JsHandleCallback(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in JsHandleCallback() argument 77 return runtime->NewUndefined(); in JsHandleCallback() 81 shared_ptr<JsValue> JsRunLoopOnce(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, in JsRunLoopOnce() argument 84 auto engineInstance = static_cast<JsiPaEngine*>(runtime->GetEmbedderData()); in JsRunLoopOnce() 87 return runtime->NewUndefined(); in JsRunLoopOnce() 92 return runtime->NewUndefined(); in JsRunLoopOnce() 96 runtime->ExecutePendingJob(); in JsRunLoopOnce() 97 return runtime in JsRunLoopOnce() 101 JsRunMicrotasks(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) JsRunMicrotasks() argument 108 AsyncFuncCallBack(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& thisObj, const std::vector<shared_ptr<JsValue>>& argv, int32_t argc) AsyncFuncCallBack() argument 439 auto runtime = GetJsRuntime(); LoadJs() local 564 shared_ptr<JsRuntime> runtime = GetJsRuntime(); GetPaFunc() local 594 shared_ptr<JsRuntime> runtime = GetJsRuntime(); CallFunc() local 647 shared_ptr<JsRuntime> runtime = GetJsRuntime(); CallFuncWithDefaultThis() local 719 shared_ptr<JsRuntime> runtime = GetJsRuntime(); CallFunc() local 780 shared_ptr<JsRuntime> runtime = GetJsRuntime(); CallAsyncFunc() local 880 shared_ptr<JsRuntime> runtime = GetJsRuntime(); StartData() local 897 shared_ptr<JsRuntime> runtime = GetJsRuntime(); DestroyApplication() local 906 shared_ptr<JsRuntime> runtime = GetJsRuntime(); Insert() local 964 shared_ptr<JsRuntime> runtime = GetJsRuntime(); Call() local 998 shared_ptr<JsRuntime> runtime = GetJsRuntime(); BatchInsert() local 1035 shared_ptr<JsRuntime> runtime = GetJsRuntime(); Query() local 1095 shared_ptr<JsRuntime> runtime = GetJsRuntime(); Update() local 1129 shared_ptr<JsRuntime> runtime = GetJsRuntime(); Delete() local 1158 shared_ptr<JsRuntime> runtime = GetJsRuntime(); GetType() local 1176 shared_ptr<JsRuntime> runtime = GetJsRuntime(); GetFileTypes() local 1206 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OpenFile() local 1225 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OpenRawFile() local 1244 shared_ptr<JsRuntime> runtime = GetJsRuntime(); NormalizeUri() local 1262 shared_ptr<JsRuntime> runtime = GetJsRuntime(); DenormalizeUri() local 1317 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnCommand() local 1326 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnCreate() local 1373 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnDelete() local 1382 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnTriggerEvent() local 1392 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnUpdate() local 1400 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnCastTemptoNormal() local 1417 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnVisibilityChanged() local 1425 shared_ptr<JsRuntime> runtime = GetJsRuntime(); OnAcquireFormState() local 1453 auto runtime = GetJsRuntime(); OnShare() local [all...] |
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/ |
H A D | form_extension_test.cpp | 26 #include "runtime.h" 61 * @tc.desc: The runtime is nullptr, and the verification of create succeeds. 66 std::unique_ptr<AbilityRuntime::Runtime> runtime; in HWTEST_F() local 67 auto formExtension = AbilityRuntime::FormExtension::Create(runtime); in HWTEST_F() 81 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); in HWTEST_F() local 82 auto formExtension = AbilityRuntime::FormExtension::Create(runtime); in HWTEST_F() 107 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); in HWTEST_F() local 108 auto formExtension = AbilityRuntime::FormExtension::Create(runtime); in HWTEST_F() 127 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); in HWTEST_F() local 128 auto formExtension = AbilityRuntime::FormExtension::Create(runtime); in HWTEST_F() 148 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 164 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 181 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 198 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 216 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 234 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 251 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 268 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 285 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local 303 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options); HWTEST_F() local [all...] |