#include <test_ax_node_helper.h>
Definition at line 18 of file test_ax_node_helper.h.
◆ ~TestAXNodeHelper()
ui::TestAXNodeHelper::~TestAXNodeHelper |
( |
| ) |
|
|
default |
◆ GetBoundsRect()
Definition at line 62 of file test_ax_node_helper.cc.
65 {
66 switch (coordinate_system) {
68
69
71
73
74
75
76
77 if (offscreen_result) {
78 *offscreen_result = DetermineOffscreenResult(
bounds);
79 }
80
82 }
87 }
88}
Optional< SkRect > bounds
Rect ToEnclosingRect(const RectF &r)
#define BASE_UNREACHABLE()
◆ GetInnerTextRangeBoundsRect()
Definition at line 90 of file test_ax_node_helper.cc.
95 {
96 switch (coordinate_system) {
98
99
102
103
104
105
107 bounds = GetInlineTextRect(start_offset, end_offset);
109 InternalChildCount() > 0) {
110 TestAXNodeHelper* child = InternalGetChild(0);
111 if (child != nullptr &&
113 bounds = child->GetInlineTextRect(start_offset, end_offset);
114 }
115 }
116
117
118
119
120 if (offscreen_result) {
121 *offscreen_result = DetermineOffscreenResult(
bounds);
122 }
123
125 }
130 }
131}
◆ GetOrCreate()
Definition at line 43 of file test_ax_node_helper.cc.
43 {
44 if (!tree || !node)
45 return nullptr;
46
47 if (!tree->HasObserver(&g_ax_tree_observer))
48 tree->AddObserver(&g_ax_tree_observer);
49 auto iter = g_node_id_to_helper_map.find(node->id());
50 if (iter != g_node_id_to_helper_map.end())
51 return iter->second;
52 TestAXNodeHelper* helper = new TestAXNodeHelper(tree, node);
53 g_node_id_to_helper_map[node->id()] = helper;
54 return helper;
55}
The documentation for this class was generated from the following files: