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

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

Issue 671033002: Expose HTML pre tag with correct MSAA+IA2 Role (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uploading expectations for mac and android 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 case blink::WebAXRoleNone: 171 case blink::WebAXRoleNone:
172 return result.append("None"); 172 return result.append("None");
173 case blink::WebAXRoleNote: 173 case blink::WebAXRoleNote:
174 return result.append("Note"); 174 return result.append("Note");
175 case blink::WebAXRoleOutline: 175 case blink::WebAXRoleOutline:
176 return result.append("Outline"); 176 return result.append("Outline");
177 case blink::WebAXRoleParagraph: 177 case blink::WebAXRoleParagraph:
178 return result.append("Paragraph"); 178 return result.append("Paragraph");
179 case blink::WebAXRolePopUpButton: 179 case blink::WebAXRolePopUpButton:
180 return result.append("PopUpButton"); 180 return result.append("PopUpButton");
181 case blink::WebAXRolePre:
182 return result.append("Pre");
181 case blink::WebAXRolePresentational: 183 case blink::WebAXRolePresentational:
182 return result.append("Presentational"); 184 return result.append("Presentational");
183 case blink::WebAXRoleProgressIndicator: 185 case blink::WebAXRoleProgressIndicator:
184 return result.append("ProgressIndicator"); 186 return result.append("ProgressIndicator");
185 case blink::WebAXRoleRadioButton: 187 case blink::WebAXRoleRadioButton:
186 return result.append("RadioButton"); 188 return result.append("RadioButton");
187 case blink::WebAXRoleRadioGroup: 189 case blink::WebAXRoleRadioGroup:
188 return result.append("RadioGroup"); 190 return result.append("RadioGroup");
189 case blink::WebAXRoleRegion: 191 case blink::WebAXRoleRegion:
190 return result.append("Region"); 192 return result.append("Region");
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 v8::Handle<v8::Value> value_handle = gin::CreateHandle( 1123 v8::Handle<v8::Value> value_handle = gin::CreateHandle(
1122 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); 1124 isolate, new RootWebAXObjectProxy(object, this)).ToV8();
1123 if (value_handle.IsEmpty()) 1125 if (value_handle.IsEmpty())
1124 return v8::Handle<v8::Object>(); 1126 return v8::Handle<v8::Object>();
1125 v8::Handle<v8::Object> handle = value_handle->ToObject(); 1127 v8::Handle<v8::Object> handle = value_handle->ToObject();
1126 elements_.Append(handle); 1128 elements_.Append(handle);
1127 return handle; 1129 return handle;
1128 } 1130 }
1129 1131
1130 } // namespace content 1132 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_enum_conversion.cc ('k') | content/test/data/accessibility/pre.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698