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

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

Issue 8776030: Add IPCs to allow assistive technology to scroll the page (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_manager.h
===================================================================
--- content/browser/accessibility/browser_accessibility_manager.h (revision 112764)
+++ 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();
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698