class FlatlandClientWithEventHandler

Defined at line 18 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

Bundles a fidl::Client

<Flatland

> together with a fidl::AsyncEventHandler

<Flatland

>.

Each of the different event types is handled by a separate, settable closure.

Public Methods

void FlatlandClientWithEventHandler (const FlatlandClientWithEventHandler & other)

Not moveable, not copyable.

Defined at line 29 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void FlatlandClientWithEventHandler (FlatlandClientWithEventHandler && other)

Defined at line 30 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

FlatlandClientWithEventHandler & operator= (const FlatlandClientWithEventHandler & other)

Defined at line 31 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

FlatlandClientWithEventHandler & operator= (FlatlandClientWithEventHandler && other)

Defined at line 32 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void FlatlandClientWithEventHandler (fidl::ClientEnd<fuchsia_ui_composition::Flatland> client_end, async_dispatcher_t * dispatcher)

Defined at line 34 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void ~FlatlandClientWithEventHandler ()

Defined at line 42 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

fidl::Client<fuchsia_ui_composition::Flatland> & operator-> ()

Allow conveniently calling though to Flatland methods.

Defined at line 45 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

fidl::Client<fuchsia_ui_composition::Flatland> & client ()

Defined at line 46 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

const fidl::Client<fuchsia_ui_composition::Flatland> & client ()

Defined at line 47 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

bool is_valid ()

Defined at line 48 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

bool is_bound ()

Defined at line 49 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void set_on_frame_presented (OnFramePresentedHandler handler)

Configure handling of Flatland::OnFramePresented event.

Defined at line 52 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void reset_on_frame_presented ()

Defined at line 57 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void set_on_next_frame_begin (OnNextFrameBeginHandler handler)

Configure handling of Flatland::OnNextFrameBegin event.

Defined at line 60 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void reset_on_next_frame_begin ()

Defined at line 64 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void set_on_error (OnErrorHandler handler)

Configure handling of Flatland::OnError event.

Defined at line 67 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void reset_on_error ()

Defined at line 71 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void set_on_close (OnCloseHandler handler)

Configure handling of channel closure, for any reason. Without a handler, a closure is only

logged.

Defined at line 75 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

Protected Methods

void on_fidl_error (fidl::UnbindInfo info)

Defined at line 81 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void OnFramePresented (OnFramePresentedEvent & event)

fidl::AsyncEventHandler

<fuchsia

_ui_composition::Flatland>

Defined at line 91 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void OnNextFrameBegin (OnNextFrameBeginEvent & event)

fidl::AsyncEventHandler

<fuchsia

_ui_composition::Flatland>

Defined at line 98 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void OnError (OnErrorEvent & event)

fidl::AsyncEventHandler

<fuchsia

_ui_composition::Flatland>

Defined at line 105 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h