Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1251)

Side by Side Diff: content/browser/accessibility/accessibility_tree_formatter_win.cc

Issue 2740143002: Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Comment Updates Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698