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 24 matching lines...) Expand all Loading... |
35 case blink::WebAXRoleBanner: | 35 case blink::WebAXRoleBanner: |
36 return result.append("Banner"); | 36 return result.append("Banner"); |
37 case blink::WebAXRoleBlockquote: | 37 case blink::WebAXRoleBlockquote: |
38 return result.append("Blockquote"); | 38 return result.append("Blockquote"); |
39 case blink::WebAXRoleBusyIndicator: | 39 case blink::WebAXRoleBusyIndicator: |
40 return result.append("BusyIndicator"); | 40 return result.append("BusyIndicator"); |
41 case blink::WebAXRoleButton: | 41 case blink::WebAXRoleButton: |
42 return result.append("Button"); | 42 return result.append("Button"); |
43 case blink::WebAXRoleCanvas: | 43 case blink::WebAXRoleCanvas: |
44 return result.append("Canvas"); | 44 return result.append("Canvas"); |
| 45 case blink::WebAXRoleCaption: |
| 46 return result.append("Caption"); |
45 case blink::WebAXRoleCell: | 47 case blink::WebAXRoleCell: |
46 return result.append("Cell"); | 48 return result.append("Cell"); |
47 case blink::WebAXRoleCheckBox: | 49 case blink::WebAXRoleCheckBox: |
48 return result.append("CheckBox"); | 50 return result.append("CheckBox"); |
49 case blink::WebAXRoleColorWell: | 51 case blink::WebAXRoleColorWell: |
50 return result.append("ColorWell"); | 52 return result.append("ColorWell"); |
51 case blink::WebAXRoleColumnHeader: | 53 case blink::WebAXRoleColumnHeader: |
52 return result.append("ColumnHeader"); | 54 return result.append("ColumnHeader"); |
53 case blink::WebAXRoleColumn: | 55 case blink::WebAXRoleColumn: |
54 return result.append("Column"); | 56 return result.append("Column"); |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 v8::Handle<v8::Value> value_handle = gin::CreateHandle( | 1115 v8::Handle<v8::Value> value_handle = gin::CreateHandle( |
1114 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); | 1116 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); |
1115 if (value_handle.IsEmpty()) | 1117 if (value_handle.IsEmpty()) |
1116 return v8::Handle<v8::Object>(); | 1118 return v8::Handle<v8::Object>(); |
1117 v8::Handle<v8::Object> handle = value_handle->ToObject(isolate); | 1119 v8::Handle<v8::Object> handle = value_handle->ToObject(isolate); |
1118 elements_.Append(handle); | 1120 elements_.Append(handle); |
1119 return handle; | 1121 return handle; |
1120 } | 1122 } |
1121 | 1123 |
1122 } // namespace content | 1124 } // namespace content |
OLD | NEW |