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

Side by Side Diff: content/shell/renderer/test_runner/web_ax_object_proxy.cc

Issue 695133002: ARIA role math and HTML math element are not exposed correctly. (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/shell/renderer/test_runner/web_ax_object_proxy.h" 5 #include "content/shell/renderer/test_runner/web_ax_object_proxy.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "gin/handle.h" 8 #include "gin/handle.h"
9 #include "third_party/WebKit/public/platform/WebPoint.h" 9 #include "third_party/WebKit/public/platform/WebPoint.h"
10 #include "third_party/WebKit/public/platform/WebRect.h" 10 #include "third_party/WebKit/public/platform/WebRect.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 case blink::WebAXRoleListMarker: 135 case blink::WebAXRoleListMarker:
136 return result.append("ListMarker"); 136 return result.append("ListMarker");
137 case blink::WebAXRoleList: 137 case blink::WebAXRoleList:
138 return result.append("List"); 138 return result.append("List");
139 case blink::WebAXRoleLog: 139 case blink::WebAXRoleLog:
140 return result.append("Log"); 140 return result.append("Log");
141 case blink::WebAXRoleMain: 141 case blink::WebAXRoleMain:
142 return result.append("Main"); 142 return result.append("Main");
143 case blink::WebAXRoleMarquee: 143 case blink::WebAXRoleMarquee:
144 return result.append("Marquee"); 144 return result.append("Marquee");
145 case blink::WebAXRoleMathElement:
146 return result.append("MathElement");
147 case blink::WebAXRoleMath: 145 case blink::WebAXRoleMath:
148 return result.append("Math"); 146 return result.append("Math");
149 case blink::WebAXRoleMatte: 147 case blink::WebAXRoleMatte:
150 return result.append("Matte"); 148 return result.append("Matte");
151 case blink::WebAXRoleMenuBar: 149 case blink::WebAXRoleMenuBar:
152 return result.append("MenuBar"); 150 return result.append("MenuBar");
153 case blink::WebAXRoleMenuButton: 151 case blink::WebAXRoleMenuButton:
154 return result.append("MenuButton"); 152 return result.append("MenuButton");
155 case blink::WebAXRoleMenuItem: 153 case blink::WebAXRoleMenuItem:
156 return result.append("MenuItem"); 154 return result.append("MenuItem");
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 v8::Handle<v8::Value> value_handle = gin::CreateHandle( 1121 v8::Handle<v8::Value> value_handle = gin::CreateHandle(
1124 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); 1122 isolate, new RootWebAXObjectProxy(object, this)).ToV8();
1125 if (value_handle.IsEmpty()) 1123 if (value_handle.IsEmpty())
1126 return v8::Handle<v8::Object>(); 1124 return v8::Handle<v8::Object>();
1127 v8::Handle<v8::Object> handle = value_handle->ToObject(); 1125 v8::Handle<v8::Object> handle = value_handle->ToObject();
1128 elements_.Append(handle); 1126 elements_.Append(handle);
1129 return handle; 1127 return handle;
1130 } 1128 }
1131 1129
1132 } // namespace content 1130 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_tree_source.cc ('k') | content/test/data/accessibility/aria-math.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698