diff --git a/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp b/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp index 93b4aa27a06bcc90b25d870a211e2ace8395f4ad..0124c0cfebb5a930bdde470c161e1c1fa703789b 100644 --- a/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp +++ b/frameworks/core/interfaces/native/implementation/common_method_modifier.cpp @@ -1858,8 +1858,6 @@ void Width1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetWidth1(frameNode, convValue); } void Height0Impl(Ark_NativePointer node, const Opt_Length* value) @@ -1887,8 +1885,6 @@ void Height1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetHeight1(frameNode, convValue); } void DrawModifierImpl(Ark_NativePointer node, const Opt_DrawModifier* value) @@ -2099,8 +2095,6 @@ void BackgroundColor1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetBackgroundColor1(frameNode, convValue); } void PixelRoundImpl(Ark_NativePointer node, const Opt_PixelRoundPolicy* value) @@ -2218,32 +2212,24 @@ void VisualEffectImpl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetVisualEffect(frameNode, convValue); } void BackgroundFilterImpl(Ark_NativePointer node, const Opt_Filter* value) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetBackgroundFilter(frameNode, convValue); } void ForegroundFilterImpl(Ark_NativePointer node, const Opt_Filter* value) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetForegroundFilter(frameNode, convValue); } void CompositingFilterImpl(Ark_NativePointer node, const Opt_Filter* value) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetCompositingFilter(frameNode, convValue); } void Opacity0Impl(Ark_NativePointer node, const Opt_Union_Number_Resource* value) @@ -2543,8 +2529,6 @@ void Outline1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetOutline1(frameNode, convValue); } void OutlineStyle0Impl(Ark_NativePointer node, const Opt_Union_OutlineStyle_EdgeOutlineStyles* value) @@ -2559,8 +2543,6 @@ void OutlineStyle1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetOutlineStyle1(frameNode, convValue); } void OutlineWidth0Impl(Ark_NativePointer node, const Opt_Union_Dimension_EdgeOutlineWidths* value) @@ -2575,8 +2557,6 @@ void OutlineWidth1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetOutlineWidth1(frameNode, convValue); } void OutlineColor0Impl(Ark_NativePointer node, const Opt_Union_ResourceColor_EdgeColors_LocalizedEdgeColors* value) @@ -2591,8 +2571,6 @@ void OutlineColor1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetOutlineColor1(frameNode, convValue); } void OutlineRadius0Impl(Ark_NativePointer node, const Opt_Union_Dimension_OutlineRadiuses* value) @@ -2607,8 +2585,6 @@ void OutlineRadius1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetOutlineRadius1(frameNode, convValue); } void ForegroundColor0Impl(Ark_NativePointer node, const Opt_Union_ResourceColor_ColoringStrategy* value) @@ -2711,8 +2687,6 @@ void OnHoverMoveImpl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetOnHoverMove(frameNode, convValue); } void OnAccessibilityHoverImpl(Ark_NativePointer node, const Opt_AccessibilityCallback* value) @@ -3262,8 +3236,6 @@ void Saturate1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetSaturate1(frameNode, convValue); } void Sepia0Impl(Ark_NativePointer node, const Opt_Number* value) @@ -3279,8 +3251,6 @@ void Sepia1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetSepia1(frameNode, convValue); } void Invert0Impl(Ark_NativePointer node, const Opt_Union_Number_InvertOptions* value) @@ -3298,8 +3268,6 @@ void Invert1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetInvert1(frameNode, convValue); } void HueRotate0Impl(Ark_NativePointer node, const Opt_Union_Number_String* value) @@ -3362,9 +3330,6 @@ void UseEffect2Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(useEffect); - //auto convValue = Converter::OptConvert(useEffect); // for enums - //CommonMethodModelNG::SetUseEffect2(frameNode, convValue); } void RenderGroup0Impl(Ark_NativePointer node, const Opt_Boolean* value) @@ -3383,8 +3348,6 @@ void RenderGroup1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetRenderGroup1(frameNode, convValue); } void Freeze0Impl(Ark_NativePointer node, const Opt_Boolean* value) @@ -4327,16 +4290,12 @@ void Clip1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetClip1(frameNode, convValue); } void Clip2Impl(Ark_NativePointer node, const Opt_Boolean* value) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetClip1(frameNode, convValue); } void ClipShape0Impl(Ark_NativePointer node, const Opt_Union_CircleShape_EllipseShape_PathShape_RectShape* value) @@ -4389,8 +4348,6 @@ void Mask2Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetMask1(frameNode, convValue); } void MaskShape0Impl(Ark_NativePointer node, const Opt_Union_CircleShape_EllipseShape_PathShape_RectShape* value) @@ -4480,8 +4437,6 @@ void StateStylesImpl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetStateStyles(frameNode, convValue); LOGE("Ark_StateStyles contains a CustomObject's which is not supported"); } void RestoreIdImpl(Ark_NativePointer node, @@ -4804,8 +4759,6 @@ void ReuseIdImpl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetReuseId(frameNode, convValue); LOGE("ARKOALA CommonMethod::ReuseIdImpl: Method not implemented in ViewAbstract!"); } void ReuseImpl(Ark_NativePointer node, @@ -4813,8 +4766,6 @@ void ReuseImpl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetReuse(frameNode, convValue); } void RenderFit0Impl(Ark_NativePointer node, const Opt_RenderFit* value) @@ -4837,8 +4788,6 @@ void GestureModifierImpl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = value ? Converter::OptConvert(*value) : std::nullopt; - //CommonMethodModelNG::SetGestureModifier(frameNode, convValue); } void BackgroundBrightness0Impl(Ark_NativePointer node, const Opt_BackgroundBrightnessOptions* value) @@ -5033,9 +4982,6 @@ void CustomPropertyImpl(Ark_NativePointer node, auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); LOGE("CommonMethodModifier::CustomPropertyImpl is not implemented"); - //auto convValue = Converter::Convert(name); - //auto convValue = Converter::OptConvert(name); // for enums - //CommonMethodModelNG::SetCustomProperty(frameNode, convValue); } void ExpandSafeAreaImpl(Ark_NativePointer node, const Opt_Array_SafeAreaType* types, @@ -5104,9 +5050,6 @@ void BackgroundImage1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(src); - //auto convValue = Converter::OptConvert(src); // for enums - //CommonMethodModelNG::SetBackgroundImage1(frameNode, convValue); } void BackgroundBlurStyle0Impl(Ark_NativePointer node, const Opt_BlurStyle* value, @@ -5273,17 +5216,11 @@ void LinearGradientBlur1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(blurRadius); - //auto convValue = Converter::OptConvert(blurRadius); // for enums - //CommonMethodModelNG::SetLinearGradientBlur1(frameNode, convValue); } void SystemBarEffectImpl(Ark_NativePointer node) { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(undefined); - //auto convValue = Converter::OptConvert(undefined); // for enums - //CommonMethodModelNG::SetSystemBarEffect(frameNode, convValue); LOGE("The `ViewAbstract::SetSystemBarEffect(frameNode, enable)` function must take two parameters"); } void BackdropBlur0Impl(Ark_NativePointer node, @@ -5431,9 +5368,6 @@ void BlendMode1Impl(Ark_NativePointer node, { auto frameNode = reinterpret_cast(node); CHECK_NULL_VOID(frameNode); - //auto convValue = Converter::Convert(mode); - //auto convValue = Converter::OptConvert(mode); // for enums - //CommonMethodModelNG::SetBlendMode1(frameNode, convValue); } void AdvancedBlendModeImpl(Ark_NativePointer node, const Opt_Union_BlendMode_Blender* effect,