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

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

Issue 710123002: AXRoleDescription for html figure tag would be 'figure'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 <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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 std::string GetEquivalentAriaRoleString(const ui::AXRole role) { 63 std::string GetEquivalentAriaRoleString(const ui::AXRole role) {
64 switch (role) { 64 switch (role) {
65 case ui::AX_ROLE_ARTICLE: 65 case ui::AX_ROLE_ARTICLE:
66 return "article"; 66 return "article";
67 case ui::AX_ROLE_BANNER: 67 case ui::AX_ROLE_BANNER:
68 return "banner"; 68 return "banner";
69 case ui::AX_ROLE_BUTTON: 69 case ui::AX_ROLE_BUTTON:
70 return "button"; 70 return "button";
71 case ui::AX_ROLE_COMPLEMENTARY: 71 case ui::AX_ROLE_COMPLEMENTARY:
72 return "complementary"; 72 return "complementary";
73 case ui::AX_ROLE_FIGURE:
74 return "figure";
73 case ui::AX_ROLE_FOOTER: 75 case ui::AX_ROLE_FOOTER:
74 return "contentinfo"; 76 return "contentinfo";
75 case ui::AX_ROLE_IMAGE: 77 case ui::AX_ROLE_IMAGE:
76 return "img"; 78 return "img";
77 case ui::AX_ROLE_MAIN: 79 case ui::AX_ROLE_MAIN:
78 return "main"; 80 return "main";
79 case ui::AX_ROLE_NAVIGATION: 81 case ui::AX_ROLE_NAVIGATION:
80 return "navigation"; 82 return "navigation";
81 case ui::AX_ROLE_RADIO_BUTTON: 83 case ui::AX_ROLE_RADIO_BUTTON:
82 return "radio"; 84 return "radio";
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst); 549 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst);
548 } 550 }
549 551
550 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { 552 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const {
551 if (render_frame_ && render_frame_->GetWebFrame()) 553 if (render_frame_ && render_frame_->GetWebFrame())
552 return render_frame_->GetWebFrame()->document(); 554 return render_frame_->GetWebFrame()->document();
553 return WebDocument(); 555 return WebDocument();
554 } 556 }
555 557
556 } // namespace content 558 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_cocoa.mm ('k') | content/test/data/accessibility/figure.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698