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

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

Issue 756003003: Introduce new API to test mixed state of checkboxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 2ffc21f0fe98c23030debb9174e72235758a5a06..6292cfcb01183d1b32d19c12f57a5c200adcd6eb 100644
--- a/content/shell/renderer/test_runner/web_ax_object_proxy.cc
+++ b/content/shell/renderer/test_runner/web_ax_object_proxy.cc
@@ -503,6 +503,7 @@ WebAXObjectProxy::GetObjectTemplateBuilder(v8::Isolate* isolate) {
.SetProperty("rowCount", &WebAXObjectProxy::RowCount)
.SetProperty("columnCount", &WebAXObjectProxy::ColumnCount)
.SetProperty("isClickable", &WebAXObjectProxy::IsClickable)
+ .SetProperty("isButtonStateMixed", &WebAXObjectProxy::IsButtonStateMixed)
.SetMethod("allAttributes", &WebAXObjectProxy::AllAttributes)
.SetMethod("attributesOfChildren",
&WebAXObjectProxy::AttributesOfChildren)
@@ -797,6 +798,11 @@ bool WebAXObjectProxy::IsClickable() {
return accessibility_object_.isClickable();
}
+bool WebAXObjectProxy::IsButtonStateMixed() {
+ accessibility_object_.updateLayoutAndCheckValidity();
+ return accessibility_object_.isButtonStateMixed();
+}
+
std::string WebAXObjectProxy::AllAttributes() {
accessibility_object_.updateLayoutAndCheckValidity();
return GetAttributes(accessibility_object_);
« 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