class Injector
Defined at line 72 of file ../../src/ui/scenic/lib/input/injector.h
Implementation of the |fuchsia::ui::pointerinjector::Device| interface. One instance per channel.
LINT.IfChange
Public Methods
void Injector (std::shared_ptr<view_tree::SnapshotHolder>snapshot_holder,inspect::Nodeinspect_node,InjectorSettingssettings,Viewportviewport,fidl::InterfaceRequest<fuchsia::ui::pointerinjector::Device>device,fit::function<void ()>on_channel_closed)
Defined at line 136 of file ../../src/ui/scenic/lib/input/injector.cc
zx_status_t IsValidViewport (const fuchsia::ui::pointerinjector::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 324 of file ../../src/ui/scenic/lib/input/injector.cc
void Inject (std::vector<fuchsia::ui::pointerinjector::Event> events, InjectCallback callback)
|fuchsia::ui::pointerinjector::Device|
Defined at line 165 of file ../../src/ui/scenic/lib/input/injector.cc
void InjectEvents (std::vector<fuchsia::ui::pointerinjector::Event> events)
TODO: b/465440651 - revisit if we need to add flow control here since no flow control on caller
side.
Defined at line 179 of file ../../src/ui/scenic/lib/input/injector.cc
Protected Methods
void ForwardEvent (fuchsia::ui::pointerinjector::Event &event,StreamIdstream_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 97 of file ../../src/ui/scenic/lib/input/injector.h
const Viewport & viewport ()
Defined at line 98 of file ../../src/ui/scenic/lib/input/injector.h