Definition at line 248 of file ax_tree.cc.
◆ AXTreeUpdateState()
ui::AXTreeUpdateState::AXTreeUpdateState |
( |
const AXTree & |
tree | ) |
|
|
inlineexplicit |
Definition at line 249 of file ax_tree.cc.
252 tree(tree) {}
AXTreePendingStructureStatus pending_update_status
bool root_will_be_created
◆ ClearLastKnownPendingNodeData()
void ui::AXTreeUpdateState::ClearLastKnownPendingNodeData |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 343 of file ax_tree.cc.
343 {
345 BASE_LOG() <<
"This method should only be called while computing "
346 "pending changes, "
347 "before updates are made to the tree.";
349 }
350 GetOrCreatePendingStructureChanges(node_id)->
last_known_data =
nullptr;
351 }
const AXNodeData * last_known_data
#define BASE_UNREACHABLE()
◆ DecrementPendingCreateNodeCount()
void ui::AXTreeUpdateState::DecrementPendingCreateNodeCount |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 502 of file ax_tree.cc.
502 {
505 << "This method should not be called before pending changes have "
506 "finished computing.";
508 }
509 if (PendingStructureChanges*
data = GetPendingStructureChanges(node_id)) {
511 --
data->create_node_count;
512 }
513 }
std::shared_ptr< const fml::Mapping > data
#define BASE_DCHECK(condition)
◆ DecrementPendingDestroyNodeCount()
void ui::AXTreeUpdateState::DecrementPendingDestroyNodeCount |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 451 of file ax_tree.cc.
451 {
454 << "This method should not be called before pending changes have "
455 "finished computing.";
457 }
458 if (PendingStructureChanges*
data = GetPendingStructureChanges(node_id)) {
460 --
data->destroy_node_count;
461 }
462 }
◆ DecrementPendingDestroySubtreeCount()
void ui::AXTreeUpdateState::DecrementPendingDestroySubtreeCount |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 399 of file ax_tree.cc.
399 {
402 << "This method should not be called before pending changes have "
403 "finished computing.";
405 }
406 if (PendingStructureChanges*
data = GetPendingStructureChanges(node_id)) {
408 --
data->destroy_subtree_count;
409 }
410 }
◆ DoesPendingNodeRequireInit()
bool ui::AXTreeUpdateState::DoesPendingNodeRequireInit |
( |
AXNode::AXID |
node_id | ) |
const |
|
inline |
Definition at line 292 of file ax_tree.cc.
292 {
294 BASE_LOG() <<
"This method should only be called while computing "
295 "pending changes, "
296 "before updates are made to the tree.";
298 }
299 PendingStructureChanges*
data = GetPendingStructureChanges(node_id);
300 return data &&
data->DoesNodeRequireInit();
301 }
◆ GetLastKnownPendingNodeData()
Definition at line 329 of file ax_tree.cc.
329 {
331 BASE_LOG() <<
"This method should only be called while computing "
332 "pending changes, "
333 "before updates are made to the tree.";
335 }
337 PendingStructureChanges*
data = GetPendingStructureChanges(node_id);
338 return (
data &&
data->last_known_data) ? *
data->last_known_data
339 : *empty_data;
340 }
◆ GetParentIdForPendingNode()
Definition at line 304 of file ax_tree.cc.
304 {
306 BASE_LOG() <<
"This method should only be called while computing "
307 "pending changes, "
308 "before updates are made to the tree.";
310 }
311 PendingStructureChanges*
data = GetOrCreatePendingStructureChanges(node_id);
314 return data->parent_node_id;
315 }
bool ShouldPendingNodeExistInTree(AXNode::AXID node_id)
◆ GetPendingCreateNodeCount()
int32_t ui::AXTreeUpdateState::GetPendingCreateNodeCount |
( |
AXNode::AXID |
node_id | ) |
const |
|
inline |
Definition at line 466 of file ax_tree.cc.
466 {
469 << "This method should not be called before pending changes have "
470 "finished computing.";
472 }
473 if (PendingStructureChanges*
data = GetPendingStructureChanges(node_id))
474 return data->create_node_count;
475 return 0;
476 }
◆ GetPendingDestroyNodeCount()
int32_t ui::AXTreeUpdateState::GetPendingDestroyNodeCount |
( |
AXNode::AXID |
node_id | ) |
const |
|
inline |
Definition at line 414 of file ax_tree.cc.
414 {
417 << "This method should not be called before pending changes have "
418 "finished computing.";
420 }
421 if (PendingStructureChanges*
data = GetPendingStructureChanges(node_id))
422 return data->destroy_node_count;
423 return 0;
424 }
◆ GetPendingDestroySubtreeCount()
int32_t ui::AXTreeUpdateState::GetPendingDestroySubtreeCount |
( |
AXNode::AXID |
node_id | ) |
const |
|
inline |
Definition at line 367 of file ax_tree.cc.
367 {
370 << "This method should not be called before pending changes have "
371 "finished computing.";
373 }
374 if (PendingStructureChanges*
data = GetPendingStructureChanges(node_id))
375 return data->destroy_subtree_count;
376 return 0;
377 }
◆ IncrementPendingCreateNodeCount()
bool ui::AXTreeUpdateState::IncrementPendingCreateNodeCount |
( |
AXNode::AXID |
node_id, |
|
|
std::optional< AXNode::AXID > |
parent_node_id |
|
) |
| |
|
inline |
Definition at line 481 of file ax_tree.cc.
483 {
485 BASE_LOG() <<
"This method should only be called while computing "
486 "pending changes, "
487 "before updates are made to the tree.";
489 }
490 PendingStructureChanges*
data = GetOrCreatePendingStructureChanges(node_id);
491 if (
data->node_exists)
492 return false;
493
494 ++
data->create_node_count;
495 data->node_exists =
true;
496 data->parent_node_id = parent_node_id;
497 return true;
498 }
◆ IncrementPendingDestroyNodeCount()
bool ui::AXTreeUpdateState::IncrementPendingDestroyNodeCount |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 429 of file ax_tree.cc.
429 {
431 BASE_LOG() <<
"This method should only be called while computing "
432 "pending changes, "
433 "before updates are made to the tree.";
435 }
436 PendingStructureChanges*
data = GetOrCreatePendingStructureChanges(node_id);
437 if (!
data->node_exists)
438 return false;
439
440 ++
data->destroy_node_count;
441 data->node_exists =
false;
442 data->last_known_data =
nullptr;
443 data->parent_node_id = std::nullopt;
446 return true;
447 }
std::optional< AXNode::AXID > pending_root_id
◆ IncrementPendingDestroySubtreeCount()
bool ui::AXTreeUpdateState::IncrementPendingDestroySubtreeCount |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 382 of file ax_tree.cc.
382 {
384 BASE_LOG() <<
"This method should only be called while computing "
385 "pending changes, "
386 "before updates are made to the tree.";
388 }
389 PendingStructureChanges*
data = GetOrCreatePendingStructureChanges(node_id);
390 if (!
data->node_exists)
391 return false;
392
393 ++
data->destroy_subtree_count;
394 return true;
395 }
◆ InvalidateParentNodeUnignoredCacheValues()
void ui::AXTreeUpdateState::InvalidateParentNodeUnignoredCacheValues |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 523 of file ax_tree.cc.
523 {
525 BASE_LOG() <<
"This method should only be called while computing "
526 "pending changes, "
527 "before updates are made to the tree.";
529 }
530 std::optional<AXNode::AXID> parent_node_id =
532 if (parent_node_id) {
534 }
535 }
std::optional< AXNode::AXID > GetParentIdForPendingNode(AXNode::AXID node_id)
std::set< AXNode::AXID > invalidate_unignored_cached_values_ids
◆ InvalidatesUnignoredCachedValues()
bool ui::AXTreeUpdateState::InvalidatesUnignoredCachedValues |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 517 of file ax_tree.cc.
517 {
519 }
bool Contains(const Container &container, const Value &value)
◆ IsCreatedNode() [1/2]
bool ui::AXTreeUpdateState::IsCreatedNode |
( |
AXNode::AXID |
node_id | ) |
const |
|
inline |
Definition at line 260 of file ax_tree.cc.
260 {
262 }
std::set< AXNode::AXID > new_node_ids
◆ IsCreatedNode() [2/2]
bool ui::AXTreeUpdateState::IsCreatedNode |
( |
const AXNode * |
node | ) |
const |
|
inline |
Definition at line 265 of file ax_tree.cc.
265 {
267 }
bool IsCreatedNode(AXNode::AXID node_id) const
◆ IsRemovedNode()
bool ui::AXTreeUpdateState::IsRemovedNode |
( |
const AXNode * |
node | ) |
const |
|
inline |
Definition at line 255 of file ax_tree.cc.
255 {
257 }
std::set< AXNode::AXID > removed_node_ids
◆ IsReparentedNode()
bool ui::AXTreeUpdateState::IsReparentedNode |
( |
const AXNode * |
node | ) |
const |
|
inline |
Definition at line 270 of file ax_tree.cc.
270 {
273 << "This method should not be called before pending changes have "
274 "finished computing.";
276 }
277 PendingStructureChanges*
data = GetPendingStructureChanges(node->id());
279 return false;
280
281
282
283
284
285
288 }
bool IsRemovedNode(const AXNode *node) const
◆ SetLastKnownPendingNodeData()
void ui::AXTreeUpdateState::SetLastKnownPendingNodeData |
( |
const AXNodeData * |
node_data | ) |
|
|
inline |
Definition at line 354 of file ax_tree.cc.
354 {
356 BASE_LOG() <<
"This method should only be called while computing "
357 "pending changes, "
358 "before updates are made to the tree.";
360 }
362 node_data;
363 }
◆ ShouldPendingNodeExistInTree()
bool ui::AXTreeUpdateState::ShouldPendingNodeExistInTree |
( |
AXNode::AXID |
node_id | ) |
|
|
inline |
Definition at line 318 of file ax_tree.cc.
318 {
320 BASE_LOG() <<
"This method should only be called while computing "
321 "pending changes, "
322 "before updates are made to the tree.";
324 }
325 return GetOrCreatePendingStructureChanges(node_id)->
node_exists;
326 }
◆ invalidate_unignored_cached_values_ids
std::set<AXNode::AXID> ui::AXTreeUpdateState::invalidate_unignored_cached_values_ids |
◆ new_node_ids
◆ node_data_changed_ids
std::set<AXNode::AXID> ui::AXTreeUpdateState::node_data_changed_ids |
◆ node_id_to_pending_data
◆ old_node_id_to_data
◆ old_tree_data
std::optional<AXTreeData> ui::AXTreeUpdateState::old_tree_data |
◆ pending_nodes
◆ pending_root_id
std::optional<AXNode::AXID> ui::AXTreeUpdateState::pending_root_id |
◆ pending_update_status
◆ removed_node_ids
std::set<AXNode::AXID> ui::AXTreeUpdateState::removed_node_ids |
◆ root_will_be_created
bool ui::AXTreeUpdateState::root_will_be_created |
The documentation for this struct was generated from the following file: