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

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: Move scrolling logic from ScrollView to WebArea 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
Index: Source/modules/accessibility/AXObject.h
diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h
index fdaaaad2e83e0dff5ddd5295b85046c3436a7fa3..76b400e82b3f7856e0e56159146b8b962901ee23 100644
--- a/Source/modules/accessibility/AXObject.h
+++ b/Source/modules/accessibility/AXObject.h
@@ -677,6 +677,16 @@ 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;
+
+ // If this object itself scrolls, return its ScrollableArea.
+ virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; }
+
// Modify or take an action on an object.
virtual void increment() { }
virtual void decrement() { }
@@ -729,10 +739,6 @@ protected:
virtual const AXObject* inheritsPresentationalRoleFrom() const { return 0; }
- // If this object itself scrolls, return its ScrollableArea.
- virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; }
- virtual void scrollTo(const IntPoint&) const { }
-
AccessibilityRole buttonRoleType() const;
unsigned getLengthForTextRange() const { return text().length(); }

Powered by Google App Engine
This is Rietveld 408576698