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

Unified Diff: content/public/browser/render_widget_host.h

Issue 407493002: Revert of Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « content/public/browser/render_frame_host.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host.h
diff --git a/content/public/browser/render_widget_host.h b/content/public/browser/render_widget_host.h
index a87e3faee14f5c8126a772eb9dcd2bfb2016f0d7..049ee70d81cd3264ab8fe2f38f86c13b68a2c15a 100644
--- a/content/public/browser/render_widget_host.h
+++ b/content/public/browser/render_widget_host.h
@@ -189,6 +189,42 @@
virtual void UnlockBackingStore() = 0;
#endif
+ // Send a command to the renderer to turn on full accessibility.
+ virtual void EnableFullAccessibilityMode() = 0;
+
+ // Check whether this RenderWidget has full accessibility mode.
+ virtual bool IsFullAccessibilityModeForTesting() = 0;
+
+ // Send a command to the renderer to turn on tree only accessibility.
+ virtual void EnableTreeOnlyAccessibilityMode() = 0;
+
+ // Check whether this RenderWidget has tree-only accessibility mode.
+ virtual bool IsTreeOnlyAccessibilityModeForTesting() = 0;
+
+ // Relay a request from assistive technology to perform the default action
+ // on a given node.
+ virtual void AccessibilityDoDefaultAction(int object_id) = 0;
+
+ // Relay a request from assistive technology to set focus to a given node.
+ virtual void AccessibilitySetFocus(int object_id) = 0;
+
+ // Relay a request from assistive technology to make a given object
+ // visible by scrolling as many scrollable containers as necessary.
+ // In addition, if it's not possible to make the entire object visible,
+ // scroll so that the |subfocus| rect is visible at least. The subfocus
+ // rect is in local coordinates of the object itself.
+ virtual void AccessibilityScrollToMakeVisible(
+ int acc_obj_id, gfx::Rect subfocus) = 0;
+
+ // Relay a request from assistive technology to move a given object
+ // to a specific location, in the WebContents area coordinate space, i.e.
+ // (0, 0) is the top-left corner of the WebContents.
+ virtual void AccessibilityScrollToPoint(int acc_obj_id, gfx::Point point) = 0;
+
+ // Relay a request from assistive technology to set text selection.
+ virtual void AccessibilitySetTextSelection(
+ int acc_obj_id, int start_offset, int end_offset) = 0;
+
// Forwards the given message to the renderer. These are called by
// the view when it has received a message.
virtual void ForwardMouseEvent(
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698