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

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

Issue 1066503002: Adds details role for blink layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 case blink::WebAXRoleDateTime: 65 case blink::WebAXRoleDateTime:
66 return result.append("DateTimeField"); 66 return result.append("DateTimeField");
67 case blink::WebAXRoleDefinition: 67 case blink::WebAXRoleDefinition:
68 return result.append("Definition"); 68 return result.append("Definition");
69 case blink::WebAXRoleDescriptionListDetail: 69 case blink::WebAXRoleDescriptionListDetail:
70 return result.append("DescriptionListDetail"); 70 return result.append("DescriptionListDetail");
71 case blink::WebAXRoleDescriptionList: 71 case blink::WebAXRoleDescriptionList:
72 return result.append("DescriptionList"); 72 return result.append("DescriptionList");
73 case blink::WebAXRoleDescriptionListTerm: 73 case blink::WebAXRoleDescriptionListTerm:
74 return result.append("DescriptionListTerm"); 74 return result.append("DescriptionListTerm");
75 case blink::WebAXRoleDetails:
76 return result.append("Details");
75 case blink::WebAXRoleDialog: 77 case blink::WebAXRoleDialog:
76 return result.append("Dialog"); 78 return result.append("Dialog");
77 case blink::WebAXRoleDirectory: 79 case blink::WebAXRoleDirectory:
78 return result.append("Directory"); 80 return result.append("Directory");
79 case blink::WebAXRoleDisclosureTriangle: 81 case blink::WebAXRoleDisclosureTriangle:
80 return result.append("DisclosureTriangle"); 82 return result.append("DisclosureTriangle");
81 case blink::WebAXRoleDiv: 83 case blink::WebAXRoleDiv:
82 return result.append("Div"); 84 return result.append("Div");
83 case blink::WebAXRoleDocument: 85 case blink::WebAXRoleDocument:
84 return result.append("Document"); 86 return result.append("Document");
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 v8::Handle<v8::Value> value_handle = gin::CreateHandle( 1206 v8::Handle<v8::Value> value_handle = gin::CreateHandle(
1205 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); 1207 isolate, new RootWebAXObjectProxy(object, this)).ToV8();
1206 if (value_handle.IsEmpty()) 1208 if (value_handle.IsEmpty())
1207 return v8::Handle<v8::Object>(); 1209 return v8::Handle<v8::Object>();
1208 v8::Handle<v8::Object> handle = value_handle->ToObject(isolate); 1210 v8::Handle<v8::Object> handle = value_handle->ToObject(isolate);
1209 elements_.Append(handle); 1211 elements_.Append(handle);
1210 return handle; 1212 return handle;
1211 } 1213 }
1212 1214
1213 } // namespace content 1215 } // 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