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

Unified Diff: content/shell/renderer/test_runner/web_ax_object_proxy.cc

Issue 1063383005: Chromium side Implementation to expose aria properties - setsize & posinset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating expectations on android 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/web_ax_object_proxy.cc
diff --git a/content/shell/renderer/test_runner/web_ax_object_proxy.cc b/content/shell/renderer/test_runner/web_ax_object_proxy.cc
index b0d6d66f56e1b149a99feb84cde890ec192c2cad..40a224d6c03fef9cf9837fd54646d8a425b7a945 100644
--- a/content/shell/renderer/test_runner/web_ax_object_proxy.cc
+++ b/content/shell/renderer/test_runner/web_ax_object_proxy.cc
@@ -513,6 +513,8 @@ WebAXObjectProxy::GetObjectTemplateBuilder(v8::Isolate* isolate) {
.SetProperty("isValid", &WebAXObjectProxy::IsValid)
.SetProperty("isReadOnly", &WebAXObjectProxy::IsReadOnly)
.SetProperty("orientation", &WebAXObjectProxy::Orientation)
+ .SetProperty("posInSet", &WebAXObjectProxy::PosInSet)
+ .SetProperty("setSize", &WebAXObjectProxy::SetSize)
.SetProperty("clickPointX", &WebAXObjectProxy::ClickPointX)
.SetProperty("clickPointY", &WebAXObjectProxy::ClickPointY)
.SetProperty("rowCount", &WebAXObjectProxy::RowCount)
@@ -853,6 +855,16 @@ std::string WebAXObjectProxy::Orientation() {
return std::string();
}
+int WebAXObjectProxy::PosInSet() {
+ accessibility_object_.updateLayoutAndCheckValidity();
+ return accessibility_object_.posInSet();
+}
+
+int WebAXObjectProxy::SetSize() {
+ accessibility_object_.updateLayoutAndCheckValidity();
+ return accessibility_object_.setSize();
+}
+
int WebAXObjectProxy::ClickPointX() {
accessibility_object_.updateLayoutAndCheckValidity();
return accessibility_object_.clickPoint().x;
« no previous file with comments | « content/shell/renderer/test_runner/web_ax_object_proxy.h ('k') | content/test/data/accessibility/aria/aria-posinset.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698