class FlatlandMouseIntegrationTest
Defined at line 134 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
Protected Methods
void SetUp ()
clang-format on
Defined at line 150 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc
void Inject (floatx,floaty,EventPhasephase,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 184 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc
void InjectNewViewport (Viewport viewport)
Defined at line 226 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc
void RegisterInjector (ViewRefcontext_view_ref,ViewReftarget_view_ref,DispatchPolicydispatch_policy,std::vector<uint8_t>buttons,std::array<float, 9>viewport_to_context_transform)
Defined at line 241 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 292 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc
ViewRef CreateAndAddChildView (FlatlandPtr &parent_instance,TransformIdviewport_transform_id,TransformIdparent_of_viewport_transform,ContentIdparent_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 307 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 346 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_mouse_integration_test.cc