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 <set> | 7 #include <set> |
8 | 8 |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 if (src.actionVerb().length()) { | 358 if (src.actionVerb().length()) { |
359 dst->AddStringAttribute(ui::AX_ATTR_ACTION, src.actionVerb().utf8()); | 359 dst->AddStringAttribute(ui::AX_ATTR_ACTION, src.actionVerb().utf8()); |
360 } | 360 } |
361 if (src.ariaAutoComplete().length()) | 361 if (src.ariaAutoComplete().length()) |
362 dst->AddStringAttribute( | 362 dst->AddStringAttribute( |
363 ui::AX_ATTR_AUTO_COMPLETE, | 363 ui::AX_ATTR_AUTO_COMPLETE, |
364 src.ariaAutoComplete().utf8()); | 364 src.ariaAutoComplete().utf8()); |
365 if (src.isAriaReadOnly()) | 365 if (src.isAriaReadOnly()) |
366 dst->AddBoolAttribute(ui::AX_ATTR_ARIA_READONLY, true); | 366 dst->AddBoolAttribute(ui::AX_ATTR_ARIA_READONLY, true); |
367 if (src.isButtonStateMixed()) | 367 if (src.isButtonStateMixed()) |
368 dst->AddBoolAttribute(ui::AX_ATTR_BUTTON_MIXED, true); | 368 dst->AddBoolAttribute(ui::AX_ATTR_STATE_MIXED, true); |
369 if (src.canSetValueAttribute()) | 369 if (src.canSetValueAttribute()) |
370 dst->AddBoolAttribute(ui::AX_ATTR_CAN_SET_VALUE, true); | 370 dst->AddBoolAttribute(ui::AX_ATTR_CAN_SET_VALUE, true); |
371 if (src.hasComputedStyle()) { | 371 if (src.hasComputedStyle()) { |
372 dst->AddStringAttribute( | 372 dst->AddStringAttribute( |
373 ui::AX_ATTR_DISPLAY, src.computedStyleDisplay().utf8()); | 373 ui::AX_ATTR_DISPLAY, src.computedStyleDisplay().utf8()); |
374 } | 374 } |
375 if (src.keyboardShortcut().length()) { | 375 if (src.keyboardShortcut().length()) { |
376 dst->AddStringAttribute( | 376 dst->AddStringAttribute( |
377 ui::AX_ATTR_SHORTCUT, | 377 ui::AX_ATTR_SHORTCUT, |
378 src.keyboardShortcut().utf8()); | 378 src.keyboardShortcut().utf8()); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 } | 621 } |
622 } | 622 } |
623 | 623 |
624 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { | 624 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { |
625 if (render_frame_ && render_frame_->GetWebFrame()) | 625 if (render_frame_ && render_frame_->GetWebFrame()) |
626 return render_frame_->GetWebFrame()->document(); | 626 return render_frame_->GetWebFrame()->document(); |
627 return WebDocument(); | 627 return WebDocument(); |
628 } | 628 } |
629 | 629 |
630 } // namespace content | 630 } // namespace content |
OLD | NEW |