Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index b08a210611a751e3eb8104d0d974e802a828c078..07894de7cb327f221c94241fc2df2832e96152b0 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -24,7 +24,6 @@ |
#include "base/timer/timer.h" |
#include "build/build_config.h" |
#include "cc/resources/shared_bitmap.h" |
-#include "content/browser/accessibility/browser_accessibility_manager.h" |
#include "content/browser/renderer_host/event_with_latency_info.h" |
#include "content/browser/renderer_host/input/input_ack_handler.h" |
#include "content/browser/renderer_host/input/input_router_client.h" |
@@ -79,6 +78,7 @@ class WebLayer; |
#endif |
namespace content { |
+class BrowserAccessibilityManager; |
class InputRouter; |
class MockRenderWidgetHost; |
class OverscrollController; |
@@ -97,8 +97,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
public InputRouterClient, |
public InputAckHandler, |
public TouchEmulatorClient, |
- public IPC::Listener, |
- public BrowserAccessibilityDelegate { |
+ public IPC::Listener { |
public: |
// routing_id can be MSG_ROUTING_NONE, in which case the next available |
// routing id is taken from the RenderProcessHost. |
@@ -143,10 +142,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
virtual void LockBackingStore() OVERRIDE; |
virtual void UnlockBackingStore() OVERRIDE; |
#endif |
- virtual void EnableFullAccessibilityMode() OVERRIDE; |
- virtual bool IsFullAccessibilityModeForTesting() OVERRIDE; |
- virtual void EnableTreeOnlyAccessibilityMode() OVERRIDE; |
- virtual bool IsTreeOnlyAccessibilityModeForTesting() OVERRIDE; |
virtual void ForwardMouseEvent( |
const blink::WebMouseEvent& mouse_event) OVERRIDE; |
virtual void ForwardWheelEvent( |
@@ -176,22 +171,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
- // BrowserAccessibilityDelegate |
- virtual void AccessibilitySetFocus(int acc_obj_id) OVERRIDE; |
- virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; |
- virtual void AccessibilityShowMenu(int acc_obj_id) OVERRIDE; |
- virtual void AccessibilityScrollToMakeVisible( |
- int acc_obj_id, gfx::Rect subfocus) OVERRIDE; |
- virtual void AccessibilityScrollToPoint( |
- int acc_obj_id, gfx::Point point) OVERRIDE; |
- virtual void AccessibilitySetTextSelection( |
- int acc_obj_id, int start_offset, int end_offset) OVERRIDE; |
- virtual bool AccessibilityViewHasFocus() const OVERRIDE; |
- virtual gfx::Rect AccessibilityGetViewBounds() const OVERRIDE; |
- virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) |
- const OVERRIDE; |
- virtual void AccessibilityFatalError() OVERRIDE; |
- |
const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; |
// Notification that the screen info has changed. |
@@ -387,30 +366,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
void SetEditCommandsForNextKeyEvent( |
const std::vector<EditCommand>& commands); |
- // Gets the accessibility mode. |
- AccessibilityMode accessibility_mode() const { |
- return accessibility_mode_; |
- } |
- |
- // Adds the given accessibility mode to the current accessibility mode bitmap. |
- void AddAccessibilityMode(AccessibilityMode mode); |
- |
- // Removes the given accessibility mode from the current accessibility mode |
- // bitmap, managing the bits that are shared with other modes such that a |
- // bit will only be turned off when all modes that depend on it have been |
- // removed. |
- void RemoveAccessibilityMode(AccessibilityMode mode); |
- |
- // Resets the accessibility mode to the default setting in |
- // BrowserStateAccessibilityImpl. |
- void ResetAccessibilityMode(); |
- |
-#if defined(OS_WIN) |
- void SetParentNativeViewAccessible( |
- gfx::NativeViewAccessible accessible_parent); |
- gfx::NativeViewAccessible GetParentNativeViewAccessible() const; |
-#endif |
- |
// Executes the edit command on the RenderView. |
void ExecuteEditCommand(const std::string& command, |
const std::string& value); |
@@ -519,6 +474,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
InputRouter* input_router() { return input_router_.get(); } |
+ // Get the BrowserAccessibilityManager for the root of the frame tree. |
+ BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
+ |
protected: |
virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
@@ -705,9 +663,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
void WindowSnapshotReachedScreen(int snapshot_id); |
- // Send a message to the renderer process to change the accessibility mode. |
- void SetAccessibilityMode(AccessibilityMode AccessibilityMode); |
- |
// Our delegate, which wants to know mainly about keyboard events. |
// It will remain non-NULL until DetachDelegate() is called. |
RenderWidgetHostDelegate* delegate_; |
@@ -779,8 +734,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl |
gfx::Rect last_view_screen_rect_; |
gfx::Rect last_window_screen_rect_; |
- AccessibilityMode accessibility_mode_; |
- |
// Keyboard event listeners. |
std::vector<KeyPressEventCallback> key_press_event_callbacks_; |