Flutter Engine
The Flutter Engine
third_party
accessibility
ax
ax_tree_manager_map.h
Go to the documentation of this file.
1
// Copyright 2019 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef UI_ACCESSIBILITY_AX_TREE_MANAGER_MAP_H_
6
#define UI_ACCESSIBILITY_AX_TREE_MANAGER_MAP_H_
7
8
#include <unordered_map>
9
10
#include "
ax_tree_id.h
"
11
#include "
ax_tree_manager.h
"
12
#include "
base/no_destructor.h
"
13
14
namespace
ui
{
15
16
// This class manages AXTreeManager instances. It is a singleton wrapper
17
// around a std::unordered_map. AXTreeID's are used as the key for the map.
18
// Since AXTreeID's might refer to AXTreeIDUnknown, callers should not expect
19
// AXTreeIDUnknown to map to a particular AXTreeManager.
20
class
AX_EXPORT
AXTreeManagerMap
{
21
public
:
22
AXTreeManagerMap
();
23
~AXTreeManagerMap
();
24
25
static
AXTreeManagerMap
& GetInstance();
26
void
AddTreeManager(
AXTreeID
tree_id,
AXTreeManager
*
manager
);
27
void
RemoveTreeManager(
AXTreeID
tree_id);
28
AXTreeManager
* GetManager(
AXTreeID
tree_id);
29
30
// If the child of the provided parent node exists in a separate child tree,
31
// return the tree manager for that child tree. Otherwise, return nullptr.
32
AXTreeManager
* GetManagerForChildTree(
const
AXNode
& parent_node);
33
34
private
:
35
std::unordered_map<AXTreeID, AXTreeManager*, AXTreeIDHash> map_;
36
};
37
38
}
// namespace ui
39
40
#endif
// UI_ACCESSIBILITY_AX_TREE_MANAGER_MAP_H_
AX_EXPORT
#define AX_EXPORT
Definition:
ax_export.h:29
ax_tree_id.h
ax_tree_manager.h
ui::AXNode
Definition:
ax_node.h:33
ui::AXTreeID
Definition:
ax_tree_id.h:18
ui::AXTreeManagerMap
Definition:
ax_tree_manager_map.h:20
ui::AXTreeManager
Definition:
ax_tree_manager.h:18
flutter::manager
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font manager
Definition:
switches.h:218
ui
Definition:
window_binding_handler.h:18
no_destructor.h
Generated on Sun Jun 23 2024 21:55:20 for Flutter Engine by
1.9.4