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/test_runner/web_ax_object_proxy.h" | 5 #include "content/shell/test_runner/web_ax_object_proxy.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // avoid rebaselining layout tests. | 27 // avoid rebaselining layout tests. |
28 std::string RoleToString(blink::WebAXRole role) { | 28 std::string RoleToString(blink::WebAXRole role) { |
29 std::string result = "AXRole: AX"; | 29 std::string result = "AXRole: AX"; |
30 switch (role) { | 30 switch (role) { |
31 case blink::WebAXRoleAbbr: | 31 case blink::WebAXRoleAbbr: |
32 return result.append("Abbr"); | 32 return result.append("Abbr"); |
33 case blink::WebAXRoleAlertDialog: | 33 case blink::WebAXRoleAlertDialog: |
34 return result.append("AlertDialog"); | 34 return result.append("AlertDialog"); |
35 case blink::WebAXRoleAlert: | 35 case blink::WebAXRoleAlert: |
36 return result.append("Alert"); | 36 return result.append("Alert"); |
| 37 case blink::WebAXRoleAnchor: |
| 38 return result.append("Anchor"); |
37 case blink::WebAXRoleAnnotation: | 39 case blink::WebAXRoleAnnotation: |
38 return result.append("Annotation"); | 40 return result.append("Annotation"); |
39 case blink::WebAXRoleApplication: | 41 case blink::WebAXRoleApplication: |
40 return result.append("Application"); | 42 return result.append("Application"); |
41 case blink::WebAXRoleArticle: | 43 case blink::WebAXRoleArticle: |
42 return result.append("Article"); | 44 return result.append("Article"); |
43 case blink::WebAXRoleAudio: | 45 case blink::WebAXRoleAudio: |
44 return result.append("Audio"); | 46 return result.append("Audio"); |
45 case blink::WebAXRoleBanner: | 47 case blink::WebAXRoleBanner: |
46 return result.append("Banner"); | 48 return result.append("Banner"); |
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1757 v8::Local<v8::Value> value_handle = | 1759 v8::Local<v8::Value> value_handle = |
1758 gin::CreateHandle(isolate, new WebAXObjectProxy(object, this)).ToV8(); | 1760 gin::CreateHandle(isolate, new WebAXObjectProxy(object, this)).ToV8(); |
1759 if (value_handle.IsEmpty()) | 1761 if (value_handle.IsEmpty()) |
1760 return v8::Local<v8::Object>(); | 1762 return v8::Local<v8::Object>(); |
1761 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); | 1763 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); |
1762 elements_.Append(handle); | 1764 elements_.Append(handle); |
1763 return handle; | 1765 return handle; |
1764 } | 1766 } |
1765 | 1767 |
1766 } // namespace test_runner | 1768 } // namespace test_runner |
OLD | NEW |