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

Side by Side Diff: components/test_runner/web_ax_object_proxy.cc

Issue 651133003: Make HTML5 <mark> accessible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating mac expectations Created 5 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
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/app/strings/content_strings.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/test_runner/web_ax_object_proxy.h" 5 #include "components/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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 case blink::WebAXRoleListItem: 125 case blink::WebAXRoleListItem:
126 return result.append("ListItem"); 126 return result.append("ListItem");
127 case blink::WebAXRoleListMarker: 127 case blink::WebAXRoleListMarker:
128 return result.append("ListMarker"); 128 return result.append("ListMarker");
129 case blink::WebAXRoleList: 129 case blink::WebAXRoleList:
130 return result.append("List"); 130 return result.append("List");
131 case blink::WebAXRoleLog: 131 case blink::WebAXRoleLog:
132 return result.append("Log"); 132 return result.append("Log");
133 case blink::WebAXRoleMain: 133 case blink::WebAXRoleMain:
134 return result.append("Main"); 134 return result.append("Main");
135 case blink::WebAXRoleMark:
136 return result.append("Mark");
135 case blink::WebAXRoleMarquee: 137 case blink::WebAXRoleMarquee:
136 return result.append("Marquee"); 138 return result.append("Marquee");
137 case blink::WebAXRoleMath: 139 case blink::WebAXRoleMath:
138 return result.append("Math"); 140 return result.append("Math");
139 case blink::WebAXRoleMenuBar: 141 case blink::WebAXRoleMenuBar:
140 return result.append("MenuBar"); 142 return result.append("MenuBar");
141 case blink::WebAXRoleMenuButton: 143 case blink::WebAXRoleMenuButton:
142 return result.append("MenuButton"); 144 return result.append("MenuButton");
143 case blink::WebAXRoleMenuItem: 145 case blink::WebAXRoleMenuItem:
144 return result.append("MenuItem"); 146 return result.append("MenuItem");
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 v8::Local<v8::Value> value_handle = gin::CreateHandle( 1337 v8::Local<v8::Value> value_handle = gin::CreateHandle(
1336 isolate, new WebAXObjectProxy(object, this)).ToV8(); 1338 isolate, new WebAXObjectProxy(object, this)).ToV8();
1337 if (value_handle.IsEmpty()) 1339 if (value_handle.IsEmpty())
1338 return v8::Local<v8::Object>(); 1340 return v8::Local<v8::Object>();
1339 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); 1341 v8::Local<v8::Object> handle = value_handle->ToObject(isolate);
1340 elements_.Append(handle); 1342 elements_.Append(handle);
1341 return handle; 1343 return handle;
1342 } 1344 }
1343 1345
1344 } // namespace test_runner 1346 } // namespace test_runner
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/app/strings/content_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698