/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | drag_adapter_impl.cpp | 24 ArkUIDragAction* dragAction, std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> internalDragAction) in DragActionConvert() 26 CHECK_NULL_VOID(dragAction); in DragActionConvert() 28 internalDragAction->pointer = dragAction->pointerId; in DragActionConvert() 29 internalDragAction->size = dragAction->size; in DragActionConvert() 30 internalDragAction->previewOption.isScaleEnabled = dragAction->dragPreviewOption.isScaleEnabled; in DragActionConvert() 32 internalDragAction->previewOption.isDefaultShadowEnabled = dragAction->dragPreviewOption.isDefaultShadowEnabled; in DragActionConvert() 33 internalDragAction->previewOption.isDefaultRadiusEnabled = dragAction->dragPreviewOption.isDefaultRadiusEnabled; in DragActionConvert() 36 dragAction->dragPreviewOption.defaultAnimationBeforeLifting; in DragActionConvert() 37 internalDragAction->previewOption.isMultiSelectionEnabled = dragAction->dragPreviewOption.isMultiSelectionEnabled; in DragActionConvert() 38 internalDragAction->previewOption.isNumber = dragAction in DragActionConvert() 23 DragActionConvert( ArkUIDragAction* dragAction, std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> internalDragAction) DragActionConvert() argument 52 StartDrag(ArkUIDragAction* dragAction) StartDrag() argument 89 RegisterStatusListener(ArkUIDragAction* dragAction, void* userData, DragStatusCallback listener) RegisterStatusListener() argument 96 UnRegisterStatusListener(ArkUIDragAction* dragAction) UnRegisterStatusListener() argument 110 auto* dragAction = new ArkUIDragAction(); CreateDragActionWithNode() local 119 auto* dragAction = new ArkUIDragAction(); CreateDragActionWithContext() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/ |
H A D | drag_drop_func_wrapper.cpp | 56 std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction, std::vector<ShadowInfoCore>& shadowInfos) in GetShadowInfoArray() 58 auto minScaleWidth = NG::DragDropFuncWrapper::GetScaleWidth(dragAction->instanceId); in GetShadowInfoArray() 59 for (auto& pixelMap : dragAction->pixelMapList) { in GetShadowInfoArray() 62 if (pixelMap->GetWidth() > minScaleWidth && dragAction->previewOption.isScaleEnabled) { in GetShadowInfoArray() 65 auto pixelMapScale = dragAction->windowScale * scale; in GetShadowInfoArray() 70 double x = dragAction->touchPointX; in GetShadowInfoArray() 71 double y = dragAction->touchPointY; in GetShadowInfoArray() 72 if (!dragAction->hasTouchPoint) { in GetShadowInfoArray() 81 void PostStopDrag(std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction, const RefPtr<Container>& container) in PostStopDrag() argument 88 [dragAction, windowI in PostStopDrag() 55 GetShadowInfoArray( std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction, std::vector<ShadowInfoCore>& shadowInfos) GetShadowInfoArray() argument 99 ConfirmCurPointerEventInfo( std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction, const RefPtr<Container>& container) ConfirmCurPointerEventInfo() argument 130 EnvelopedDragData( std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction, std::optional<DragDataCore>& dragData) EnvelopedDragData() argument 178 HandleCallback(std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction, const OHOS::Ace::DragNotifyMsg& dragNotifyMsg, const DragAdapterStatus& dragStatus) HandleCallback() argument 203 CheckStartAction(std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction, const RefPtr<Container>& container, const RefPtr<DragDropManager>& manager) CheckStartAction() argument 224 StartDragAction(std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction) StartDragAction() argument [all...] |
H A D | drag_drop_func_wrapper.h | 31 static int32_t StartDragAction(std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction> dragAction);
|
H A D | drag_drop_manager.h | 432 void SetDragAction(const std::shared_ptr<OHOS::Ace::NG::ArkUIInteralDragAction>& dragAction) in SetDragAction() argument 434 dragAction_ = dragAction; in SetDragAction()
|
/foundation/arkui/ace_engine/interfaces/native/ |
H A D | drag_and_drop.h | 672 * @param dragAction Indicates the pointer to the target drag action object. 675 void OH_ArkUI_DragAction_Dispose(ArkUI_DragAction* dragAction); 681 * @param dragAction Indicates the pointer to the target drag action object. 688 int32_t OH_ArkUI_DragAction_SetPointerId(ArkUI_DragAction* dragAction, int32_t pointer); 693 * @param dragAction Indicates the pointer to the target drag action object. 702 ArkUI_DragAction* dragAction, OH_PixelmapNative* pixelmapArray[], int32_t size); 707 * @param dragAction Indicates the pointer to the target drag action object. 714 int32_t OH_ArkUI_DragAction_SetTouchPointX(ArkUI_DragAction* dragAction, float x); 719 * @param dragAction Indicates the pointer to the target drag action object. 726 int32_t OH_ArkUI_DragAction_SetTouchPointY(ArkUI_DragAction* dragAction, floa [all...] |
/foundation/arkui/ace_engine/interfaces/native/event/ |
H A D | drag_and_drop_impl.cpp | 133 void OH_ArkUI_DragAction_Dispose(ArkUI_DragAction* dragAction) in OH_ArkUI_DragAction_Dispose() argument 135 if (!dragAction) { in OH_ArkUI_DragAction_Dispose() 138 delete reinterpret_cast<ArkUIDragAction*>(dragAction); in OH_ArkUI_DragAction_Dispose() 139 dragAction = nullptr; in OH_ArkUI_DragAction_Dispose() 142 int32_t OH_ArkUI_DragAction_SetPointerId(ArkUI_DragAction* dragAction, int32_t pointer) in OH_ArkUI_DragAction_SetPointerId() argument 144 if (!dragAction) { in OH_ArkUI_DragAction_SetPointerId() 147 auto* dragActions = reinterpret_cast<ArkUIDragAction*>(dragAction); in OH_ArkUI_DragAction_SetPointerId() 159 int32_t OH_ArkUI_DragAction_SetPixelMaps(ArkUI_DragAction* dragAction, OH_PixelmapNative* pixelmapArray[], int32_t size) in OH_ArkUI_DragAction_SetPixelMaps() argument 161 if (!dragAction || !pixelmapArray) { in OH_ArkUI_DragAction_SetPixelMaps() 164 auto* dragActions = reinterpret_cast<ArkUIDragAction*>(dragAction); in OH_ArkUI_DragAction_SetPixelMaps() 183 OH_ArkUI_DragAction_SetTouchPointX(ArkUI_DragAction* dragAction, float x) OH_ArkUI_DragAction_SetTouchPointX() argument 197 OH_ArkUI_DragAction_SetTouchPointY(ArkUI_DragAction* dragAction, float y) OH_ArkUI_DragAction_SetTouchPointY() argument 211 OH_ArkUI_DragAction_SetData(ArkUI_DragAction* dragAction, OH_UdmfData* data) OH_ArkUI_DragAction_SetData() argument 221 OH_ArkUI_DragAction_SetDragPreviewOption(ArkUI_DragAction* dragAction, ArkUI_DragPreviewOption* option) OH_ArkUI_DragAction_SetDragPreviewOption() argument 235 OH_ArkUI_DragAction_RegisterStatusListener(ArkUI_DragAction* dragAction, void* userData, void (*listener)(ArkUI_DragAndDropInfo* dragAndDropInfo, void* userData)) OH_ArkUI_DragAction_RegisterStatusListener() argument 247 OH_ArkUI_DragAction_UnregisterStatusListener(ArkUI_DragAction* dragAction) OH_ArkUI_DragAction_UnregisterStatusListener() argument 277 OH_ArkUI_StartDrag(ArkUI_DragAction* dragAction) OH_ArkUI_StartDrag() argument [all...] |
/foundation/arkui/ace_engine/test/unittest/interfaces/ |
H A D | drag_and_drop_test.cpp | 75 * @tc.steps: step1.create dragAction. in HWTEST_F() 83 auto* dragAction = OH_ArkUI_CreateDragActionWithNode(rootNode); in HWTEST_F() local 84 EXPECT_NE(dragAction, nullptr); in HWTEST_F() 85 EXPECT_EQ(OH_ArkUI_DragAction_SetPointerId(dragAction, 0), ARKUI_ERROR_CODE_NO_ERROR); in HWTEST_F() 86 EXPECT_EQ(OH_ArkUI_DragAction_SetTouchPointX(dragAction, 1.0), ARKUI_ERROR_CODE_NO_ERROR); in HWTEST_F() 87 EXPECT_EQ(OH_ArkUI_DragAction_SetTouchPointY(dragAction, 1.0), ARKUI_ERROR_CODE_NO_ERROR); in HWTEST_F() 88 auto* interalDragAction = reinterpret_cast<ArkUIDragAction*>(dragAction); in HWTEST_F() 93 dragAction, nullptr, [](ArkUI_DragAndDropInfo* dragAndDropInfo, void* userData) -> void { in HWTEST_F() 98 OH_ArkUI_DragAction_UnregisterStatusListener(dragAction); in HWTEST_F() 99 EXPECT_EQ(OH_ArkUI_StartDrag(dragAction), ARKUI_ERROR_CODE_NO_ERRO in HWTEST_F() 114 auto dragAction = OH_ArkUI_CreateDragActionWithContext(uiContext); HWTEST_F() local [all...] |
/foundation/multimodalinput/input/intention/drag/data/src/ |
H A D | drag_params.cpp | 331 GetDragActionReply::GetDragActionReply(DragAction dragAction) in GetDragActionReply() argument 332 : dragAction_(dragAction) in GetDragActionReply() 342 int32_t dragAction { -1 }; in Unmarshalling() 343 if (!parcel.ReadInt32(dragAction) || in Unmarshalling() 344 (dragAction < static_cast<int32_t>(DragAction::INVALID)) || in Unmarshalling() 345 (dragAction > static_cast<int32_t>(DragAction::COPY))) { in Unmarshalling() 348 dragAction_ = static_cast<DragAction>(dragAction); in Unmarshalling()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/ |
H A D | js_drag_controller.cpp | 109 DragAction *dragAction = nullptr; member 132 asyncCtx_->dragAction = nullptr; in ~DragAction() 158 DragAction* dragAction = static_cast<DragAction*>(data); in NapiSerializer() 159 if (dragAction != nullptr) { in NapiSerializer() 160 dragAction->DeleteRef(); in NapiSerializer() 161 delete dragAction; in NapiSerializer() 190 asyncCtx_->dragAction = nullptr; in DeleteRef() 211 DragAction* dragAction = ConvertDragAction(env, thisVar); in On() local 212 if (!dragAction) { in On() 217 auto iter = dragAction in On() 239 DragAction* dragAction = ConvertDragAction(env, thisVar); Off() local 275 DragAction* dragAction = ConvertDragAction(env, thisVar); StartDrag() local 348 DragAction* dragAction = nullptr; ConvertDragAction() local 1705 DragAction* dragAction = new DragAction(dragAsyncContext); JSCreateDragAction() local [all...] |
/foundation/multimodalinput/input/intention/drag/server/src/ |
H A D | drag_server.cpp | 410 DragAction dragAction {}; in GetDragAction() 412 int32_t ret = env_->GetDragManager().GetDragAction(dragAction); in GetDragAction() 417 GetDragActionReply dragActionReply { dragAction }; in GetDragAction()
|
/foundation/multimodalinput/input/intention/drag/client/include/ |
H A D | drag_client.h | 61 int32_t GetDragAction(ITunnelClient &tunnel, DragAction &dragAction);
|
/foundation/multimodalinput/input/intention/prototype/include/ |
H A D | i_drag_manager.h | 55 virtual int32_t GetDragAction(DragAction &dragAction) const = 0;
|
/foundation/multimodalinput/input/intention/frameworks/client/include/ |
H A D | intention_manager.h | 80 int32_t GetDragAction(DragAction &dragAction);
|
/foundation/multimodalinput/input/intention/frameworks/client/src/ |
H A D | intention_manager.cpp | 354 int32_t IntentionManager::GetDragAction(DragAction &dragAction) in GetDragAction() argument 357 return drag_.GetDragAction(*tunnel_, dragAction); in GetDragAction()
|
/foundation/multimodalinput/input/intention/drag/data/include/ |
H A D | drag_params.h | 212 explicit GetDragActionReply(DragAction dragAction);
|
/foundation/multimodalinput/input/intention/drag/client/src/ |
H A D | drag_client.cpp | 372 int32_t DragClient::GetDragAction(ITunnelClient &tunnel, DragAction &dragAction) in GetDragAction() argument 382 dragAction = reply.dragAction_; in GetDragAction()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsUIContext.js | 147 let dragAction = this.ohos_dragController.createDragAction(customs, dragInfo); 149 return dragAction;
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/ |
H A D | mock_web_delegate.cpp | 937 void WebDelegate::HandleDragEvent(int32_t x, int32_t y, const DragAction& dragAction) in HandleDragEvent() argument
|
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_delegate.h | 822 void HandleDragEvent(int32_t x, int32_t y, const DragAction& dragAction);
|
H A D | web_delegate.cpp | 5858 void WebDelegate::HandleDragEvent(int32_t x, int32_t y, const DragAction& dragAction) in HandleDragEvent() argument 5862 std::make_shared<NWebDragEventImpl>(x, y, static_cast<OHOS::NWeb::DragAction>(dragAction)); in HandleDragEvent()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/arkoala/ |
H A D | arkoala_api.h | 5306 ArkUI_Int32 (*startDrag)(ArkUIDragAction* dragAction); 5307 void (*registerStatusListener)(ArkUIDragAction* dragAction, void* userData, DragStatusCallback listener); 5308 void (*unregisterStatusListener)(ArkUIDragAction* dragAction);
|