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

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

Issue 607053002: Add conversion rule for WebAXRoleDescriptionList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add dl role handling in automation.idl 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 case blink::WebAXRoleComboBox: 55 case blink::WebAXRoleComboBox:
56 return result.append("ComboBox"); 56 return result.append("ComboBox");
57 case blink::WebAXRoleComplementary: 57 case blink::WebAXRoleComplementary:
58 return result.append("Complementary"); 58 return result.append("Complementary");
59 case blink::WebAXRoleContentInfo: 59 case blink::WebAXRoleContentInfo:
60 return result.append("ContentInfo"); 60 return result.append("ContentInfo");
61 case blink::WebAXRoleDefinition: 61 case blink::WebAXRoleDefinition:
62 return result.append("Definition"); 62 return result.append("Definition");
63 case blink::WebAXRoleDescriptionListDetail: 63 case blink::WebAXRoleDescriptionListDetail:
64 return result.append("DescriptionListDetail"); 64 return result.append("DescriptionListDetail");
65 case blink::WebAXRoleDescriptionList:
66 return result.append("DescriptionList");
65 case blink::WebAXRoleDescriptionListTerm: 67 case blink::WebAXRoleDescriptionListTerm:
66 return result.append("DescriptionListTerm"); 68 return result.append("DescriptionListTerm");
67 case blink::WebAXRoleDialog: 69 case blink::WebAXRoleDialog:
68 return result.append("Dialog"); 70 return result.append("Dialog");
69 case blink::WebAXRoleDirectory: 71 case blink::WebAXRoleDirectory:
70 return result.append("Directory"); 72 return result.append("Directory");
71 case blink::WebAXRoleDisclosureTriangle: 73 case blink::WebAXRoleDisclosureTriangle:
72 return result.append("DisclosureTriangle"); 74 return result.append("DisclosureTriangle");
73 case blink::WebAXRoleDiv: 75 case blink::WebAXRoleDiv:
74 return result.append("Div"); 76 return result.append("Div");
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 v8::Handle<v8::Value> value_handle = gin::CreateHandle( 1107 v8::Handle<v8::Value> value_handle = gin::CreateHandle(
1106 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); 1108 isolate, new RootWebAXObjectProxy(object, this)).ToV8();
1107 if (value_handle.IsEmpty()) 1109 if (value_handle.IsEmpty())
1108 return v8::Handle<v8::Object>(); 1110 return v8::Handle<v8::Object>();
1109 v8::Handle<v8::Object> handle = value_handle->ToObject(); 1111 v8::Handle<v8::Object> handle = value_handle->ToObject();
1110 elements_.Append(handle); 1112 elements_.Append(handle);
1111 return handle; 1113 return handle;
1112 } 1114 }
1113 1115
1114 } // namespace content 1116 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_enum_conversion.cc ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698