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

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

Issue 805793006: Provides API for testing number of table headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « content/shell/renderer/test_runner/web_ax_object_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2f12d70fd9ffeb6ff41432f45e2ca35248095cf5..4d886c60591b74b54384fe6d87f4d6a9f5f63ed6 100644
--- a/content/shell/renderer/test_runner/web_ax_object_proxy.cc
+++ b/content/shell/renderer/test_runner/web_ax_object_proxy.cc
@@ -509,7 +509,9 @@ WebAXObjectProxy::GetObjectTemplateBuilder(v8::Isolate* isolate) {
.SetProperty("clickPointX", &WebAXObjectProxy::ClickPointX)
.SetProperty("clickPointY", &WebAXObjectProxy::ClickPointY)
.SetProperty("rowCount", &WebAXObjectProxy::RowCount)
+ .SetProperty("rowHeadersCount", &WebAXObjectProxy::RowHeadersCount)
.SetProperty("columnCount", &WebAXObjectProxy::ColumnCount)
+ .SetProperty("columnHeadersCount", &WebAXObjectProxy::ColumnHeadersCount)
.SetProperty("isClickable", &WebAXObjectProxy::IsClickable)
.SetProperty("isButtonStateMixed", &WebAXObjectProxy::IsButtonStateMixed)
.SetMethod("allAttributes", &WebAXObjectProxy::AllAttributes)
@@ -809,11 +811,26 @@ int32_t WebAXObjectProxy::RowCount() {
return static_cast<int32_t>(accessibility_object_.rowCount());
}
+int32_t WebAXObjectProxy::RowHeadersCount() {
+ accessibility_object_.updateLayoutAndCheckValidity();
+ blink::WebVector<blink::WebAXObject> headers;
+ accessibility_object_.rowHeaders(headers);
+ return static_cast<int32_t>(headers.size());
+}
+
int32_t WebAXObjectProxy::ColumnCount() {
accessibility_object_.updateLayoutAndCheckValidity();
return static_cast<int32_t>(accessibility_object_.columnCount());
}
+int32_t WebAXObjectProxy::ColumnHeadersCount()
+{
+ accessibility_object_.updateLayoutAndCheckValidity();
+ blink::WebVector<blink::WebAXObject> headers;
+ accessibility_object_.columnHeaders(headers);
+ return static_cast<int32_t>(headers.size());
+}
+
bool WebAXObjectProxy::IsClickable() {
accessibility_object_.updateLayoutAndCheckValidity();
return accessibility_object_.isClickable();
« no previous file with comments | « content/shell/renderer/test_runner/web_ax_object_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698