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

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

Issue 679623002: Check whether aria-expanded attribute is defined (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update expanded API for AXMenuList Created 6 years, 2 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: Source/core/accessibility/AXObject.h
diff --git a/Source/core/accessibility/AXObject.h b/Source/core/accessibility/AXObject.h
index cc842faf7509aa5ccabfc58c4d2bc92676311f0c..83b64538ed20c80ef8efa22d265f0518ec7a9f5a 100644
--- a/Source/core/accessibility/AXObject.h
+++ b/Source/core/accessibility/AXObject.h
@@ -194,7 +194,6 @@ enum AccessibilityTextSource {
enum AccessibilityState {
AXBusyState,
AXCheckedState,
- AXCollapsedState,
AXEnabledState,
AXExpandedState,
AXFocusableState,
@@ -257,6 +256,12 @@ enum AccessibilityTextDirection {
AccessibilityTextDirectionBottomToTop
};
+enum AccessibilityExpanded {
+ ExpandedUndefined = 0,
+ ExpandedCollapsed,
+ ExpandedExpanded,
+};
+
class AXObject : public RefCounted<AXObject> {
public:
typedef Vector<RefPtr<AXObject> > AccessibilityChildrenVector;
@@ -365,7 +370,7 @@ public:
virtual bool isClickable() const;
virtual bool isCollapsed() const { return false; }
virtual bool isEnabled() const { return false; }
- virtual bool isExpanded() const { return false; }
+ virtual AccessibilityExpanded isExpanded() const { return ExpandedUndefined; }
virtual bool isFocused() const { return false; }
virtual bool isHovered() const { return false; }
virtual bool isIndeterminate() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698