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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 12335101: Move some accessibility methods, enums and interfaces into the content/public API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix virtual method with no implementation, non-explicit single argument constructor Created 7 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 time_when_considered_hung_ = Time(); 800 time_when_considered_hung_ = Time();
801 RendererIsResponsive(); 801 RendererIsResponsive();
802 // We do not bother to stop the hung_renderer_timer_ here in case it will be 802 // We do not bother to stop the hung_renderer_timer_ here in case it will be
803 // started again shortly, which happens to be the common use case. 803 // started again shortly, which happens to be the common use case.
804 } 804 }
805 805
806 void RenderWidgetHostImpl::EnableFullAccessibilityMode() { 806 void RenderWidgetHostImpl::EnableFullAccessibilityMode() {
807 SetAccessibilityMode(AccessibilityModeComplete); 807 SetAccessibilityMode(AccessibilityModeComplete);
808 } 808 }
809 809
810 void RenderWidgetHostImpl::SetAccessibilityEnabled(bool enabled) {
811 if (enabled)
812 SetAccessibilityMode(AccessibilityModeComplete);
813 else
814 SetAccessibilityMode(AccessibilityModeOff);
815 }
816
817 bool RenderWidgetHostImpl::GetAccessibilityEnabled() const {
818 return accessibility_mode_ == AccessibilityModeComplete;
819 }
820
810 static WebGestureEvent MakeGestureEvent(WebInputEvent::Type type, 821 static WebGestureEvent MakeGestureEvent(WebInputEvent::Type type,
811 double timestamp_seconds, 822 double timestamp_seconds,
812 int x, 823 int x,
813 int y, 824 int y,
814 int modifiers) { 825 int modifiers) {
815 WebGestureEvent result; 826 WebGestureEvent result;
816 827
817 result.type = type; 828 result.type = type;
818 result.x = x; 829 result.x = x;
819 result.y = y; 830 result.y = y;
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 return; 2377 return;
2367 2378
2368 OnRenderAutoResized(new_size); 2379 OnRenderAutoResized(new_size);
2369 } 2380 }
2370 2381
2371 void RenderWidgetHostImpl::DetachDelegate() { 2382 void RenderWidgetHostImpl::DetachDelegate() {
2372 delegate_ = NULL; 2383 delegate_ = NULL;
2373 } 2384 }
2374 2385
2375 } // namespace content 2386 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698