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

Unified Diff: content/browser/accessibility/browser_accessibility_manager.h

Issue 8770021: Initial implementation of IAccessible2 scrollTo and setTextSelection and (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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: content/browser/accessibility/browser_accessibility_manager.h
===================================================================
--- content/browser/accessibility/browser_accessibility_manager.h (revision 112482)
+++ content/browser/accessibility/browser_accessibility_manager.h (working copy)
@@ -30,6 +30,10 @@
virtual ~BrowserAccessibilityDelegate() {}
virtual void SetAccessibilityFocus(int acc_obj_id) = 0;
virtual void AccessibilityDoDefaultAction(int acc_obj_id) = 0;
+ virtual void AccessibilityChangeScrollPosition(
+ int acc_obj_id, int scroll_x, int scroll_y) = 0;
+ virtual void AccessibilitySetTextSelection(
+ int acc_obj_id, int start_offset, int end_offset) = 0;
virtual bool HasFocus() const = 0;
virtual gfx::Rect GetViewBounds() const = 0;
};
@@ -100,6 +104,14 @@
// Tell the renderer to do the default action for this node.
void DoDefaultAction(const BrowserAccessibility& node);
+ // Tell the renderer to scroll this node to the given position.
+ void ChangeScrollPosition(
+ const BrowserAccessibility& node, int scroll_x, int scroll_y);
+
+ // Tell the renderer to set the text selection on a node.
+ void SetTextSelection(
+ const BrowserAccessibility& node, int start_offset, int end_offset);
+
// Retrieve the bounds of the parent View in screen coordinates.
gfx::Rect GetViewBounds();

Powered by Google App Engine
This is Rietveld 408576698