class FlatlandTouchLocalHitIntegrationTest

Defined at line 48 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc

Protected Members

unique_ptr root_instance_
ViewRef root_view_ref_
Client local_hit_registry_
float display_width_
float display_height_
static const uint32_t kDeviceId
static const uint32_t kPointerId
static array kIdentityMatrix

Protected Methods

void SetUp ()

clang-format on

Defined at line 61 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc

void RegisterInjector (fuv::ViewRef context_view_ref, fuv::ViewRef target_view_ref)

Defined at line 109 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc

void Inject (float x, float y, fupi::EventPhase phase)

Defined at line 133 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc

void StartWatchLoop (SimpleWatcherClient<fupa::TouchSourceWithLocalHit> & touch_source, std::vector<fupa::TouchEventWithLocalHit> & out_events, fup::TouchResponseType response_type)

Starts a recursive TouchSource::Watch() loop that collects all received events into

|out_events|.

Defined at line 158 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc

fuv::ViewRef CreateAndAddChildView (FlatlandClientWithEventHandler & parent_instance, fuc::TransformId viewport_transform_id, fuchsia_math::Rect viewport_spec, fuc::TransformId parent_of_viewport_transform, fuc::ContentId viewport_content_id, std::unique_ptr<FlatlandClientWithEventHandler> & child_instance, fidl::ServerEnd<fup::TouchSource> child_touch_source)

Convenience function, we assume the test constructs topologies with one level of N children.

Prereq: |parent_of_viewport_transform| is created and connected to the view's root.

Defined at line 194 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc

std::array<std::array<float, 2>, 2> FullScreenExtents ()

Defined at line 260 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc