Home
last modified time | relevance | path

Searched refs:NestedScrollMode (Results 1 - 25 of 41) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_properties.h43 enum class NestedScrollMode { class
113 NestedScrollMode forward;
114 NestedScrollMode backward;
118 return forward != NestedScrollMode::SELF_ONLY || backward != NestedScrollMode::SELF_ONLY; in NeedParent()
123 return forward ? this->forward != NestedScrollMode::SELF_ONLY : backward != NestedScrollMode::SELF_ONLY; in NeedParent()
142 std::string GetNestedScrollModeStr(NestedScrollMode mode) const in GetNestedScrollModeStr()
145 case NestedScrollMode::SELF_ONLY: in GetNestedScrollModeStr()
146 return "NestedScrollMode in GetNestedScrollModeStr()
[all...]
H A Dnestable_scroll_container.h160 .forward = NestedScrollMode::SELF_ONLY,
161 .backward = NestedScrollMode::SELF_ONLY,
/foundation/arkui/ace_engine/test/unittest/core/pattern/refresh/
H A Drefresh_nested_test_ng.cpp160 EXPECT_EQ(swiperNestedOption.forward, NestedScrollMode::PARENT_FIRST); in HWTEST_F()
161 EXPECT_EQ(swiperNestedOption.backward, NestedScrollMode::SELF_FIRST); in HWTEST_F()
226 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
227 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
239 EXPECT_EQ(swiperNestedOption.forward, NestedScrollMode::PARENT_FIRST); in HWTEST_F()
240 EXPECT_EQ(swiperNestedOption.backward, NestedScrollMode::SELF_FIRST); in HWTEST_F()
242 EXPECT_EQ(refreshNestedOption.forward, NestedScrollMode::SELF_FIRST); in HWTEST_F()
243 EXPECT_EQ(refreshNestedOption.backward, NestedScrollMode::SELF_FIRST); in HWTEST_F()
271 * @tc.desc: test HandleScroll when NestedScrollMode is SELF_ONLY in VERSION_TWELVE
298 * @tc.desc: test HandleScroll when NestedScrollMode i
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll/
H A Dscroll_nested_test_ng.cpp83 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
84 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
164 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
165 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
242 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
243 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
319 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
320 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
373 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
374 .backward = NestedScrollMode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_event_test_ng.cpp572 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
573 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
601 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
602 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
631 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
632 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
667 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
668 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
829 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
830 .backward = NestedScrollMode in HWTEST_F()
[all...]
H A Dswiper_attr_test_ng.cpp925 EXPECT_EQ(nestedScroll.forward, NestedScrollMode::SELF_ONLY); in HWTEST_F()
926 EXPECT_EQ(nestedScroll.backward, NestedScrollMode::SELF_ONLY); in HWTEST_F()
941 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
942 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
951 EXPECT_EQ(nestedScroll.forward, NestedScrollMode::SELF_FIRST); in HWTEST_F()
952 EXPECT_EQ(nestedScroll.backward, NestedScrollMode::SELF_FIRST); in HWTEST_F()
1300 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
1301 .backward = NestedScrollMode::SELF_ONLY, in HWTEST_F()
1314 .forward = NestedScrollMode::SELF_ONLY, in HWTEST_F()
1315 .backward = NestedScrollMode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_nested_test_ng.cpp308 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
309 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
367 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
368 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
444 .forward = NestedScrollMode::PARENT_FIRST, in HWTEST_F()
445 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
529 .forward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
530 .backward = NestedScrollMode::SELF_FIRST, in HWTEST_F()
587 .forward = NestedScrollMode::PARALLEL, in HWTEST_F()
588 .backward = NestedScrollMode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_water_flow.cpp349 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
350 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
360 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
361 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
367 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
368 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
372 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll()
373 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
H A Djs_scroll.cpp460 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
461 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
470 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
471 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
476 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
477 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
480 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll()
481 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
H A Djs_grid.cpp631 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
632 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
641 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
642 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
647 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
648 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
651 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll()
652 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
H A Djs_list.cpp459 .forward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
460 .backward = NestedScrollMode::SELF_ONLY, in SetNestedScroll()
469 if (froward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
470 froward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
475 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
476 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
479 nestedOpt.forward = static_cast<NestedScrollMode>(froward); in SetNestedScroll()
480 nestedOpt.backward = static_cast<NestedScrollMode>(backward); in SetNestedScroll()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_web_ffi.cpp339 NestedScrollMode GetNestedScrollModeValue(int32_t value) in GetNestedScrollModeValue()
341 auto ret = NestedScrollMode::SELF_ONLY; in GetNestedScrollModeValue()
344 ret = NestedScrollMode::SELF_ONLY; in GetNestedScrollModeValue()
347 ret = NestedScrollMode::SELF_FIRST; in GetNestedScrollModeValue()
350 ret = NestedScrollMode::PARENT_FIRST; in GetNestedScrollModeValue()
353 ret = NestedScrollMode::PARALLEL; in GetNestedScrollModeValue()
H A Dcj_list_ffi.cpp194 NestedScrollOptions localNestedScrollOptions = {.forward = NestedScrollMode(scrollForward), in FfiOHOSAceFrameworkListSetNestedScroll()
195 .backward = NestedScrollMode(scrollBackward)}; in FfiOHOSAceFrameworkListSetNestedScroll()
H A Dcj_scroll_ffi.cpp205 NestedScrollOptions localNestedScrollOptions = {.forward = NestedScrollMode(scrollForward), in FfiOHOSAceFrameworkScrollNestedScroll()
206 .backward = NestedScrollMode(scrollBackward)}; in FfiOHOSAceFrameworkScrollNestedScroll()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/
H A Drefresh_pattern.cpp1172 if (parent && nestedScroll.forward == NestedScrollMode::PARENT_FIRST) { in HandleScroll()
1175 } else if (parent && nestedScroll.forward == NestedScrollMode::SELF_FIRST) { in HandleScroll()
1182 bool selfScroll = !parent || ((Negative(offset) && (nestedScroll.forward == NestedScrollMode::SELF_ONLY || in HandleScroll()
1183 nestedScroll.forward == NestedScrollMode::PARALLEL)) || in HandleScroll()
1184 (Positive(offset) && (nestedScroll.backward == NestedScrollMode::SELF_ONLY || in HandleScroll()
1185 nestedScroll.backward == NestedScrollMode::PARALLEL))); in HandleScroll()
1191 bool parentScroll = parent && ((Negative(offset) && nestedScroll.forward == NestedScrollMode::SELF_FIRST) || in HandleScroll()
1192 (Positive(offset) && nestedScroll.backward == NestedScrollMode::SELF_FIRST)); in HandleScroll()
1216 (nestedScroll.forward != NestedScrollMode::PARALLEL || nestedScroll.backward != NestedScrollMode in OnScrollStartRecursive()
[all...]
H A Drefresh_model_ng.cpp50 .forward = NestedScrollMode::PARENT_FIRST, in Create()
51 .backward = NestedScrollMode::SELF_FIRST, in Create()
67 .forward = NestedScrollMode::PARENT_FIRST, in CreateFrameNode()
68 .backward = NestedScrollMode::SELF_FIRST, in CreateFrameNode()
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/
H A Dweb_pattern_keyboard_test_ng.cpp66 nestedScroll.scrollUp = NestedScrollMode::SELF_ONLY; in HWTEST_F()
67 nestedScroll.scrollDown = NestedScrollMode::SELF_ONLY; in HWTEST_F()
302 EXPECT_FALSE(webPattern->CheckParentScroll(1.0f, NestedScrollMode::PARALLEL)); in HWTEST_F()
327 EXPECT_FALSE(webPattern->CheckParentScroll(1.0f, NestedScrollMode::PARALLEL)); in HWTEST_F()
352 EXPECT_FALSE(webPattern->CheckParentScroll(-1.0f, NestedScrollMode::PARALLEL)); in HWTEST_F()
377 EXPECT_FALSE(webPattern->CheckParentScroll(-1.0f, NestedScrollMode::PARALLEL)); in HWTEST_F()
401 EXPECT_TRUE(webPattern->CheckParentScroll(1.0f, NestedScrollMode::SELF_ONLY)); in HWTEST_F()
425 EXPECT_TRUE(webPattern->CheckParentScroll(-1.0f, NestedScrollMode::SELF_ONLY)); in HWTEST_F()
450 EXPECT_FALSE(webPattern->CheckParentScroll(1.0f, NestedScrollMode::PARALLEL)); in HWTEST_F()
475 EXPECT_FALSE(webPattern->CheckParentScroll(1.0f, NestedScrollMode in HWTEST_F()
[all...]
H A Dweb_pattern_test_ng_supplement.cpp1181 webPattern->nestedScroll_.scrollRight = NestedScrollMode::SELF_FIRST; in HWTEST_F()
1217 webPattern->nestedScroll_.scrollDown = NestedScrollMode::SELF_ONLY; in HWTEST_F()
1219 webPattern->nestedScroll_.scrollDown = NestedScrollMode::SELF_FIRST; in HWTEST_F()
1224 webPattern->nestedScroll_.scrollLeft = NestedScrollMode::SELF_ONLY; in HWTEST_F()
1226 webPattern->nestedScroll_.scrollLeft = NestedScrollMode::SELF_FIRST; in HWTEST_F()
1340 nestedScroll.scrollUp = NestedScrollMode::SELF_ONLY; in HWTEST_F()
1341 nestedScroll.scrollLeft = NestedScrollMode::SELF_ONLY; in HWTEST_F()
1342 nestedScroll.scrollDown = NestedScrollMode::SELF_ONLY; in HWTEST_F()
1343 nestedScroll.scrollRight = NestedScrollMode::SELF_ONLY; in HWTEST_F()
1371 nestedScroll.scrollUp = NestedScrollMode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/
H A Dscrollable_test_ng.cpp72 scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARALLEL, .backward = NestedScrollMode::PARALLEL }; in InitNestedScrolls()
94 scrollPn->nestedScroll_ = { .forward = NestedScrollMode::SELF_ONLY, .backward = NestedScrollMode::SELF_ONLY }; in HWTEST_F()
120 scrollPn->nestedScroll_ = { .forward = NestedScrollMode::SELF_FIRST, .backward = NestedScrollMode::SELF_FIRST }; in HWTEST_F()
146 scrollPn->nestedScroll_ = { .forward = NestedScrollMode::SELF_FIRST, .backward = NestedScrollMode::SELF_FIRST }; in HWTEST_F()
168 scrollPn->nestedScroll_ = { .forward = NestedScrollMode::PARENT_FIRST, .backward = NestedScrollMode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dgrid_modifier.cpp296 .forward = static_cast<NestedScrollMode>(forward), in SetNestedScroll()
297 .backward = static_cast<NestedScrollMode>(backward), in SetNestedScroll()
309 .forward = NestedScrollMode::SELF_ONLY, in ResetNestedScroll()
310 .backward = NestedScrollMode::SELF_ONLY, in ResetNestedScroll()
H A Dwater_flow_modifier.cpp203 .forward = NestedScrollMode::SELF_ONLY, in SetWaterFlowNestedScroll()
204 .backward = NestedScrollMode::SELF_ONLY, in SetWaterFlowNestedScroll()
206 nestedOpt.forward = static_cast<NestedScrollMode>(scrollForward); in SetWaterFlowNestedScroll()
207 nestedOpt.backward = static_cast<NestedScrollMode>(scrollBackward); in SetWaterFlowNestedScroll()
216 .forward = NestedScrollMode::SELF_ONLY, in ResetWaterFlowNestedScroll()
217 .backward = NestedScrollMode::SELF_ONLY, in ResetWaterFlowNestedScroll()
H A Dnode_scroll_modifier.cpp68 .forward = NestedScrollMode::SELF_ONLY, in SetScrollNestedScroll()
69 .backward = NestedScrollMode::SELF_ONLY, in SetScrollNestedScroll()
71 nestedOpt.forward = static_cast<NestedScrollMode>(scrollForward); in SetScrollNestedScroll()
72 nestedOpt.backward = static_cast<NestedScrollMode>(scrollBackward); in SetScrollNestedScroll()
81 .forward = NestedScrollMode::SELF_ONLY, in ResetScrollNestedScroll()
82 .backward = NestedScrollMode::SELF_ONLY, in ResetScrollNestedScroll()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsEnumStyle.js2995 var NestedScrollMode; variable
2996 (function (NestedScrollMode) {
2997 NestedScrollMode[NestedScrollMode["SELF_ONLY"] = 0] = "SELF_ONLY";
2998 NestedScrollMode[NestedScrollMode["SELF_FIRST"] = 1] = "SELF_FIRST";
2999 NestedScrollMode[NestedScrollMode["PARENT_FIRST"] = 2] = "PARENT_FIRST";
3000 NestedScrollMode[NestedScrollMode["PARALLE
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_grid_bridge.cpp639 int32_t forward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll()
640 int32_t backward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll()
648 if (forward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
649 forward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
650 forward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll()
653 if (backward < static_cast<int32_t>(NestedScrollMode::SELF_ONLY) || in SetNestedScroll()
654 backward > static_cast<int32_t>(NestedScrollMode::PARALLEL)) { in SetNestedScroll()
655 backward = static_cast<int32_t>(NestedScrollMode::SELF_ONLY); in SetNestedScroll()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/
H A Dweb_model_ng.cpp50 .scrollUp = NestedScrollMode::SELF_FIRST, in Create()
51 .scrollDown = NestedScrollMode::SELF_FIRST, in Create()
52 .scrollLeft = NestedScrollMode::SELF_FIRST, in Create()
53 .scrollRight = NestedScrollMode::SELF_FIRST, in Create()
78 .scrollUp = NestedScrollMode::SELF_FIRST, in Create()
79 .scrollDown = NestedScrollMode::SELF_FIRST, in Create()
80 .scrollLeft = NestedScrollMode::SELF_FIRST, in Create()
81 .scrollRight = NestedScrollMode::SELF_FIRST, in Create()

Completed in 32 milliseconds

12