class Injector
Defined at line 75 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 (async_dispatcher_t *input_dispatcher,std::shared_ptr<view_tree::SnapshotHolder>snapshot_holder,inspect::Nodeinspect_node,InjectorSettingssettings,Viewportviewport,fdf::ServerEnd<fuchsia_ui_pointerinjector_dso::Device>device,fit::function<void ()>on_channel_closed)
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 327 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 164 of file ../../src/ui/scenic/lib/input/dso/injector.cc
Protected Methods
void ForwardEvent (fuchsia_ui_pointerinjector::wire::Event &event,StreamIdstream_id,uint64_ttrace_flow_id,const view_tree::Snapshot &snapshot)
Forwards the event to device-specific handler in InputSystem (and eventually the client).
void CancelStream (uint32_tpointer_id,StreamIdstream_id,const view_tree::Snapshot &snapshot)
Sends an appropriate Cancel event.
const InjectorSettings & settings ()
Defined at line 100 of file ../../src/ui/scenic/lib/input/dso/injector.h
const Viewport & viewport ()
Defined at line 101 of file ../../src/ui/scenic/lib/input/dso/injector.h