From 4dd57ad31d585a6c84e4789e6cf98b56fe32a909 Mon Sep 17 00:00:00 2001 From: qianqiuhong Date: Sat, 5 Apr 2025 15:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=AE=E5=BC=82API=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qianqiuhong --- arkui/ace_engine/native/drag_and_drop.h | 45 ------------------------ arkui/ace_engine/native/libace.ndk.json | 16 --------- arkui/ace_engine/native/native_node.h | 20 ----------- arkui/ace_engine/native/native_type.h | 5 --- arkui/ace_engine/native/ui_input_event.h | 12 ------- 5 files changed, 98 deletions(-) diff --git a/arkui/ace_engine/native/drag_and_drop.h b/arkui/ace_engine/native/drag_and_drop.h index c49081767..45e0281ab 100644 --- a/arkui/ace_engine/native/drag_and_drop.h +++ b/arkui/ace_engine/native/drag_and_drop.h @@ -841,51 +841,6 @@ ArkUI_DragEvent* OH_ArkUI_DragAndDropInfo_GetDragEvent(ArkUI_DragAndDropInfo* dr */ int32_t OH_ArkUI_StartDrag(ArkUI_DragAction* dragAction); -/** - * @brief Request to delay the drop end handling for a while to wait until the process result - * is really conformed by application, the result need to be notified back to system through - * {@link OH_ArkUI_NotifyDragResult} interface. And when all the handling done, the - * {@link OH_ArkUI_NotifyDragEndPendingDone} should be called. - * Please be aware, the maximum pending time is 2 seconds; - * - * @param event Indicates the pointer to an ArkUI_DragEvent object. - * @param requestIdentify Indicates the Identify for the request initiated by this method, it's a number generated - by system automatically, and it's an out parameter too, so one valid address needed. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. - * Returns {@link ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED} if current is not during the drop handing. - * @since 18 - */ -int32_t OH_ArkUI_DragEvent_RequestDragEndPending(ArkUI_DragEvent* event, int32_t* requestIdentify); - -/** - * @brief Notify the system final drag result, the request identify will be checked, it should be the same - * as the one returned by {@link OH_ArkUI_DragEvent_RequestDragEndPending} interface, if it's not, - * the calling will be ignored. - * - * @param requestIdentify The identify returned by {@link OH_ArkUI_DragEvent_RequestDragEndPending} interface. - * @param result Indicates the drag result. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. - * Returns {@link ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED} if current is not during the drop handing. - * @since 18 - */ -int32_t OH_ArkUI_NotifyDragResult(int32_t requestIdentify, ArkUI_DragResult result); - -/** - * @brief Notify the system all handling done, the drag end pending can be finished. - * - * @param requestIdentify The identify returned by {@link OH_ArkUI_DragEvent_RequestDragEndPending} interface. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. - * Returns {@link ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED} if current is not during the drop handing. - * @since 18 - */ -int32_t OH_ArkUI_NotifyDragEndPendingDone(int32_t requestIdentify); - #ifdef __cplusplus }; #endif diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 876d544ea..74d7ca154 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -507,10 +507,6 @@ "first_introduced": "12", "name": "OH_ArkUI_PointerEvent_GetTiltY" }, - { - "first_introduced": "18", - "name": "OH_ArkUI_PointerEvent_GetRollAngle" - }, { "first_introduced": "15", "name": "OH_ArkUI_PointerEvent_GetInteractionHand" @@ -3015,18 +3011,6 @@ "first_introduced": "17", "name": "OH_ArkUI_AxisEvent_GetScrollStep" }, - { - "first_introduced": "18", - "name": "OH_ArkUI_DragEvent_RequestDragEndPending" - }, - { - "first_introduced": "18", - "name": "OH_ArkUI_NotifyDragResult" - }, - { - "first_introduced": "18", - "name": "OH_ArkUI_NotifyDragEndPendingDone" - }, { "first_introduced": "18", "name": "OH_ArkUI_GestureInterrupter_GetUserData" diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 7118d38f3..43c7d60e3 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1875,26 +1875,6 @@ typedef enum { */ NODE_BACKDROP_BLUR = 99, - /** - * @brief Defines the background image resizable attribute, which can be set, reset, - * and obtained as required through APIs. - * - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n - * .value[0].f32: width of the left edge. The unit is vp. \n - * .value[1].f32: width of the top edge. The unit is vp. \n - * .value[2].f32: width of the right edge. The unit is vp. \n - * .value[3].f32: width of the bottom edge. The unit is vp. \n - * \n - * Format of the return value {@link ArkUI_AttributeItem}:\n - * .value[0].f32: width of the left edge. The unit is vp. \n - * .value[1].f32: width of the top edge. The unit is vp. \n - * .value[2].f32: width of the right edge. The unit is vp. \n - * .value[3].f32: width of the bottom edge. The unit is vp. \n - * - * @since 18 - */ - NODE_BACKGROUND_IMAGE_RESIZABLE_WITH_SLICE = 100, - /** * @brief Sets the next focus node. * diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index e05d40ec2..a507e9be3 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -2247,11 +2247,6 @@ typedef enum { * @since 18 */ ARKUI_ERROR_CODE_RECOGNIZER_TYPE_NOT_SUPPORTED = 180102, - /** - * @error operation is not allowed for current drag drop pharse. - * @since 18 - */ - ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED = 190004, } ArkUI_ErrorCode; /** diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index d7de35d36..9834fd2eb 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -505,18 +505,6 @@ float OH_ArkUI_PointerEvent_GetTiltX(const ArkUI_UIInputEvent* event, uint32_t p */ float OH_ArkUI_PointerEvent_GetTiltY(const ArkUI_UIInputEvent* event, uint32_t pointerIndex); -/** - * @brief Obtains the rotation angle of the stylus around the z-axis from a UI input event. - * - * @param event Pointer to the UI input event. - * @param rollAngle Rotation angle of the stylus around the z-axis. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. - * @since 18 - */ -int32_t OH_ArkUI_PointerEvent_GetRollAngle(const ArkUI_UIInputEvent* event, double* rollAngle); - /** * @brief Obtains the width of the touch area from a directional input event (for example, a touch event). * -- Gitee