diff options
author | aboxhall@chromium.org <aboxhall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-12 00:09:10 +0000 |
---|---|---|
committer | aboxhall@chromium.org <aboxhall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-12 00:09:10 +0000 |
commit | a17df8e38de1dd7ecc68f3bdf7a9c87bb2410e16 (patch) | |
tree | 64ae44e814964de0596fc8b2ae9a41ed571de193 /content/browser/renderer_host | |
parent | dab7720f282ec9d55f3a5eb56ee78a38e4a305c2 (diff) | |
download | chromium_src-a17df8e38de1dd7ecc68f3bdf7a9c87bb2410e16.zip chromium_src-a17df8e38de1dd7ecc68f3bdf7a9c87bb2410e16.tar.gz chromium_src-a17df8e38de1dd7ecc68f3bdf7a9c87bb2410e16.tar.bz2 |
Adds a chrome://accessibility page, which:
Adds a toggle for global accessibility mode (on/off)
For each renderer:
- shows an accessibility mode toggle
- if accessibility mode is On, shows a 'Show(/hide) accessibility tree' toggle, which shows(/hides) a text representation of the accessibility tree inline in the page. The accessibility tree may also be refreshed.
BUG=178756
Review URL: https://chromiumcodereview.appspot.com/11791028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187417 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host')
-rw-r--r-- | content/browser/renderer_host/render_widget_host_impl.cc | 2 | ||||
-rw-r--r-- | content/browser/renderer_host/render_widget_host_impl.h | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc index 176784c..716227a 100644 --- a/content/browser/renderer_host/render_widget_host_impl.cc +++ b/content/browser/renderer_host/render_widget_host_impl.cc @@ -148,6 +148,7 @@ RenderWidgetHostImpl::RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, waiting_for_screen_rects_ack_(false), mouse_move_pending_(false), mouse_wheel_pending_(false), + accessibility_mode_(AccessibilityModeOff), select_range_pending_(false), move_caret_pending_(false), needs_repainting_on_restore_(false), @@ -2217,6 +2218,7 @@ void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( } void RenderWidgetHostImpl::SetAccessibilityMode(AccessibilityMode mode) { + accessibility_mode_ = mode; Send(new ViewMsg_SetAccessibilityMode(routing_id_, mode)); } diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h index 61d8bfd..9485aa8 100644 --- a/content/browser/renderer_host/render_widget_host_impl.h +++ b/content/browser/renderer_host/render_widget_host_impl.h @@ -328,6 +328,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, void SetEditCommandsForNextKeyEvent( const std::vector<EditCommand>& commands); + // Gets the accessibility mode. + AccessibilityMode accessibility_mode() const { + return accessibility_mode_; + } + // Send a message to the renderer process to change the accessibility mode. void SetAccessibilityMode(AccessibilityMode mode); @@ -738,6 +743,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, // would be queued) results in very slow scrolling. WheelEventQueue coalesced_mouse_wheel_events_; + AccessibilityMode accessibility_mode_; + // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK. bool select_range_pending_; |