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.

Protected Members

const zx_koid_t channel_koid_
function_impl respond_
GestureContenderInspector & inspector_

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 40 of file ../../src/ui/scenic/lib/input/touch_source_base.h

void UpdateStream (const view_tree::Snapshot & snapshot, 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 159 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

void EndContest (StreamId stream_id, bool awarded_win)

|GestureContender|

Defined at line 239 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

fuchsia_ui_pointer::EventPhase ConvertToEventPhase (Phase phase)

Defined at line 67 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

fuchsia_ui_pointer::TouchEvent NewTouchEvent (StreamId stream_id, const InternalTouchEvent & event)

Defined at line 84 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

void AddInteractionResultsToEvent (fuchsia_ui_pointer::TouchEvent & event, StreamId stream_id, uint32_t device_id, uint32_t pointer_id, bool awarded_win)

Defined at line 111 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

fuchsia_ui_pointer::TouchEvent NewEndEvent (StreamId stream_id, uint32_t device_id, uint32_t pointer_id, bool awarded_win)

Defined at line 128 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

void AddViewParametersToEvent (fuchsia_ui_pointer::TouchEvent & event, const Viewport & viewport, view_tree::BoundingBox view_bounds)

Defined at line 137 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

Protected Methods

void Augment (const view_tree::Snapshot & snapshot, AugmentedTouchEvent & out_event, const InternalTouchEvent & in_event)

Allows subtypes to add augmentations to each event.

Defined at line 94 of file ../../src/ui/scenic/lib/input/touch_source_base.h

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 150 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 312 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

void UpdateResponseBase (const fuchsia_ui_pointer::TouchInteractionId & stream, fuchsia_ui_pointer::TouchResponse response, fit::function<void ()> callback)

Defined at line 390 of file ../../src/ui/scenic/lib/input/touch_source_base.cc

void PushEvent (StreamId stream_id, AugmentedTouchEvent event)

Pushes an event to be sent to the client. Default implementation queues the event for V1

hanging-get Watch() calls. Subclasses can override this to implement other delivery mechanisms.

Defined at line 269 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.

Records