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

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

Issue 656683004: Add conversion rule of WebAXRoleBlockquote (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased wihtout actual change 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 16 matching lines...) Expand all
27 case blink::WebAXRoleAlert: 27 case blink::WebAXRoleAlert:
28 return result.append("Alert"); 28 return result.append("Alert");
29 case blink::WebAXRoleAnnotation: 29 case blink::WebAXRoleAnnotation:
30 return result.append("Annotation"); 30 return result.append("Annotation");
31 case blink::WebAXRoleApplication: 31 case blink::WebAXRoleApplication:
32 return result.append("Application"); 32 return result.append("Application");
33 case blink::WebAXRoleArticle: 33 case blink::WebAXRoleArticle:
34 return result.append("Article"); 34 return result.append("Article");
35 case blink::WebAXRoleBanner: 35 case blink::WebAXRoleBanner:
36 return result.append("Banner"); 36 return result.append("Banner");
37 case blink::WebAXRoleBlockquote:
38 return result.append("Blockquote");
37 case blink::WebAXRoleBrowser: 39 case blink::WebAXRoleBrowser:
38 return result.append("Browser"); 40 return result.append("Browser");
39 case blink::WebAXRoleBusyIndicator: 41 case blink::WebAXRoleBusyIndicator:
40 return result.append("BusyIndicator"); 42 return result.append("BusyIndicator");
41 case blink::WebAXRoleButton: 43 case blink::WebAXRoleButton:
42 return result.append("Button"); 44 return result.append("Button");
43 case blink::WebAXRoleCanvas: 45 case blink::WebAXRoleCanvas:
44 return result.append("Canvas"); 46 return result.append("Canvas");
45 case blink::WebAXRoleCell: 47 case blink::WebAXRoleCell:
46 return result.append("Cell"); 48 return result.append("Cell");
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 v8::Handle<v8::Value> value_handle = gin::CreateHandle( 1121 v8::Handle<v8::Value> value_handle = gin::CreateHandle(
1120 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); 1122 isolate, new RootWebAXObjectProxy(object, this)).ToV8();
1121 if (value_handle.IsEmpty()) 1123 if (value_handle.IsEmpty())
1122 return v8::Handle<v8::Object>(); 1124 return v8::Handle<v8::Object>();
1123 v8::Handle<v8::Object> handle = value_handle->ToObject(); 1125 v8::Handle<v8::Object> handle = value_handle->ToObject();
1124 elements_.Append(handle); 1126 elements_.Append(handle);
1125 return handle; 1127 return handle;
1126 } 1128 }
1127 1129
1128 } // namespace content 1130 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/blink_ax_enum_conversion.cc ('k') | content/test/data/accessibility/blockquote.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698