Flutter Engine
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 ~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 83 of file pointer_data_dispatcher.h.

Constructor & Destructor Documentation

◆ DefaultPointerDataDispatcher()

flutter::DefaultPointerDataDispatcher::DefaultPointerDataDispatcher ( Delegate delegate)
inline

◆ ~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 16 of file pointer_data_dispatcher.cc.

References delegate_, and flutter::PointerDataDispatcher::Delegate::DoDispatchPacket().

Referenced by flutter::SmoothPointerDataDispatcher::DispatchPacket().

18  {
19  delegate_.DoDispatchPacket(std::move(packet), trace_flow_id);
20 }
virtual void DoDispatchPacket(std::unique_ptr< PointerDataPacket > packet, uint64_t trace_flow_id)=0

◆ FML_DISALLOW_COPY_AND_ASSIGN()

flutter::DefaultPointerDataDispatcher::FML_DISALLOW_COPY_AND_ASSIGN ( DefaultPointerDataDispatcher  )
protected

Member Data Documentation

◆ delegate_

Delegate& flutter::DefaultPointerDataDispatcher::delegate_
protected

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