OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/accessibility/accessibility_tree_formatter_utils_win.h
" | 5 #include "content/browser/accessibility/accessibility_tree_formatter_utils_win.h
" |
6 | 6 |
7 #include <oleacc.h> | 7 #include <oleacc.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 IA_STATE_MAP(SIZEABLE) | 193 IA_STATE_MAP(SIZEABLE) |
194 IA_STATE_MAP(TRAVERSED) | 194 IA_STATE_MAP(TRAVERSED) |
195 IA_STATE_MAP(UNAVAILABLE) | 195 IA_STATE_MAP(UNAVAILABLE) |
196 | 196 |
197 // IAccessible2 states. | 197 // IAccessible2 states. |
198 IA2_STATE_MAP(IA2_STATE_ACTIVE) | 198 IA2_STATE_MAP(IA2_STATE_ACTIVE) |
199 IA2_STATE_MAP(IA2_STATE_ARMED) | 199 IA2_STATE_MAP(IA2_STATE_ARMED) |
200 IA2_STATE_MAP(IA2_STATE_CHECKABLE) | 200 IA2_STATE_MAP(IA2_STATE_CHECKABLE) |
201 IA2_STATE_MAP(IA2_STATE_DEFUNCT) | 201 IA2_STATE_MAP(IA2_STATE_DEFUNCT) |
202 IA2_STATE_MAP(IA2_STATE_EDITABLE) | 202 IA2_STATE_MAP(IA2_STATE_EDITABLE) |
| 203 IA2_STATE_MAP(IA2_STATE_HORIZONTAL) |
203 IA2_STATE_MAP(IA2_STATE_ICONIFIED) | 204 IA2_STATE_MAP(IA2_STATE_ICONIFIED) |
204 IA2_STATE_MAP(IA2_STATE_INVALID_ENTRY) | 205 IA2_STATE_MAP(IA2_STATE_INVALID_ENTRY) |
205 IA2_STATE_MAP(IA2_STATE_MANAGES_DESCENDANTS) | 206 IA2_STATE_MAP(IA2_STATE_MANAGES_DESCENDANTS) |
206 IA2_STATE_MAP(IA2_STATE_MODAL) | 207 IA2_STATE_MAP(IA2_STATE_MODAL) |
207 IA2_STATE_MAP(IA2_STATE_MULTI_LINE) | 208 IA2_STATE_MAP(IA2_STATE_MULTI_LINE) |
208 IA2_STATE_MAP(IA2_STATE_REQUIRED) | 209 IA2_STATE_MAP(IA2_STATE_REQUIRED) |
209 IA2_STATE_MAP(IA2_STATE_SELECTABLE_TEXT) | 210 IA2_STATE_MAP(IA2_STATE_SELECTABLE_TEXT) |
210 IA2_STATE_MAP(IA2_STATE_SINGLE_LINE) | 211 IA2_STATE_MAP(IA2_STATE_SINGLE_LINE) |
211 IA2_STATE_MAP(IA2_STATE_STALE) | 212 IA2_STATE_MAP(IA2_STATE_STALE) |
212 IA2_STATE_MAP(IA2_STATE_SUPPORTS_AUTOCOMPLETION) | 213 IA2_STATE_MAP(IA2_STATE_SUPPORTS_AUTOCOMPLETION) |
213 IA2_STATE_MAP(IA2_STATE_TRANSIENT) | 214 IA2_STATE_MAP(IA2_STATE_TRANSIENT) |
| 215 IA2_STATE_MAP(IA2_STATE_VERTICAL) |
214 | 216 |
215 // Untested states include those that would be repeated on nearly every node, | 217 // Untested states include those that would be repeated on nearly every node, |
216 // or would vary based on window size. | 218 // or would vary based on window size. |
217 // IA2_STATE_MAP(IA2_STATE_HORIZONTAL) // Untested. | |
218 // IA2_STATE_MAP(IA2_STATE_OPAQUE) // Untested. | 219 // IA2_STATE_MAP(IA2_STATE_OPAQUE) // Untested. |
219 // IA2_STATE_MAP(IA2_STATE_VERTICAL) // Untested. | |
220 } | 220 } |
221 | 221 |
222 } // namespace. | 222 } // namespace. |
223 | 223 |
224 base::string16 IAccessibleRoleToString(int32 ia_role) { | 224 base::string16 IAccessibleRoleToString(int32 ia_role) { |
225 return AccessibilityRoleStateMap::GetInstance()->ia_role_string_map[ia_role]; | 225 return AccessibilityRoleStateMap::GetInstance()->ia_role_string_map[ia_role]; |
226 } | 226 } |
227 | 227 |
228 base::string16 IAccessible2RoleToString(int32 ia_role) { | 228 base::string16 IAccessible2RoleToString(int32 ia_role) { |
229 return AccessibilityRoleStateMap::GetInstance()->ia2_role_string_map[ia_role]; | 229 return AccessibilityRoleStateMap::GetInstance()->ia2_role_string_map[ia_role]; |
(...skipping 27 matching lines...) Expand all Loading... |
257 } | 257 } |
258 } | 258 } |
259 | 259 |
260 base::string16 IAccessible2StateToString(int32 ia2_state) { | 260 base::string16 IAccessible2StateToString(int32 ia2_state) { |
261 std::vector<base::string16> strings; | 261 std::vector<base::string16> strings; |
262 IAccessible2StateToStringVector(ia2_state, &strings); | 262 IAccessible2StateToStringVector(ia2_state, &strings); |
263 return JoinString(strings, ','); | 263 return JoinString(strings, ','); |
264 } | 264 } |
265 | 265 |
266 } // namespace content | 266 } // namespace content |
OLD | NEW |