class Injector

Defined at line 74 of file ../../src/ui/scenic/lib/input/dso/injector.h

Implementation of the |fuchsia::ui::pointerinjector_dso::Device| interface. One instance per

channel.

Public Methods

void Injector (inspect::Node inspect_node, InjectorSettings settings, Viewport viewport, fdf::ServerEnd<fuchsia_ui_pointerinjector_dso::Device> device, fit::function<bool (zx_koid_t, zx_koid_t)> is_descendant_and_connected, fit::function<void ()> on_channel_closed, async_dispatcher_t * dispatcher)

Defined at line 140 of file ../../src/ui/scenic/lib/input/dso/injector.cc

zx_status_t IsValidViewport (const fuchsia_ui_pointerinjector::wire::Viewport & viewport)

Check the validity of a Viewport.

Returns ZX_OK if valid, otherwise logs an error message and return appropriate error code.

Defined at line 319 of file ../../src/ui/scenic/lib/input/dso/injector.cc

void InjectEvents (fuchsia_ui_pointerinjector::wire::DeviceInjectRequest * request, fdf::Arena & arena, InjectEventsCompleter::Sync & completer)

|fuchsia_ui_pointerinjector_dso::Device|

Defined at line 163 of file ../../src/ui/scenic/lib/input/dso/injector.cc

Protected Methods

void ForwardEvent (fuchsia_ui_pointerinjector::wire::Event & event, StreamId stream_id, uint64_t trace_flow_id)

Forwards the event to device-specific handler in InputSystem (and eventually the client).

void CancelStream (uint32_t pointer_id, StreamId stream_id)

Sends an appropriate Cancel event.

const InjectorSettings & settings ()

Defined at line 98 of file ../../src/ui/scenic/lib/input/dso/injector.h

const Viewport & viewport ()

Defined at line 99 of file ../../src/ui/scenic/lib/input/dso/injector.h