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

Unified Diff: components/test_runner/web_ax_object_proxy.cc

Issue 1162333003: Added supporting code for Blink layout tests for isContentRichlyEditable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed isContentRichlyEditable to isRichlyEditable. Created 5 years, 6 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 | « components/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: 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 ae1281656f9643865470c69f72a0d5670ac6c2a1..125507be8688d29e7aac3825946036665414cde0 100644
--- a/components/test_runner/web_ax_object_proxy.cc
+++ b/components/test_runner/web_ax_object_proxy.cc
@@ -498,6 +498,7 @@ WebAXObjectProxy::GetObjectTemplateBuilder(v8::Isolate* isolate) {
&WebAXObjectProxy::SelectionEndLineNumber)
.SetProperty("isEnabled", &WebAXObjectProxy::IsEnabled)
.SetProperty("isRequired", &WebAXObjectProxy::IsRequired)
+ .SetProperty("isRichlyEditable", &WebAXObjectProxy::IsRichlyEditable)
.SetProperty("isFocused", &WebAXObjectProxy::IsFocused)
.SetProperty("isFocusable", &WebAXObjectProxy::IsFocusable)
.SetProperty("isSelected", &WebAXObjectProxy::IsSelected)
@@ -760,6 +761,11 @@ bool WebAXObjectProxy::IsRequired() {
return accessibility_object_.isRequired();
}
+bool WebAXObjectProxy::IsRichlyEditable() {
+ accessibility_object_.updateLayoutAndCheckValidity();
+ return accessibility_object_.isRichlyEditable();
+}
+
bool WebAXObjectProxy::IsFocused() {
accessibility_object_.updateLayoutAndCheckValidity();
return accessibility_object_.isFocused();
« no previous file with comments | « components/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