Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
flutter::DefaultPointerDataDispatcher Class Reference

#include <pointer_data_dispatcher.h>

Inheritance diagram for flutter::DefaultPointerDataDispatcher:
flutter::PointerDataDispatcher flutter::SmoothPointerDataDispatcher

Public Member Functions

 DefaultPointerDataDispatcher (Delegate &delegate)
 
void DispatchPacket (std::unique_ptr< PointerDataPacket > packet, uint64_t trace_flow_id) override
 Signal that PlatformView has a packet to be dispatched. More...
 
virtual ~DefaultPointerDataDispatcher ()
 
- Public Member Functions inherited from flutter::PointerDataDispatcher
virtual void DispatchPacket (std::unique_ptr< PointerDataPacket > packet, uint64_t trace_flow_id)=0
 Signal that PlatformView has a packet to be dispatched. More...
 
virtual ~PointerDataDispatcher ()
 Default destructor. More...
 

Protected Member Functions

 FML_DISALLOW_COPY_AND_ASSIGN (DefaultPointerDataDispatcher)
 

Protected Attributes

Delegatedelegate_
 

Detailed Description

The default dispatcher that forwards the packet without any modification.

Definition at line 85 of file pointer_data_dispatcher.h.

Constructor & Destructor Documentation

◆ DefaultPointerDataDispatcher()

flutter::DefaultPointerDataDispatcher::DefaultPointerDataDispatcher ( Delegate delegate)
inlineexplicit

Definition at line 87 of file pointer_data_dispatcher.h.

◆ ~DefaultPointerDataDispatcher()

flutter::DefaultPointerDataDispatcher::~DefaultPointerDataDispatcher ( )
virtualdefault

Member Function Documentation

◆ DispatchPacket()

void flutter::DefaultPointerDataDispatcher::DispatchPacket ( std::unique_ptr< PointerDataPacket packet,
uint64_t  trace_flow_id 
)
overridevirtual

Signal that PlatformView has a packet to be dispatched.

Parameters
[in]packetThe PointerDataPacket to be dispatched.
[in]trace_flow_idThe id for Animator::EnqueueTraceFlowId.

Implements flutter::PointerDataDispatcher.

Reimplemented in flutter::SmoothPointerDataDispatcher.

Definition at line 18 of file pointer_data_dispatcher.cc.

20 {
22 "DefaultPointerDataDispatcher::DispatchPacket",
23 /*flow_id_count=*/1, &trace_flow_id);
24 TRACE_FLOW_STEP("flutter", "PointerEvent", trace_flow_id);
25 delegate_.DoDispatchPacket(std::move(packet), trace_flow_id);
26}
virtual void DoDispatchPacket(std::unique_ptr< PointerDataPacket > packet, uint64_t trace_flow_id)=0
#define TRACE_FLOW_STEP(category, name, id)
Definition: trace_event.h:193
#define TRACE_EVENT0_WITH_FLOW_IDS(category_group, name, flow_id_count, flow_ids)
Definition: trace_event.h:126

◆ FML_DISALLOW_COPY_AND_ASSIGN()

flutter::DefaultPointerDataDispatcher::FML_DISALLOW_COPY_AND_ASSIGN ( DefaultPointerDataDispatcher  )
protected

Member Data Documentation

◆ delegate_

Delegate& flutter::DefaultPointerDataDispatcher::delegate_
protected

Definition at line 97 of file pointer_data_dispatcher.h.


The documentation for this class was generated from the following files: