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

Unified Diff: Source/web/WebAXObject.cpp

Issue 659563006: Add live region root to the cached properties of an AXObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address feedback 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/AXScrollView.cpp ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index 3eb1a4f27556a41c1802a8d6be66d6b014710358..160dab054a8b62c8b31467ded49fee5a3becda23 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -498,36 +498,76 @@ bool WebAXObject::ariaLabelledby(WebVector<WebAXObject>& labelledbyElements) con
return true;
}
-bool WebAXObject::ariaLiveRegionAtomic() const
+bool WebAXObject::isInLiveRegion() const
+{
+ if (isDetached())
+ return false;
+
+ return 0 != m_private->liveRegionRoot();
+}
+
+bool WebAXObject::liveRegionAtomic() const
{
if (isDetached())
return 0;
- return m_private->ariaLiveRegionAtomic();
+ return m_private->liveRegionAtomic();
}
-bool WebAXObject::ariaLiveRegionBusy() const
+bool WebAXObject::liveRegionBusy() const
{
if (isDetached())
return 0;
- return m_private->ariaLiveRegionBusy();
+ return m_private->liveRegionBusy();
+}
+
+WebString WebAXObject::liveRegionRelevant() const
+{
+ if (isDetached())
+ return WebString();
+
+ return m_private->liveRegionRelevant();
+}
+
+WebString WebAXObject::liveRegionStatus() const
+{
+ if (isDetached())
+ return WebString();
+
+ return m_private->liveRegionStatus();
+}
+
+bool WebAXObject::containerLiveRegionAtomic() const
+{
+ if (isDetached())
+ return false;
+
+ return m_private->containerLiveRegionAtomic();
+}
+
+bool WebAXObject::containerLiveRegionBusy() const
+{
+ if (isDetached())
+ return false;
+
+ return m_private->containerLiveRegionBusy();
}
-WebString WebAXObject::ariaLiveRegionRelevant() const
+WebString WebAXObject::containerLiveRegionRelevant() const
{
if (isDetached())
return WebString();
- return m_private->ariaLiveRegionRelevant();
+ return m_private->containerLiveRegionRelevant();
}
-WebString WebAXObject::ariaLiveRegionStatus() const
+WebString WebAXObject::containerLiveRegionStatus() const
{
if (isDetached())
return WebString();
- return m_private->ariaLiveRegionStatus();
+ return m_private->containerLiveRegionStatus();
}
bool WebAXObject::ariaOwns(WebVector<WebAXObject>& ownsElements) const
« no previous file with comments | « Source/core/accessibility/AXScrollView.cpp ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698