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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 case blink::WebAXRoleHelpTag: | 107 case blink::WebAXRoleHelpTag: |
108 return result.append("HelpTag"); | 108 return result.append("HelpTag"); |
109 case blink::WebAXRoleIgnored: | 109 case blink::WebAXRoleIgnored: |
110 return result.append("Ignored"); | 110 return result.append("Ignored"); |
111 case blink::WebAXRoleImageMapLink: | 111 case blink::WebAXRoleImageMapLink: |
112 return result.append("ImageMapLink"); | 112 return result.append("ImageMapLink"); |
113 case blink::WebAXRoleImageMap: | 113 case blink::WebAXRoleImageMap: |
114 return result.append("ImageMap"); | 114 return result.append("ImageMap"); |
115 case blink::WebAXRoleImage: | 115 case blink::WebAXRoleImage: |
116 return result.append("Image"); | 116 return result.append("Image"); |
117 case blink::WebAXRoleIncrementor: | |
118 return result.append("Incrementor"); | |
119 case blink::WebAXRoleInlineTextBox: | 117 case blink::WebAXRoleInlineTextBox: |
120 return result.append("InlineTextBox"); | 118 return result.append("InlineTextBox"); |
121 case blink::WebAXRoleLabel: | 119 case blink::WebAXRoleLabel: |
122 return result.append("Label"); | 120 return result.append("Label"); |
123 case blink::WebAXRoleLegend: | 121 case blink::WebAXRoleLegend: |
124 return result.append("Legend"); | 122 return result.append("Legend"); |
125 case blink::WebAXRoleLink: | 123 case blink::WebAXRoleLink: |
126 return result.append("Link"); | 124 return result.append("Link"); |
127 case blink::WebAXRoleListBoxOption: | 125 case blink::WebAXRoleListBoxOption: |
128 return result.append("ListBoxOption"); | 126 return result.append("ListBoxOption"); |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 v8::Handle<v8::Value> value_handle = gin::CreateHandle( | 1119 v8::Handle<v8::Value> value_handle = gin::CreateHandle( |
1122 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); | 1120 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); |
1123 if (value_handle.IsEmpty()) | 1121 if (value_handle.IsEmpty()) |
1124 return v8::Handle<v8::Object>(); | 1122 return v8::Handle<v8::Object>(); |
1125 v8::Handle<v8::Object> handle = value_handle->ToObject(); | 1123 v8::Handle<v8::Object> handle = value_handle->ToObject(); |
1126 elements_.Append(handle); | 1124 elements_.Append(handle); |
1127 return handle; | 1125 return handle; |
1128 } | 1126 } |
1129 | 1127 |
1130 } // namespace content | 1128 } // namespace content |
OLD | NEW |