OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 6 #define UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "ui/accessibility/ax_enums.h" | 17 #include "ui/accessibility/ax_enums.h" |
18 #include "ui/accessibility/ax_export.h" | 18 #include "ui/accessibility/ax_export.h" |
19 #include "ui/gfx/geometry/rect_f.h" | 19 #include "ui/gfx/geometry/rect_f.h" |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 class Transform; | 22 class Transform; |
23 }; | 23 }; |
24 | 24 |
25 namespace ui { | 25 namespace ui { |
26 | 26 |
| 27 // Return true if |attr| should be interpreted as the id of another node |
| 28 // in the same tree. |
| 29 AX_EXPORT bool IsNodeIdIntAttribute(AXIntAttribute attr); |
| 30 |
| 31 // Return true if |attr| should be interpreted as a list of ids of |
| 32 // nodes in the same tree. |
| 33 AX_EXPORT bool IsNodeIdIntListAttribute(AXIntListAttribute attr); |
| 34 |
27 // A compact representation of the accessibility information for a | 35 // A compact representation of the accessibility information for a |
28 // single accessible object, in a form that can be serialized and sent from | 36 // single accessible object, in a form that can be serialized and sent from |
29 // one process to another. | 37 // one process to another. |
30 struct AX_EXPORT AXNodeData { | 38 struct AX_EXPORT AXNodeData { |
31 AXNodeData(); | 39 AXNodeData(); |
32 virtual ~AXNodeData(); | 40 virtual ~AXNodeData(); |
33 | 41 |
34 AXNodeData(const AXNodeData& other); | 42 AXNodeData(const AXNodeData& other); |
35 AXNodeData& operator=(AXNodeData other); | 43 AXNodeData& operator=(AXNodeData other); |
36 | 44 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform | 144 // NOTE: this member is a std::unique_ptr because it's rare and gfx::Transform |
137 // takes up a fair amount of space. The assignment operator and copy | 145 // takes up a fair amount of space. The assignment operator and copy |
138 // constructor both make a duplicate of the owned pointer, so it acts more | 146 // constructor both make a duplicate of the owned pointer, so it acts more |
139 // like a member than a pointer. | 147 // like a member than a pointer. |
140 std::unique_ptr<gfx::Transform> transform; | 148 std::unique_ptr<gfx::Transform> transform; |
141 }; | 149 }; |
142 | 150 |
143 } // namespace ui | 151 } // namespace ui |
144 | 152 |
145 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ | 153 #endif // UI_ACCESSIBILITY_AX_NODE_DATA_H_ |
OLD | NEW |