Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter_runner::testing::FakeMouseSource Class Reference

#include <mouse_source.h>

Inheritance diagram for flutter_runner::testing::FakeMouseSource:

Public Member Functions

void Watch (MouseSource::WatchCallback callback) override
 
void ScheduleCallback (std::vector< fuchsia::ui::pointer::MouseEvent > events)
 

Detailed Description

Definition at line 16 of file mouse_source.h.

Member Function Documentation

◆ ScheduleCallback()

void flutter_runner::testing::FakeMouseSource::ScheduleCallback ( std::vector< fuchsia::ui::pointer::MouseEvent >  events)
inline

Definition at line 24 of file mouse_source.h.

24 {
25 FML_CHECK(callback_) << "require a valid WatchCallback";
26 callback_(std::move(events));
27 }
#define FML_CHECK(condition)
Definition: logging.h:85

◆ Watch()

void flutter_runner::testing::FakeMouseSource::Watch ( MouseSource::WatchCallback  callback)
inlineoverride

Definition at line 19 of file mouse_source.h.

19 {
20 callback_ = std::move(callback);
21 }
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback

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