Searched refs:touchHandle (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/input_event_client/src/ |
H A D | js_register_module.cpp | 293 static int32_t HandleTouchAction(napi_env env, napi_value touchHandle, in HandleTouchAction() argument 297 if (GetNamedPropertyInt32(env, touchHandle, "action", action) != RET_OK) { in HandleTouchAction() 320 static napi_value HandleTouchProperty(napi_env env, napi_value touchHandle) in HandleTouchProperty() argument 345 static void HandleTouchPropertyInt32(napi_env env, napi_value touchHandle, in HandleTouchPropertyInt32() argument 349 if (GetNamedPropertyInt32(env, touchHandle, "sourceType", sourceType) != RET_OK) { in HandleTouchPropertyInt32() 363 napi_value touchProperty = HandleTouchProperty(env, touchHandle); in HandleTouchPropertyInt32() 419 napi_value touchHandle = nullptr; in InjectTouchEvent() local 421 if (touchHandle == nullptr) { in InjectTouchEvent() 426 CHKRP(napi_typeof(env, touchHandle, &tmpType), TYPEOF); in InjectTouchEvent() 436 int32_t action = HandleTouchAction(env, touchHandle, pointerEvent, item); in InjectTouchEvent() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/transform/ |
H A D | render_transform.cpp | 492 auto touchHandle = [weak = AceType::WeakClaim(this)]( in SetTouchHandle() local 499 …rawRecognizer_->SetOnTouchDown(std::bind(touchHandle, std::placeholders::_1, TouchType::DOWN, type… in SetTouchHandle() 500 … rawRecognizer_->SetOnTouchUp(std::bind(touchHandle, std::placeholders::_1, TouchType::UP, type)); in SetTouchHandle() 501 …rawRecognizer_->SetOnTouchCancel(std::bind(touchHandle, std::placeholders::_1, TouchType::CANCEL, … in SetTouchHandle()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/web/ |
H A D | web_pattern_test.cpp | 359 … std::shared_ptr<NWebTouchHandleState> touchHandle = std::make_shared<NWebTouchHandleStateMock>(); variable 360 g_webPattern->ComputeTouchHandleRect(touchHandle); 362 g_webPattern->ComputeTouchHandleRect(touchHandle);
|
H A D | web_pattern_focus_test_ng.cpp | 1499 auto touchHandle = std::make_shared<NWeb::CustomNWebTouchHandleState>(); variable 1500 touchHandle->SetX(10.0); 1501 touchHandle->SetY(20.0); 1502 touchHandle->SetEdgeHeight(5.0); 1504 RectF paintRect = webPattern->ComputeTouchHandleRect(touchHandle);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/ |
H A D | web_pattern.h | 927 RectF ComputeTouchHandleRect(std::shared_ptr<OHOS::NWeb::NWebTouchHandleState> touchHandle);
|
H A D | web_pattern.cpp | 3619 …F WebPattern::ComputeTouchHandleRect(std::shared_ptr<OHOS::NWeb::NWebTouchHandleState> touchHandle) in ComputeTouchHandleRect() argument 3621 CHECK_NULL_RETURN(touchHandle, RectF()); in ComputeTouchHandleRect() 3625 float edgeHeight = touchHandle->GetEdgeHeight(); in ComputeTouchHandleRect() 3626 float x = touchHandle->GetX(); in ComputeTouchHandleRect() 3627 float y = touchHandle->GetY(); in ComputeTouchHandleRect()
|