class FlatlandClientWithEventHandler

Defined at line 16 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 27 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void FlatlandClientWithEventHandler (FlatlandClientWithEventHandler && other)

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

FlatlandClientWithEventHandler & operator= (const FlatlandClientWithEventHandler & other)

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

FlatlandClientWithEventHandler & operator= (FlatlandClientWithEventHandler && other)

Defined at line 30 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 32 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void ~FlatlandClientWithEventHandler ()

Defined at line 41 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 44 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 47 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void reset_on_frame_presented ()

Defined at line 52 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 55 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void reset_on_next_frame_begin ()

Defined at line 59 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 62 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h

void reset_on_error ()

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

Protected Methods

void OnFramePresented (OnFramePresentedEvent & event)

fidl::AsyncEventHandler

<fuchsia

_ui_composition::Flatland>

Defined at line 70 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 77 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 84 of file ../../src/ui/scenic/tests/utils/flatland_client_with_event_handler.h