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

Unified Diff: Source/web/WebAXObject.cpp

Issue 1121473004: Expose scroll containers via accessibility APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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/modules/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 dbb75c6cff805a390643d95bbccb287f26549afe..92be6de0e4d73a47af21c8f07de6fb52c2778158 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -1523,6 +1523,46 @@ void WebAXObject::wordBoundaries(WebVector<int>& starts, WebVector<int>& ends) c
ends.swap(endsWebVector);
}
+bool WebAXObject::isScrollableContainer() const
+{
+ if (isDetached())
+ return false;
+
+ return m_private->isScrollableContainer();
+}
+
+WebPoint WebAXObject::scrollOffset() const
+{
+ if (isDetached())
+ return WebPoint();
+
+ return m_private->scrollOffset();
+}
+
+WebPoint WebAXObject::minimumScrollOffset() const
+{
+ if (isDetached())
+ return WebPoint();
+
+ return m_private->minimumScrollOffset();
+}
+
+WebPoint WebAXObject::maximumScrollOffset() const
+{
+ if (isDetached())
+ return WebPoint();
+
+ return m_private->maximumScrollOffset();
+}
+
+void WebAXObject::setScrollOffset(const WebPoint& offset) const
+{
+ if (isDetached())
+ return;
+
+ m_private->setScrollOffset(offset);
+}
+
void WebAXObject::scrollToMakeVisible() const
{
if (!isDetached())
« no previous file with comments | « Source/modules/accessibility/AXScrollView.cpp ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698