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; |