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

Unified Diff: Source/web/WebAXObject.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/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index 31974e8bad77f50311e498c5dd8313162cf2941d..cfbe123aa829f7d08d8e6da46c93430165d09d72 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -218,6 +218,14 @@ bool WebAXObject::isAnchor() const
return m_private->isAnchor();
}
+WebAXDefined WebAXObject::isAriaGrabbed() const
+{
+ if (isDetached())
+ return WebAXDefinedUndefined;
+
+ return static_cast<WebAXDefined>(m_private->isAriaGrabbed());
+}
+
bool WebAXObject::isAriaReadOnly() const
{
if (isDetached())

Powered by Google App Engine
This is Rietveld 408576698