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 #include "ui/accessibility/ax_node_data.h" | 5 #include "ui/accessibility/ax_node_data.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 result += " text_direction=rl"; | 235 result += " text_direction=rl"; |
236 break; | 236 break; |
237 case AX_TEXT_DIRECTION_TB: | 237 case AX_TEXT_DIRECTION_TB: |
238 result += " text_direction=tb"; | 238 result += " text_direction=tb"; |
239 break; | 239 break; |
240 case AX_TEXT_DIRECTION_BT: | 240 case AX_TEXT_DIRECTION_BT: |
241 result += " text_direction=bt"; | 241 result += " text_direction=bt"; |
242 break; | 242 break; |
243 } | 243 } |
244 break; | 244 break; |
| 245 case AX_ATTR_SET_SIZE: |
| 246 result += " setsize=" + value; |
| 247 break; |
| 248 case AX_ATTR_POS_IN_SET: |
| 249 result += " posinset=" + value; |
| 250 break; |
245 case AX_ATTR_INVALID_STATE: | 251 case AX_ATTR_INVALID_STATE: |
246 switch (int_attributes[i].second) { | 252 switch (int_attributes[i].second) { |
247 case AX_INVALID_STATE_FALSE: | 253 case AX_INVALID_STATE_FALSE: |
248 result += " invalid_state=false"; | 254 result += " invalid_state=false"; |
249 break; | 255 break; |
250 case AX_INVALID_STATE_TRUE: | 256 case AX_INVALID_STATE_TRUE: |
251 result += " invalid_state=true"; | 257 result += " invalid_state=true"; |
252 break; | 258 break; |
253 case AX_INVALID_STATE_SPELLING: | 259 case AX_INVALID_STATE_SPELLING: |
254 result += " invalid_state=spelling"; | 260 result += " invalid_state=spelling"; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 } | 460 } |
455 } | 461 } |
456 | 462 |
457 if (!child_ids.empty()) | 463 if (!child_ids.empty()) |
458 result += " child_ids=" + IntVectorToString(child_ids); | 464 result += " child_ids=" + IntVectorToString(child_ids); |
459 | 465 |
460 return result; | 466 return result; |
461 } | 467 } |
462 | 468 |
463 } // namespace ui | 469 } // namespace ui |
OLD | NEW |