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

Side by Side Diff: content/renderer/accessibility/blink_ax_tree_source.cc

Issue 2849063002: Forward BrowserAccessibilityWin::get_accKeyboardShortcut to the platform node (Closed)
Patch Set: remove SHORTCUT Created 3 years, 6 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 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
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
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
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_com_win.cc ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698