Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: content/shell/renderer/test_runner/web_ax_object_proxy.cc

Issue 599363002: Add AX role conversions for EmbedObject, Figcaption and Figure for test_runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 case blink::WebAXRoleDisclosureTriangle: 71 case blink::WebAXRoleDisclosureTriangle:
72 return result.append("DisclosureTriangle"); 72 return result.append("DisclosureTriangle");
73 case blink::WebAXRoleDiv: 73 case blink::WebAXRoleDiv:
74 return result.append("Div"); 74 return result.append("Div");
75 case blink::WebAXRoleDocument: 75 case blink::WebAXRoleDocument:
76 return result.append("Document"); 76 return result.append("Document");
77 case blink::WebAXRoleDrawer: 77 case blink::WebAXRoleDrawer:
78 return result.append("Drawer"); 78 return result.append("Drawer");
79 case blink::WebAXRoleEditableText: 79 case blink::WebAXRoleEditableText:
80 return result.append("EditableText"); 80 return result.append("EditableText");
81 case blink::WebAXRoleEmbeddedObject:
82 return result.append("EmbeddedObject");
83 case blink::WebAXRoleFigcaption:
84 return result.append("Figcaption");
85 case blink::WebAXRoleFigure:
86 return result.append("Figure");
81 case blink::WebAXRoleFooter: 87 case blink::WebAXRoleFooter:
82 return result.append("Footer"); 88 return result.append("Footer");
83 case blink::WebAXRoleForm: 89 case blink::WebAXRoleForm:
84 return result.append("Form"); 90 return result.append("Form");
85 case blink::WebAXRoleGrid: 91 case blink::WebAXRoleGrid:
86 return result.append("Grid"); 92 return result.append("Grid");
87 case blink::WebAXRoleGroup: 93 case blink::WebAXRoleGroup:
88 return result.append("Group"); 94 return result.append("Group");
89 case blink::WebAXRoleGrowArea: 95 case blink::WebAXRoleGrowArea:
90 return result.append("GrowArea"); 96 return result.append("GrowArea");
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 v8::Handle<v8::Value> value_handle = gin::CreateHandle( 1103 v8::Handle<v8::Value> value_handle = gin::CreateHandle(
1098 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); 1104 isolate, new RootWebAXObjectProxy(object, this)).ToV8();
1099 if (value_handle.IsEmpty()) 1105 if (value_handle.IsEmpty())
1100 return v8::Handle<v8::Object>(); 1106 return v8::Handle<v8::Object>();
1101 v8::Handle<v8::Object> handle = value_handle->ToObject(); 1107 v8::Handle<v8::Object> handle = value_handle->ToObject();
1102 elements_.Append(handle); 1108 elements_.Append(handle);
1103 return handle; 1109 return handle;
1104 } 1110 }
1105 1111
1106 } // namespace content 1112 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698