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

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: Add COMPILE ASSERT for new enum type 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
« no previous file with comments | « Source/core/accessibility/AXMenuList.h ('k') | Source/core/accessibility/AXNodeObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXMenuList.cpp
diff --git a/Source/core/accessibility/AXMenuList.cpp b/Source/core/accessibility/AXMenuList.cpp
index 4d5588e1b00c03c7413906544482c519ca52510a..104f309053e1a7fa6f38ce70695be62e0fe5b923 100644
--- a/Source/core/accessibility/AXMenuList.cpp
+++ b/Source/core/accessibility/AXMenuList.cpp
@@ -87,6 +87,14 @@ bool AXMenuList::isCollapsed() const
return !toRenderMenuList(m_renderer)->popupIsVisible();
}
+AccessibilityExpanded AXMenuList::isExpanded() const
+{
+ if (isCollapsed())
+ return ExpandedCollapsed;
+
+ return ExpandedExpanded;
+}
+
bool AXMenuList::canSetFocusAttribute() const
{
if (!node())
« no previous file with comments | « Source/core/accessibility/AXMenuList.h ('k') | Source/core/accessibility/AXNodeObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698