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

Unified Diff: components/test_runner/web_ax_object_proxy.cc

Issue 2666873005: Implement aria-modal (Closed)
Patch Set: Created 3 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
Index: components/test_runner/web_ax_object_proxy.cc
diff --git a/components/test_runner/web_ax_object_proxy.cc b/components/test_runner/web_ax_object_proxy.cc
index 21174b3a31457eaffb78b10b71541ee4093709cd..90df73a954577c1ec0c0ee0bedf8e025d17a9f49 100644
--- a/components/test_runner/web_ax_object_proxy.cc
+++ b/components/test_runner/web_ax_object_proxy.cc
@@ -599,6 +599,7 @@ WebAXObjectProxy::GetObjectTemplateBuilder(v8::Isolate* isolate) {
.SetProperty("isRichlyEditable", &WebAXObjectProxy::IsRichlyEditable)
.SetProperty("isFocused", &WebAXObjectProxy::IsFocused)
.SetProperty("isFocusable", &WebAXObjectProxy::IsFocusable)
+ .SetProperty("isModal", &WebAXObjectProxy::IsModal)
.SetProperty("isSelected", &WebAXObjectProxy::IsSelected)
.SetProperty("isSelectable", &WebAXObjectProxy::IsSelectable)
.SetProperty("isMultiSelectable", &WebAXObjectProxy::IsMultiSelectable)
@@ -977,6 +978,11 @@ bool WebAXObjectProxy::IsFocusable() {
return accessibility_object_.canSetFocusAttribute();
}
+bool WebAXObjectProxy::IsModal() {
+ accessibility_object_.updateLayoutAndCheckValidity();
+ return accessibility_object_.isModal();
+}
+
bool WebAXObjectProxy::IsSelected() {
accessibility_object_.updateLayoutAndCheckValidity();
return accessibility_object_.isSelected();
« no previous file with comments | « components/test_runner/web_ax_object_proxy.h ('k') | third_party/WebKit/LayoutTests/accessibility/aria-modal.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698