OLD | NEW |
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 case blink::WebAXRoleRadioGroup: | 185 case blink::WebAXRoleRadioGroup: |
186 return result.append("RadioGroup"); | 186 return result.append("RadioGroup"); |
187 case blink::WebAXRoleRegion: | 187 case blink::WebAXRoleRegion: |
188 return result.append("Region"); | 188 return result.append("Region"); |
189 case blink::WebAXRoleRootWebArea: | 189 case blink::WebAXRoleRootWebArea: |
190 return result.append("RootWebArea"); | 190 return result.append("RootWebArea"); |
191 case blink::WebAXRoleRowHeader: | 191 case blink::WebAXRoleRowHeader: |
192 return result.append("RowHeader"); | 192 return result.append("RowHeader"); |
193 case blink::WebAXRoleRow: | 193 case blink::WebAXRoleRow: |
194 return result.append("Row"); | 194 return result.append("Row"); |
| 195 case blink::WebAXRoleRuby: |
| 196 return result.append("Ruby"); |
195 case blink::WebAXRoleRulerMarker: | 197 case blink::WebAXRoleRulerMarker: |
196 return result.append("RulerMarker"); | 198 return result.append("RulerMarker"); |
197 case blink::WebAXRoleRuler: | 199 case blink::WebAXRoleRuler: |
198 return result.append("Ruler"); | 200 return result.append("Ruler"); |
199 case blink::WebAXRoleSVGRoot: | 201 case blink::WebAXRoleSVGRoot: |
200 return result.append("SVGRoot"); | 202 return result.append("SVGRoot"); |
201 case blink::WebAXRoleScrollArea: | 203 case blink::WebAXRoleScrollArea: |
202 return result.append("ScrollArea"); | 204 return result.append("ScrollArea"); |
203 case blink::WebAXRoleScrollBar: | 205 case blink::WebAXRoleScrollBar: |
204 return result.append("ScrollBar"); | 206 return result.append("ScrollBar"); |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 v8::Handle<v8::Value> value_handle = gin::CreateHandle( | 1121 v8::Handle<v8::Value> value_handle = gin::CreateHandle( |
1120 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); | 1122 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); |
1121 if (value_handle.IsEmpty()) | 1123 if (value_handle.IsEmpty()) |
1122 return v8::Handle<v8::Object>(); | 1124 return v8::Handle<v8::Object>(); |
1123 v8::Handle<v8::Object> handle = value_handle->ToObject(); | 1125 v8::Handle<v8::Object> handle = value_handle->ToObject(); |
1124 elements_.Append(handle); | 1126 elements_.Append(handle); |
1125 return handle; | 1127 return handle; |
1126 } | 1128 } |
1127 | 1129 |
1128 } // namespace content | 1130 } // namespace content |
OLD | NEW |