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

Unified Diff: Source/modules/accessibility/AXObject.h

Issue 1121473004: Expose scroll containers via accessibility APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add remaining asserts to test Created 5 years, 8 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/modules/accessibility/AXObject.h
diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h
index dfeb0dcd88d0203967f667463a5299ab58ed6454..e024f2b4548753d587845d430e507c6b0eff2340 100644
--- a/Source/modules/accessibility/AXObject.h
+++ b/Source/modules/accessibility/AXObject.h
@@ -675,6 +675,13 @@ public:
// Selected text.
virtual PlainTextRange selectedTextRange() const { return PlainTextRange(); }
+ // Scrollable containers.
+ bool isScrollableContainer() const;
+ IntPoint scrollOffset() const;
+ IntPoint minimumScrollOffset() const;
+ IntPoint maximumScrollOffset() const;
+ void setScrollOffset(const IntPoint&) const;
+
// Modify or take an action on an object.
virtual void increment() { }
virtual void decrement() { }
@@ -729,7 +736,6 @@ protected:
// If this object itself scrolls, return its ScrollableArea.
virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; }
- virtual void scrollTo(const IntPoint&) const { }
AccessibilityRole buttonRoleType() const;

Powered by Google App Engine
This is Rietveld 408576698