class FlatlandMouseIntegrationTest

Defined at line 136 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_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_
float display_width_
float display_height_
static const uint32_t kDeviceId
static const uint32_t kPointerId
static const uint32_t kDefaultSize
static array kIdentityMatrix
static TransformId kRootTransform
static ContentId kRootContentId

Public Methods

void FlatlandMouseIntegrationTest ()

Defined at line 138 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc

Protected Methods

void SetUp ()

clang-format on

Defined at line 156 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc

void Inject (float x, float y, EventPhase phase, const std::vector<uint8_t> & pressed_buttons, std::optional<int64_t> scroll_v, std::optional<int64_t> scroll_h, std::optional<double> scroll_v_physical_pixel, std::optional<double> scroll_h_physical_pixel, std::optional<bool> is_precision_scroll)

Defined at line 193 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc

void InjectNewViewport (Viewport viewport)

Defined at line 235 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc

void RegisterInjector (ViewRef context_view_ref, ViewRef target_view_ref, DispatchPolicy dispatch_policy, std::vector<uint8_t> buttons, std::array<float, 9> viewport_to_context_transform)

Defined at line 250 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc

void StartWatchLoop (MouseSourcePtr & mouse_source, std::vector<MouseEvent> & out_events)

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

|out_events|.

Defined at line 301 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc

ViewRef CreateAndAddChildView (FlatlandPtr & parent_instance, TransformId viewport_transform_id, TransformId parent_of_viewport_transform, ContentId parent_content_id, FlatlandPtr & child_instance, fidl::InterfaceRequest<MouseSource> child_mouse_source, fidl::InterfaceRequest<ViewRefFocused> child_focused)

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 316 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc

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

Defined at line 355 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc