class TouchSourceBase
Defined at line 26 of file ../../src/ui/scenic/lib/input/touch_source_base.h
Base class for implementations of fuchsia.ui.pointer.TouchSource and its augmentations.
Public Methods
void ~TouchSourceBase ()
Defined at line 28 of file ../../src/ui/scenic/lib/input/touch_source_base.h
zx_koid_t channel_koid ()
Defined at line 39 of file ../../src/ui/scenic/lib/input/touch_source_base.h
void UpdateStream (StreamId stream_id, InternalTouchEvent event, bool is_end_of_stream, view_tree::BoundingBox view_bounds)
|GestureContender|
For |view_bounds| and |event.viewport| new values are only sent to the client when they've
changed from their last seen values.
Defined at line 146 of file ../../src/ui/scenic/lib/input/touch_source_base.cc
void EndContest (StreamId stream_id, bool awarded_win)
|GestureContender|
Defined at line 221 of file ../../src/ui/scenic/lib/input/touch_source_base.cc
Protected Methods
void TouchSourceBase (zx_koid_t channel_koid, zx_koid_t view_ref_koid, fit::function<void (StreamId, const std::vector<GestureResponse> &)> respond, GestureContenderInspector & inspector)
|respond_| must not destroy the TouchSourceBase object.
Defined at line 137 of file ../../src/ui/scenic/lib/input/touch_source_base.cc
void WatchBase (std::vector<fuchsia::ui::pointer::TouchResponse> responses, fit::function<void (std::vector<AugmentedTouchEvent>)> callback)
Defined at line 288 of file ../../src/ui/scenic/lib/input/touch_source_base.cc
void UpdateResponseBase (fuchsia::ui::pointer::TouchInteractionId stream, fuchsia::ui::pointer::TouchResponse response, fit::function<void ()> callback)
Defined at line 360 of file ../../src/ui/scenic/lib/input/touch_source_base.cc
void CloseChannel (zx_status_t epitaph)
Closes the FIDL channel. This triggers the destruction of the TouchSourceBase object through
the error handler set in InputSystem. NOTE: No further method calls or member accesses should
be made after CloseChannel(), since they might be made on a destroyed object.
void Augment (AugmentedTouchEvent & , const InternalTouchEvent & )
Allows subtypes to add augmentations to each event.