| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 base::string16 string_value; | 338 base::string16 string_value; |
| 339 value->GetAsString(&string_value); | 339 value->GetAsString(&string_value); |
| 340 WriteAttribute(false, | 340 WriteAttribute(false, |
| 341 base::StringPrintf(L"%ls='%ls'", | 341 base::StringPrintf(L"%ls='%ls'", |
| 342 base::UTF8ToUTF16(attribute_name).c_str(), | 342 base::UTF8ToUTF16(attribute_name).c_str(), |
| 343 string_value.c_str()), | 343 string_value.c_str()), |
| 344 &line); | 344 &line); |
| 345 break; | 345 break; |
| 346 } | 346 } |
| 347 case base::Value::TYPE_INTEGER: { | 347 case base::Value::TYPE_INTEGER: { |
| 348 int int_value; | 348 int int_value = 0; |
| 349 value->GetAsInteger(&int_value); | 349 value->GetAsInteger(&int_value); |
| 350 WriteAttribute(false, | 350 WriteAttribute(false, |
| 351 base::StringPrintf(L"%ls=%d", | 351 base::StringPrintf(L"%ls=%d", |
| 352 base::UTF8ToUTF16( | 352 base::UTF8ToUTF16( |
| 353 attribute_name).c_str(), | 353 attribute_name).c_str(), |
| 354 int_value), | 354 int_value), |
| 355 &line); | 355 &line); |
| 356 break; | 356 break; |
| 357 } | 357 } |
| 358 case base::Value::TYPE_DOUBLE: { | 358 case base::Value::TYPE_DOUBLE: { |
| 359 double double_value; | 359 double double_value = 0.0; |
| 360 value->GetAsDouble(&double_value); | 360 value->GetAsDouble(&double_value); |
| 361 WriteAttribute(false, | 361 WriteAttribute(false, |
| 362 base::StringPrintf(L"%ls=%.2f", | 362 base::StringPrintf(L"%ls=%.2f", |
| 363 base::UTF8ToUTF16( | 363 base::UTF8ToUTF16( |
| 364 attribute_name).c_str(), | 364 attribute_name).c_str(), |
| 365 double_value), | 365 double_value), |
| 366 &line); | 366 &line); |
| 367 break; | 367 break; |
| 368 } | 368 } |
| 369 case base::Value::TYPE_LIST: { | 369 case base::Value::TYPE_LIST: { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 const std::string AccessibilityTreeFormatterWin::GetAllowString() { | 418 const std::string AccessibilityTreeFormatterWin::GetAllowString() { |
| 419 return "@WIN-ALLOW:"; | 419 return "@WIN-ALLOW:"; |
| 420 } | 420 } |
| 421 | 421 |
| 422 const std::string AccessibilityTreeFormatterWin::GetDenyString() { | 422 const std::string AccessibilityTreeFormatterWin::GetDenyString() { |
| 423 return "@WIN-DENY:"; | 423 return "@WIN-DENY:"; |
| 424 } | 424 } |
| 425 | 425 |
| 426 } // namespace content | 426 } // namespace content |
| OLD | NEW |