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

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

Issue 709523002: AX_ROLE_HORIZONTAL_RULE is not required. (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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_FOOTER: 73 case ui::AX_ROLE_FOOTER:
74 return "contentinfo"; 74 return "contentinfo";
75 case ui::AX_ROLE_HORIZONTAL_RULE:
76 return "separator";
77 case ui::AX_ROLE_IMAGE: 75 case ui::AX_ROLE_IMAGE:
78 return "img"; 76 return "img";
79 case ui::AX_ROLE_MAIN: 77 case ui::AX_ROLE_MAIN:
80 return "main"; 78 return "main";
81 case ui::AX_ROLE_NAVIGATION: 79 case ui::AX_ROLE_NAVIGATION:
82 return "navigation"; 80 return "navigation";
83 case ui::AX_ROLE_RADIO_BUTTON: 81 case ui::AX_ROLE_RADIO_BUTTON:
84 return "radio"; 82 return "radio";
85 case ui::AX_ROLE_REGION: 83 case ui::AX_ROLE_REGION:
86 return "region"; 84 return "region";
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst); 547 AddIntListAttributeFromWebObjects(ui::AX_ATTR_OWNS_IDS, owns, dst);
550 } 548 }
551 549
552 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const { 550 blink::WebDocument BlinkAXTreeSource::GetMainDocument() const {
553 if (render_frame_ && render_frame_->GetWebFrame()) 551 if (render_frame_ && render_frame_->GetWebFrame())
554 return render_frame_->GetWebFrame()->document(); 552 return render_frame_->GetWebFrame()->document();
555 return WebDocument(); 553 return WebDocument();
556 } 554 }
557 555
558 } // namespace content 556 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_enum_conversion.cc ('k') | content/shell/renderer/test_runner/web_ax_object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698