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

Unified Diff: Source/modules/accessibility/AXObject.h

Issue 736943002: Support aria-grabbed attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update enum name 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
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXObject.h
diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h
index b5e1e4a66b2077eabdea9c650d38f7d39148019c..87ef1b0608543edad82a4e2954e3918d87fe14e7 100644
--- a/Source/modules/accessibility/AXObject.h
+++ b/Source/modules/accessibility/AXObject.h
@@ -261,6 +261,12 @@ enum AccessibilityExpanded {
ExpandedExpanded,
};
+enum AccessibilityOptionalBool {
+ OptionalBoolUndefined = 0,
+ OptionalBoolTrue,
+ OptionalBoolFalse
+};
+
class AXObject : public RefCounted<AXObject> {
public:
typedef Vector<RefPtr<AXObject> > AccessibilityChildrenVector;
@@ -448,7 +454,7 @@ public:
bool ariaPressedIsPresent() const;
virtual AccessibilityRole ariaRoleAttribute() const { return UnknownRole; }
virtual bool ariaRoleHasPresentationalChildren() const { return false; }
- virtual bool isARIAGrabbed() { return false; }
+ virtual AccessibilityOptionalBool isAriaGrabbed() const { return OptionalBoolUndefined; }
virtual bool isPresentationalChildOfAriaRole() const { return false; }
virtual bool shouldFocusActiveDescendant() const { return false; }
bool supportsARIAAttributes() const;
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698