#include "core/accessibility/AXMenuList.h"
#include "core/accessibility/AXMenuListPopup.h"
-#include "core/accessibility/AXObjectCache.h"
+#include "core/accessibility/AXObjectCacheImpl.h"
#include "core/rendering/RenderMenuList.h"
namespace blink {
{
m_haveChildren = true;
- AXObjectCache* cache = m_renderer->document().axObjectCache();
+ AXObjectCacheImpl* cache = toAXObjectCacheImpl(m_renderer->document().axObjectCache());
AXObject* list = cache->getOrCreate(MenuListPopupRole);
if (!list)
return !toRenderMenuList(m_renderer)->popupIsVisible();
}
+AccessibilityExpanded AXMenuList::isExpanded() const
+{
+ if (isCollapsed())
+ return ExpandedCollapsed;
+
+ return ExpandedExpanded;
+}
+
bool AXMenuList::canSetFocusAttribute() const
{
if (!node())
void AXMenuList::didUpdateActiveOption(int optionIndex)
{
RefPtrWillBeRawPtr<Document> document(m_renderer->document());
- AXObjectCache* cache = document->axObjectCache();
+ AXObjectCacheImpl* cache = toAXObjectCacheImpl(document->axObjectCache());
const AccessibilityChildrenVector& childObjects = children();
if (!childObjects.isEmpty()) {
}
}
- cache->postNotification(this, document.get(), AXObjectCache::AXMenuListValueChanged, true, PostSynchronously);
+ cache->postNotification(this, document.get(), AXObjectCacheImpl::AXMenuListValueChanged, true);
}
} // namespace blink