OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/blink_ax_tree_source.h" | 5 #include "content/renderer/accessibility/blink_ax_tree_source.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
554 if (src.HasComputedStyle()) { | 554 if (src.HasComputedStyle()) { |
555 dst->AddStringAttribute(ui::AX_ATTR_DISPLAY, | 555 dst->AddStringAttribute(ui::AX_ATTR_DISPLAY, |
556 src.ComputedStyleDisplay().Utf8()); | 556 src.ComputedStyleDisplay().Utf8()); |
557 } | 557 } |
558 | 558 |
559 if (src.Language().length()) { | 559 if (src.Language().length()) { |
560 if (parent.IsNull() || parent.Language() != src.Language()) | 560 if (parent.IsNull() || parent.Language() != src.Language()) |
561 dst->AddStringAttribute(ui::AX_ATTR_LANGUAGE, src.Language().Utf8()); | 561 dst->AddStringAttribute(ui::AX_ATTR_LANGUAGE, src.Language().Utf8()); |
562 } | 562 } |
563 | 563 |
564 if (src.KeyboardShortcut().length()) { | 564 if (src.KeyboardShortcut().length()) { |
dmazzoni
2017/06/06 04:44:17
Note that AX_ATTR_KEY_SHORTCUTS may already be set
| |
565 dst->AddStringAttribute(ui::AX_ATTR_SHORTCUT, | 565 dst->AddStringAttribute(ui::AX_ATTR_KEY_SHORTCUTS, |
566 src.KeyboardShortcut().Utf8()); | 566 src.KeyboardShortcut().Utf8()); |
567 } | 567 } |
568 | 568 |
569 if (!src.NextOnLine().IsDetached()) { | 569 if (!src.NextOnLine().IsDetached()) { |
570 dst->AddIntAttribute(ui::AX_ATTR_NEXT_ON_LINE_ID, | 570 dst->AddIntAttribute(ui::AX_ATTR_NEXT_ON_LINE_ID, |
571 src.NextOnLine().AxID()); | 571 src.NextOnLine().AxID()); |
572 } | 572 } |
573 | 573 |
574 if (!src.PreviousOnLine().IsDetached()) { | 574 if (!src.PreviousOnLine().IsDetached()) { |
575 dst->AddIntAttribute(ui::AX_ATTR_PREVIOUS_ON_LINE_ID, | 575 dst->AddIntAttribute(ui::AX_ATTR_PREVIOUS_ON_LINE_ID, |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
888 return WebAXObject(); | 888 return WebAXObject(); |
889 | 889 |
890 WebDocument document = render_frame_->GetWebFrame()->GetDocument(); | 890 WebDocument document = render_frame_->GetWebFrame()->GetDocument(); |
891 if (!document.IsNull()) | 891 if (!document.IsNull()) |
892 return document.AccessibilityObject(); | 892 return document.AccessibilityObject(); |
893 | 893 |
894 return WebAXObject(); | 894 return WebAXObject(); |
895 } | 895 } |
896 | 896 |
897 } // namespace content | 897 } // namespace content |
OLD | NEW |