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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 case blink::WebAXRoleIgnored: | 103 case blink::WebAXRoleIgnored: |
104 return result.append("Ignored"); | 104 return result.append("Ignored"); |
105 case blink::WebAXRoleImageMapLink: | 105 case blink::WebAXRoleImageMapLink: |
106 return result.append("ImageMapLink"); | 106 return result.append("ImageMapLink"); |
107 case blink::WebAXRoleImageMap: | 107 case blink::WebAXRoleImageMap: |
108 return result.append("ImageMap"); | 108 return result.append("ImageMap"); |
109 case blink::WebAXRoleImage: | 109 case blink::WebAXRoleImage: |
110 return result.append("Image"); | 110 return result.append("Image"); |
111 case blink::WebAXRoleInlineTextBox: | 111 case blink::WebAXRoleInlineTextBox: |
112 return result.append("InlineTextBox"); | 112 return result.append("InlineTextBox"); |
| 113 case blink::WebAXRoleInputTime: |
| 114 return result.append("InputTime"); |
113 case blink::WebAXRoleLabel: | 115 case blink::WebAXRoleLabel: |
114 return result.append("Label"); | 116 return result.append("Label"); |
115 case blink::WebAXRoleLegend: | 117 case blink::WebAXRoleLegend: |
116 return result.append("Legend"); | 118 return result.append("Legend"); |
117 case blink::WebAXRoleLink: | 119 case blink::WebAXRoleLink: |
118 return result.append("Link"); | 120 return result.append("Link"); |
119 case blink::WebAXRoleListBoxOption: | 121 case blink::WebAXRoleListBoxOption: |
120 return result.append("ListBoxOption"); | 122 return result.append("ListBoxOption"); |
121 case blink::WebAXRoleListBox: | 123 case blink::WebAXRoleListBox: |
122 return result.append("ListBox"); | 124 return result.append("ListBox"); |
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 v8::Local<v8::Value> value_handle = gin::CreateHandle( | 1329 v8::Local<v8::Value> value_handle = gin::CreateHandle( |
1328 isolate, new WebAXObjectProxy(object, this)).ToV8(); | 1330 isolate, new WebAXObjectProxy(object, this)).ToV8(); |
1329 if (value_handle.IsEmpty()) | 1331 if (value_handle.IsEmpty()) |
1330 return v8::Local<v8::Object>(); | 1332 return v8::Local<v8::Object>(); |
1331 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); | 1333 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); |
1332 elements_.Append(handle); | 1334 elements_.Append(handle); |
1333 return handle; | 1335 return handle; |
1334 } | 1336 } |
1335 | 1337 |
1336 } // namespace content | 1338 } // namespace content |
OLD | NEW |