template <>

class WireServer

Defined at line 864 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/cpp/fidl/fuchsia.accessibility.semantics/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_accessibility_semantics::SemanticTree>|

and |::fidl::ServerEnd

<

::fuchsia_accessibility_semantics::SemanticTree>|).

Public Methods

void UpdateSemanticNodes (::fuchsia_accessibility_semantics::wire::SemanticTreeUpdateSemanticNodesRequest * request, UpdateSemanticNodesCompleter::Sync & completer)

Sends new/updated nodes to the root to add to the cache on the next commit.

void DeleteSemanticNodes (::fuchsia_accessibility_semantics::wire::SemanticTreeDeleteSemanticNodesRequest * request, DeleteSemanticNodesCompleter::Sync & completer)

Tells the root to remove nodes with node_ids from the semantic tree on the next commit.

void CommitUpdates (CommitUpdatesCompleter::Sync & completer)

Commits pending changes to node tree associated with the view using UpdateSemanticNodes and

DeleteSemanticNodes. Updates are processed in the order in which they are received. If the

committed updates result in an ill-formed tree (for example a missing root node or a cycle)

the semantic manager will close the channel.

void SendSemanticEvent (::fuchsia_accessibility_semantics::wire::SemanticTreeSendSemanticEventRequest * request, SendSemanticEventCompleter::Sync & completer)

Sends a Semantic Event related to this tree. This applies immediately

and does not wait for CommitUpdates(). It is the caller's

responsibility to fire events on nodes that have been already commited.

The return callback is invoked to acknowledge that the event was received.

void WireServer ()

Defined at line 867 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/cpp/fidl/fuchsia.accessibility.semantics/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 868 of file fidling/gen/sdk/fidl/fuchsia.accessibility.semantics/fuchsia.accessibility.semantics/cpp/fidl/fuchsia.accessibility.semantics/cpp/wire_messaging.h