Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
flutter::EmbedderSemanticsUpdate2 Class Reference

#include <embedder_semantics_update.h>

Public Member Functions

 EmbedderSemanticsUpdate2 (const SemanticsNodeUpdates &nodes, const CustomAccessibilityActionUpdates &actions)
 
 ~EmbedderSemanticsUpdate2 ()
 
FlutterSemanticsUpdate2get ()
 

Detailed Description

Definition at line 48 of file embedder_semantics_update.h.

Constructor & Destructor Documentation

◆ EmbedderSemanticsUpdate2()

flutter::EmbedderSemanticsUpdate2::EmbedderSemanticsUpdate2 ( const SemanticsNodeUpdates nodes,
const CustomAccessibilityActionUpdates actions 
)

Definition at line 90 of file embedder_semantics_update.cc.

92 {
93 nodes_.reserve(nodes.size());
94 node_pointers_.reserve(nodes.size());
95 actions_.reserve(actions.size());
96 action_pointers_.reserve(actions.size());
97
98 for (const auto& value : nodes) {
99 AddNode(value.second);
100 }
101
102 for (const auto& value : actions) {
103 AddAction(value.second);
104 }
105
106 for (size_t i = 0; i < nodes_.size(); i++) {
107 node_pointers_.push_back(&nodes_[i]);
108 }
109
110 for (size_t i = 0; i < actions_.size(); i++) {
111 action_pointers_.push_back(&actions_[i]);
112 }
113
114 update_ = {
116 .node_count = node_pointers_.size(),
117 .nodes = node_pointers_.data(),
118 .custom_action_count = action_pointers_.size(),
119 .custom_actions = action_pointers_.data(),
120 };
121}
uint8_t value
A batch of updates to semantics nodes and custom actions.
Definition: embedder.h:1504
size_t struct_size
The size of the struct. Must be sizeof(FlutterSemanticsUpdate2).
Definition: embedder.h:1506

◆ ~EmbedderSemanticsUpdate2()

flutter::EmbedderSemanticsUpdate2::~EmbedderSemanticsUpdate2 ( )

Definition at line 123 of file embedder_semantics_update.cc.

123{}

Member Function Documentation

◆ get()

FlutterSemanticsUpdate2 * flutter::EmbedderSemanticsUpdate2::get ( )
inline

Definition at line 57 of file embedder_semantics_update.h.

57{ return &update_; }

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