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 16 matching lines...) Expand all Loading... |
27 case blink::WebAXRoleAlert: | 27 case blink::WebAXRoleAlert: |
28 return result.append("Alert"); | 28 return result.append("Alert"); |
29 case blink::WebAXRoleAnnotation: | 29 case blink::WebAXRoleAnnotation: |
30 return result.append("Annotation"); | 30 return result.append("Annotation"); |
31 case blink::WebAXRoleApplication: | 31 case blink::WebAXRoleApplication: |
32 return result.append("Application"); | 32 return result.append("Application"); |
33 case blink::WebAXRoleArticle: | 33 case blink::WebAXRoleArticle: |
34 return result.append("Article"); | 34 return result.append("Article"); |
35 case blink::WebAXRoleBanner: | 35 case blink::WebAXRoleBanner: |
36 return result.append("Banner"); | 36 return result.append("Banner"); |
| 37 case blink::WebAXRoleBlockquote: |
| 38 return result.append("Blockquote"); |
37 case blink::WebAXRoleBrowser: | 39 case blink::WebAXRoleBrowser: |
38 return result.append("Browser"); | 40 return result.append("Browser"); |
39 case blink::WebAXRoleBusyIndicator: | 41 case blink::WebAXRoleBusyIndicator: |
40 return result.append("BusyIndicator"); | 42 return result.append("BusyIndicator"); |
41 case blink::WebAXRoleButton: | 43 case blink::WebAXRoleButton: |
42 return result.append("Button"); | 44 return result.append("Button"); |
43 case blink::WebAXRoleCanvas: | 45 case blink::WebAXRoleCanvas: |
44 return result.append("Canvas"); | 46 return result.append("Canvas"); |
45 case blink::WebAXRoleCell: | 47 case blink::WebAXRoleCell: |
46 return result.append("Cell"); | 48 return result.append("Cell"); |
(...skipping 1072 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 |