#include <ax_tree_id_registry.h>
Definition at line 34 of file ax_tree_id_registry.h.
◆ FrameID
◆ GetActionHandler()
Definition at line 57 of file ax_tree_id_registry.cc.
57 {
58 auto it = id_to_action_handler_.find(ax_tree_id);
59 if (it == id_to_action_handler_.end())
60 return nullptr;
61 return it->second;
62}
◆ GetAXTreeID()
Definition at line 39 of file ax_tree_id_registry.cc.
39 {
40 auto it = frame_to_ax_tree_id_map_.find(
frame_id);
41 if (it != frame_to_ax_tree_id_map_.end())
42 return it->second;
43
45}
const AXTreeID & AXTreeIDUnknown()
◆ GetFrameID()
Definition at line 30 of file ax_tree_id_registry.cc.
31 {
32 auto it = ax_tree_to_frame_id_map_.find(ax_tree_id);
33 if (it != ax_tree_to_frame_id_map_.end())
34 return it->second;
35
37}
std::pair< int, int > FrameID
◆ GetInstance()
◆ RemoveAXTreeID()
void ui::AXTreeIDRegistry::RemoveAXTreeID |
( |
AXTreeID |
ax_tree_id | ) |
|
Definition at line 70 of file ax_tree_id_registry.cc.
70 {
71 auto frame_it = ax_tree_to_frame_id_map_.find(ax_tree_id);
72 if (frame_it != ax_tree_to_frame_id_map_.end()) {
73 frame_to_ax_tree_id_map_.erase(frame_it->second);
74 ax_tree_to_frame_id_map_.erase(frame_it);
75 }
76
77 auto action_it = id_to_action_handler_.find(ax_tree_id);
78 if (action_it != id_to_action_handler_.end())
79 id_to_action_handler_.erase(action_it);
80}
◆ SetFrameIDForAXTreeID()
void ui::AXTreeIDRegistry::SetFrameIDForAXTreeID |
( |
const FrameID & |
frame_id, |
|
|
const AXTreeID & |
ax_tree_id |
|
) |
| |
Definition at line 18 of file ax_tree_id_registry.cc.
19 {
20 auto it = frame_to_ax_tree_id_map_.find(
frame_id);
21 if (it != frame_to_ax_tree_id_map_.end()) {
23 return;
24 }
25
26 frame_to_ax_tree_id_map_[
frame_id] = ax_tree_id;
27 ax_tree_to_frame_id_map_[ax_tree_id] =
frame_id;
28}
#define BASE_UNREACHABLE()
◆ ~AXTreeIDRegistry()
ui::AXTreeIDRegistry::~AXTreeIDRegistry |
( |
| ) |
|
|
privatevirtual |
◆ base::DefaultSingletonTraits< AXTreeIDRegistry >
The documentation for this class was generated from the following files: