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

Unified Diff: Source/modules/accessibility/AXNodeObject.cpp

Issue 736943002: Support aria-grabbed attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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: Source/modules/accessibility/AXNodeObject.cpp
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp
index 6e79ce19f6a1582343e14a50267155993d77f1e6..69c0ab5f06e891270661d1a5f2231da825ea45c2 100644
--- a/Source/modules/accessibility/AXNodeObject.cpp
+++ b/Source/modules/accessibility/AXNodeObject.cpp
@@ -1137,6 +1137,17 @@ AccessibilityRole AXNodeObject::ariaRoleAttribute() const
return m_ariaRole;
}
+AccessibilityDefined AXNodeObject::isAriaGrabbed() const
+{
+ const AtomicString& grabbed = getAttribute(aria_grabbedAttr);
+ if (equalIgnoringCase(grabbed, "true"))
+ return DefinedTrue;
+ if (equalIgnoringCase(grabbed, "false"))
+ return DefinedFalse;
+
+ return DefinedUndefined;
+}
+
// When building the textUnderElement for an object, determine whether or not
// we should include the inner text of this given descendant object or skip it.
static bool shouldUseAccessibilityObjectInnerText(AXObject* obj)

Powered by Google App Engine
This is Rietveld 408576698