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

#include <view_ref_focused.h>

Inheritance diagram for flutter_runner::testing::FakeViewRefFocused:

Public Types

using WatchCallback = ViewRefFocused::WatchCallback
 

Public Member Functions

void Watch (WatchCallback callback) override
 
void ScheduleCallback (bool focused)
 

Public Attributes

std::size_t times_watched = 0
 

Detailed Description

Definition at line 14 of file view_ref_focused.h.

Member Typedef Documentation

◆ WatchCallback

using flutter_runner::testing::FakeViewRefFocused::WatchCallback = ViewRefFocused::WatchCallback

Definition at line 16 of file view_ref_focused.h.

Member Function Documentation

◆ ScheduleCallback()

void flutter_runner::testing::FakeViewRefFocused::ScheduleCallback ( bool  focused)
inline

Definition at line 24 of file view_ref_focused.h.

24 {
25 fuchsia::ui::views::FocusState focus_state;
26 focus_state.set_focused(focused);
27 callback_(std::move(focus_state));
28 }

◆ Watch()

void flutter_runner::testing::FakeViewRefFocused::Watch ( WatchCallback  callback)
inlineoverride

Definition at line 19 of file view_ref_focused.h.

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

Member Data Documentation

◆ times_watched

std::size_t flutter_runner::testing::FakeViewRefFocused::times_watched = 0

Definition at line 17 of file view_ref_focused.h.


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