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/renderer/accessibility_node_serializer.h" | 5 #include "content/renderer/accessibility_node_serializer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 } | 495 } |
496 container_accessible = container_accessible.parentObject(); | 496 container_accessible = container_accessible.parentObject(); |
497 } | 497 } |
498 | 498 |
499 if (dst->role == dst->ROLE_PROGRESS_INDICATOR || | 499 if (dst->role == dst->ROLE_PROGRESS_INDICATOR || |
500 dst->role == dst->ROLE_SCROLLBAR || | 500 dst->role == dst->ROLE_SCROLLBAR || |
501 dst->role == dst->ROLE_SLIDER || | 501 dst->role == dst->ROLE_SLIDER || |
502 dst->role == dst->ROLE_SPIN_BUTTON) { | 502 dst->role == dst->ROLE_SPIN_BUTTON) { |
503 dst->float_attributes[dst->ATTR_VALUE_FOR_RANGE] = src.valueForRange(); | 503 dst->float_attributes[dst->ATTR_VALUE_FOR_RANGE] = src.valueForRange(); |
504 dst->float_attributes[dst->ATTR_MAX_VALUE_FOR_RANGE] = | 504 dst->float_attributes[dst->ATTR_MAX_VALUE_FOR_RANGE] = |
| 505 src.maxValueForRange(); |
| 506 dst->float_attributes[dst->ATTR_MIN_VALUE_FOR_RANGE] = |
505 src.minValueForRange(); | 507 src.minValueForRange(); |
506 dst->float_attributes[dst->ATTR_MIN_VALUE_FOR_RANGE] = | |
507 src.maxValueForRange(); | |
508 } | 508 } |
509 | 509 |
510 if (dst->role == dst->ROLE_DOCUMENT || | 510 if (dst->role == dst->ROLE_DOCUMENT || |
511 dst->role == dst->ROLE_WEB_AREA) { | 511 dst->role == dst->ROLE_WEB_AREA) { |
512 const WebDocument& document = src.document(); | 512 const WebDocument& document = src.document(); |
513 if (dst->name.empty()) | 513 if (dst->name.empty()) |
514 dst->name = document.title(); | 514 dst->name = document.title(); |
515 dst->string_attributes[dst->ATTR_DOC_TITLE] = document.title(); | 515 dst->string_attributes[dst->ATTR_DOC_TITLE] = document.title(); |
516 dst->string_attributes[dst->ATTR_DOC_URL] = document.url().spec().utf16(); | 516 dst->string_attributes[dst->ATTR_DOC_URL] = document.url().spec().utf16(); |
517 dst->string_attributes[dst->ATTR_DOC_MIMETYPE] = | 517 dst->string_attributes[dst->ATTR_DOC_MIMETYPE] = |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 &dst->children.back(), | 607 &dst->children.back(), |
608 include_children); | 608 include_children); |
609 } else { | 609 } else { |
610 dst->indirect_child_ids.push_back(child_id); | 610 dst->indirect_child_ids.push_back(child_id); |
611 } | 611 } |
612 } | 612 } |
613 } | 613 } |
614 } | 614 } |
615 | 615 |
616 } // namespace content | 616 } // namespace content |
OLD | NEW |