class TouchSystem

Defined at line 33 of file ../../src/ui/scenic/lib/input/touch_system.h

Tracks input APIs.

Thread-unsafe. All methods are expected to be called from the same thread (the "input thread").

The only exception is that `SnapshotHolder` can be updated from the main thread.

Public Methods

void ~TouchSystem ()

Defined at line 37 of file ../../src/ui/scenic/lib/input/touch_system.h

fuchsia::ui::input::accessibility::PointerEventListenerPtr & accessibility_pointer_event_listener ()

Defined at line 39 of file ../../src/ui/scenic/lib/input/touch_system.h

void RegisterA11yListener (fidl::InterfaceHandle<fuchsia::ui::input::accessibility::PointerEventListener> listener, A11yPointerEventRegistry::RegisterCallback callback)

For tests.

TODO(https://fxbug.dev/42152433): Remove when integration tests are properly separated out.

Defined at line 57 of file ../../src/ui/scenic/lib/input/touch_system.h

void TouchSystem (async_dispatcher_t * input_dispatcher, sys::ComponentContext * context, HitTester & hit_tester, inspect::Node & parent_node)

Defined at line 73 of file ../../src/ui/scenic/lib/input/touch_system.cc

void RegisterTouchSource (fidl::InterfaceRequest<fuchsia::ui::pointer::TouchSource> touch_source_request, zx_koid_t client_view_ref_koid)

Defined at line 228 of file ../../src/ui/scenic/lib/input/touch_system.cc

void RegisterTouchSource (fidl::ServerEnd<fuchsia_ui_pointer::TouchSource> touch_source_server_end, zx_koid_t client_view_ref_koid)

Defined at line 234 of file ../../src/ui/scenic/lib/input/touch_system.cc

void Upgrade (fidl::InterfaceHandle<fuchsia::ui::pointer::TouchSource> original, fuchsia::ui::pointer::augment::LocalHit::UpgradeCallback callback)

|fuchsia::ui::pointer::augment::LocalHit|

Defined at line 141 of file ../../src/ui/scenic/lib/input/touch_system.cc

void InjectTouchEventExclusive (InternalTouchEvent event, StreamId stream_id, const view_tree::Snapshot & snapshot)

Injects a touch event directly to the View with koid |event.target|.

Defined at line 267 of file ../../src/ui/scenic/lib/input/touch_system.cc

void InjectTouchEventHitTested (InternalTouchEvent event, StreamId stream_id, const view_tree::Snapshot & snapshot)

Injects a touch event by hit testing for appropriate targets.

Defined at line 312 of file ../../src/ui/scenic/lib/input/touch_system.cc