Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
| index 05bcf4822cf398541dda22725d2e737c9a62ffb5..92072b5ffb74eb7b5c0931f8d3dbd189b770873f 100644 |
| --- a/content/browser/renderer_host/render_widget_host_impl.cc |
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc |
| @@ -919,7 +919,7 @@ void RenderWidgetHostImpl::StopHangMonitorTimeout() { |
| } |
| void RenderWidgetHostImpl::EnableFullAccessibilityMode() { |
| - SetAccessibilityMode(AccessibilityModeComplete); |
| + SetAccessibilityMode(accessibility_mode_ | AccessibilityModeComplete); |
| } |
| void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) { |
| @@ -2098,11 +2098,21 @@ void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( |
| Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); |
| } |
| -void RenderWidgetHostImpl::SetAccessibilityMode(AccessibilityMode mode) { |
| +void RenderWidgetHostImpl::SetAccessibilityMode(unsigned int mode) { |
| accessibility_mode_ = mode; |
| Send(new ViewMsg_SetAccessibilityMode(GetRoutingID(), mode)); |
| } |
| +void RenderWidgetHostImpl::SetRendererAccessibilityMode(bool on) { |
| + if (bool(accessibility_mode_ & AccessibilityModeFlagRenderer) == on) |
|
David Tseng
2014/01/27 22:16:06
Ditto; cast;
and
xor.
aboxhall
2014/01/28 00:18:42
Done.
|
| + return; |
| + if (on) |
| + accessibility_mode_ |= AccessibilityModeFlagRenderer; |
| + else |
| + accessibility_mode_ &= (~AccessibilityModeFlagRenderer); |
| + Send(new ViewMsg_SetAccessibilityMode(GetRoutingID(), accessibility_mode_)); |
| +} |
| + |
| void RenderWidgetHostImpl::AccessibilityDoDefaultAction(int object_id) { |
| Send(new AccessibilityMsg_DoDefaultAction(GetRoutingID(), object_id)); |
| } |