class FlatlandTouchLocalHitIntegrationTest
Defined at line 65 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc
TODO(https://fxbug.dev/447603809): DO NOT COPY THIS TEST.
All HLCCP tests, and should be migrated from ScenicCtfHlcppTest to ScenicCtfTest.
Protected Members
InterfacePtr root_instance_
ViewRef root_view_ref_
bool injector_channel_closed_
InterfacePtr local_hit_registry_
float display_width_
float display_height_
static const uint32_t kDeviceId
static const uint32_t kPointerId
static array kIdentityMatrix
static TransformId kRootTransform
static ContentId kRootContentId
Public Methods
void FlatlandTouchLocalHitIntegrationTest ()
Defined at line 67 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc
Protected Methods
void SetUp ()
clang-format on
Defined at line 82 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc
void RegisterInjector (ViewRef context_view_ref, ViewRef target_view_ref)
Defined at line 122 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc
void Inject (float x, float y, EventPhase phase)
Defined at line 154 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc
void StartWatchLoop (fuchsia::ui::pointer::augment::TouchSourceWithLocalHitPtr & touch_source, std::vector<TouchEventWithLocalHit> & out_events, TouchResponseType response_type)
Starts a recursive TouchSource::Watch() loop that collects all received events into
|out_events|.
Defined at line 177 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc
ViewRef CreateAndAddChildView (FlatlandPtr & parent_instance, TransformId viewport_transform_id, fuchsia::math::Rect viewport_spec, TransformId parent_of_viewport_transform, ContentId viewport_content_id, FlatlandPtr & child_instance, fidl::InterfaceRequest<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 204 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 245 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_local_hit_integration_test.cc