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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 break; | 278 break; |
279 case AX_ATTR_URL: | 279 case AX_ATTR_URL: |
280 result += " url=" + value; | 280 result += " url=" + value; |
281 break; | 281 break; |
282 case AX_ATTR_NAME: | 282 case AX_ATTR_NAME: |
283 result += " name=" + value; | 283 result += " name=" + value; |
284 break; | 284 break; |
285 case AX_ATTR_VALUE: | 285 case AX_ATTR_VALUE: |
286 result += " value=" + value; | 286 result += " value=" + value; |
287 break; | 287 break; |
| 288 case AX_ATTR_TEXT_INPUT_TYPE: |
| 289 result += " text_input_type=" + value; |
| 290 break; |
288 case AX_STRING_ATTRIBUTE_NONE: | 291 case AX_STRING_ATTRIBUTE_NONE: |
289 break; | 292 break; |
290 } | 293 } |
291 } | 294 } |
292 | 295 |
293 for (size_t i = 0; i < float_attributes.size(); ++i) { | 296 for (size_t i = 0; i < float_attributes.size(); ++i) { |
294 std::string value = DoubleToString(float_attributes[i].second); | 297 std::string value = DoubleToString(float_attributes[i].second); |
295 switch (float_attributes[i].first) { | 298 switch (float_attributes[i].first) { |
296 case AX_ATTR_DOC_LOADING_PROGRESS: | 299 case AX_ATTR_DOC_LOADING_PROGRESS: |
297 result += " doc_progress=" + value; | 300 result += " doc_progress=" + value; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 } | 398 } |
396 } | 399 } |
397 | 400 |
398 if (!child_ids.empty()) | 401 if (!child_ids.empty()) |
399 result += " child_ids=" + IntVectorToString(child_ids); | 402 result += " child_ids=" + IntVectorToString(child_ids); |
400 | 403 |
401 return result; | 404 return result; |
402 } | 405 } |
403 | 406 |
404 } // namespace ui | 407 } // namespace ui |
OLD | NEW |