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

Unified Diff: Source/core/accessibility/AXMenuList.cpp

Issue 679623002: Check whether aria-expanded attribute is defined (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Introduce new enum for aria-expanded 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/AXMenuList.cpp
diff --git a/Source/core/accessibility/AXMenuList.cpp b/Source/core/accessibility/AXMenuList.cpp
index 4d5588e1b00c03c7413906544482c519ca52510a..2b0283cad1726b42ec47d93eea45827bdb7d9872 100644
--- a/Source/core/accessibility/AXMenuList.cpp
+++ b/Source/core/accessibility/AXMenuList.cpp
@@ -87,6 +87,19 @@ bool AXMenuList::isCollapsed() const
return !toRenderMenuList(m_renderer)->popupIsVisible();
}
+AccessibilityExpanded AXMenuList::ariaExpanded() const
+{
+ AccessibilityExpanded expanded = getExpandedAttr();
dmazzoni 2014/10/29 07:46:59 The ARIA spec says that ARIA shouldn't be allowed
je_julie(Not used) 2014/10/29 13:07:27 Thanks for your comment. I updated it. On 2014/10/
+
+ if (expanded)
+ return expanded;
+
+ if (isCollapsed())
+ return ExpandedCollapsed;
+
+ return ExpandedExpanded;
+}
+
bool AXMenuList::canSetFocusAttribute() const
{
if (!node())

Powered by Google App Engine
This is Rietveld 408576698