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

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

Issue 2886963004: Fixes for tree item level, setsize and posinset (Closed)
Patch Set: Fix tests Created 3 years, 7 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/test_runner/web_ax_object_proxy.h" 5 #include "content/shell/test_runner/web_ax_object_proxy.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 .SetProperty("fontSize", &WebAXObjectProxy::FontSize) 619 .SetProperty("fontSize", &WebAXObjectProxy::FontSize)
620 .SetProperty("autocomplete", &WebAXObjectProxy::Autocomplete) 620 .SetProperty("autocomplete", &WebAXObjectProxy::Autocomplete)
621 .SetProperty("current", &WebAXObjectProxy::Current) 621 .SetProperty("current", &WebAXObjectProxy::Current)
622 .SetProperty("invalid", &WebAXObjectProxy::Invalid) 622 .SetProperty("invalid", &WebAXObjectProxy::Invalid)
623 .SetProperty("keyShortcuts", &WebAXObjectProxy::KeyShortcuts) 623 .SetProperty("keyShortcuts", &WebAXObjectProxy::KeyShortcuts)
624 .SetProperty("live", &WebAXObjectProxy::Live) 624 .SetProperty("live", &WebAXObjectProxy::Live)
625 .SetProperty("orientation", &WebAXObjectProxy::Orientation) 625 .SetProperty("orientation", &WebAXObjectProxy::Orientation)
626 .SetProperty("relevant", &WebAXObjectProxy::Relevant) 626 .SetProperty("relevant", &WebAXObjectProxy::Relevant)
627 .SetProperty("roleDescription", &WebAXObjectProxy::RoleDescription) 627 .SetProperty("roleDescription", &WebAXObjectProxy::RoleDescription)
628 .SetProperty("sort", &WebAXObjectProxy::Sort) 628 .SetProperty("sort", &WebAXObjectProxy::Sort)
629 .SetProperty("hierarchicalLevel", &WebAXObjectProxy::HierarchicalLevel)
629 .SetProperty("posInSet", &WebAXObjectProxy::PosInSet) 630 .SetProperty("posInSet", &WebAXObjectProxy::PosInSet)
630 .SetProperty("setSize", &WebAXObjectProxy::SetSize) 631 .SetProperty("setSize", &WebAXObjectProxy::SetSize)
631 .SetProperty("clickPointX", &WebAXObjectProxy::ClickPointX) 632 .SetProperty("clickPointX", &WebAXObjectProxy::ClickPointX)
632 .SetProperty("clickPointY", &WebAXObjectProxy::ClickPointY) 633 .SetProperty("clickPointY", &WebAXObjectProxy::ClickPointY)
633 .SetProperty("rowCount", &WebAXObjectProxy::RowCount) 634 .SetProperty("rowCount", &WebAXObjectProxy::RowCount)
634 .SetProperty("rowHeadersCount", &WebAXObjectProxy::RowHeadersCount) 635 .SetProperty("rowHeadersCount", &WebAXObjectProxy::RowHeadersCount)
635 .SetProperty("columnCount", &WebAXObjectProxy::ColumnCount) 636 .SetProperty("columnCount", &WebAXObjectProxy::ColumnCount)
636 .SetProperty("columnHeadersCount", &WebAXObjectProxy::ColumnHeadersCount) 637 .SetProperty("columnHeadersCount", &WebAXObjectProxy::ColumnHeadersCount)
637 .SetProperty("isClickable", &WebAXObjectProxy::IsClickable) 638 .SetProperty("isClickable", &WebAXObjectProxy::IsClickable)
638 .SetProperty("isButtonStateMixed", &WebAXObjectProxy::IsButtonStateMixed) 639 .SetProperty("isButtonStateMixed", &WebAXObjectProxy::IsButtonStateMixed)
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 return "ascending"; 1192 return "ascending";
1192 case blink::kWebAXSortDirectionDescending: 1193 case blink::kWebAXSortDirectionDescending:
1193 return "descending"; 1194 return "descending";
1194 case blink::kWebAXSortDirectionOther: 1195 case blink::kWebAXSortDirectionOther:
1195 return "other"; 1196 return "other";
1196 default: 1197 default:
1197 return std::string(); 1198 return std::string();
1198 } 1199 }
1199 } 1200 }
1200 1201
1202 int WebAXObjectProxy::HierarchicalLevel() {
1203 accessibility_object_.UpdateLayoutAndCheckValidity();
1204 return accessibility_object_.HierarchicalLevel();
1205 }
1206
1201 int WebAXObjectProxy::PosInSet() { 1207 int WebAXObjectProxy::PosInSet() {
1202 accessibility_object_.UpdateLayoutAndCheckValidity(); 1208 accessibility_object_.UpdateLayoutAndCheckValidity();
1203 return accessibility_object_.PosInSet(); 1209 return accessibility_object_.PosInSet();
1204 } 1210 }
1205 1211
1206 int WebAXObjectProxy::SetSize() { 1212 int WebAXObjectProxy::SetSize() {
1207 accessibility_object_.UpdateLayoutAndCheckValidity(); 1213 accessibility_object_.UpdateLayoutAndCheckValidity();
1208 return accessibility_object_.SetSize(); 1214 return accessibility_object_.SetSize();
1209 } 1215 }
1210 1216
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 v8::Local<v8::Value> value_handle = 1880 v8::Local<v8::Value> value_handle =
1875 gin::CreateHandle(isolate, new WebAXObjectProxy(object, this)).ToV8(); 1881 gin::CreateHandle(isolate, new WebAXObjectProxy(object, this)).ToV8();
1876 if (value_handle.IsEmpty()) 1882 if (value_handle.IsEmpty())
1877 return v8::Local<v8::Object>(); 1883 return v8::Local<v8::Object>();
1878 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); 1884 v8::Local<v8::Object> handle = value_handle->ToObject(isolate);
1879 elements_.Append(handle); 1885 elements_.Append(handle);
1880 return handle; 1886 return handle;
1881 } 1887 }
1882 1888
1883 } // namespace test_runner 1889 } // namespace test_runner
OLDNEW
« no previous file with comments | « content/shell/test_runner/web_ax_object_proxy.h ('k') | content/test/data/accessibility/aria/aria-tree.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698