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.h" | 5 #include "content/browser/accessibility/accessibility_tree_formatter.h" |
6 | 6 |
7 #include <oleacc.h> | 7 #include <oleacc.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 } | 390 } |
391 case base::Value::Type::LIST: { | 391 case base::Value::Type::LIST: { |
392 // Currently all list values are string and are written without | 392 // Currently all list values are string and are written without |
393 // attribute names. | 393 // attribute names. |
394 const base::ListValue* list_value; | 394 const base::ListValue* list_value; |
395 value->GetAsList(&list_value); | 395 value->GetAsList(&list_value); |
396 for (base::ListValue::const_iterator it = list_value->begin(); | 396 for (base::ListValue::const_iterator it = list_value->begin(); |
397 it != list_value->end(); | 397 it != list_value->end(); |
398 ++it) { | 398 ++it) { |
399 base::string16 string_value; | 399 base::string16 string_value; |
400 if ((*it)->GetAsString(&string_value)) | 400 if (it->GetAsString(&string_value)) |
401 WriteAttribute(false, string_value, &line); | 401 WriteAttribute(false, string_value, &line); |
402 } | 402 } |
403 break; | 403 break; |
404 } | 404 } |
405 case base::Value::Type::DICTIONARY: { | 405 case base::Value::Type::DICTIONARY: { |
406 // Currently all dictionary values are coordinates. | 406 // Currently all dictionary values are coordinates. |
407 // Revisit this if that changes. | 407 // Revisit this if that changes. |
408 const base::DictionaryValue* dict_value; | 408 const base::DictionaryValue* dict_value; |
409 value->GetAsDictionary(&dict_value); | 409 value->GetAsDictionary(&dict_value); |
410 if (strcmp(attribute_name, "size") == 0) { | 410 if (strcmp(attribute_name, "size") == 0) { |
(...skipping 28 matching lines...) Expand all Loading... |
439 | 439 |
440 const std::string AccessibilityTreeFormatterWin::GetAllowString() { | 440 const std::string AccessibilityTreeFormatterWin::GetAllowString() { |
441 return "@WIN-ALLOW:"; | 441 return "@WIN-ALLOW:"; |
442 } | 442 } |
443 | 443 |
444 const std::string AccessibilityTreeFormatterWin::GetDenyString() { | 444 const std::string AccessibilityTreeFormatterWin::GetDenyString() { |
445 return "@WIN-DENY:"; | 445 return "@WIN-DENY:"; |
446 } | 446 } |
447 | 447 |
448 } // namespace content | 448 } // namespace content |
OLD | NEW |