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 666427c11ba663c9ff54c87073c3be0fde803430..65a2767c1c09170c8550085dde0e62f61207df4b 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -24,6 +24,7 @@ |
#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/input/input_ack_handler.h" |
#include "content/browser/renderer_host/input/input_router_client.h" |
#include "content/browser/renderer_host/input/synthetic_gesture.h" |
@@ -91,11 +92,13 @@ struct EditCommand; |
// This implements the RenderWidgetHost interface that is exposed to |
// embedders of content, and adds things only visible to content. |
-class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
- public InputRouterClient, |
- public InputAckHandler, |
- public TouchEmulatorClient, |
- public IPC::Listener { |
+class CONTENT_EXPORT RenderWidgetHostImpl |
+ : virtual public RenderWidgetHost, |
+ public InputRouterClient, |
+ public InputAckHandler, |
+ public TouchEmulatorClient, |
+ public IPC::Listener, |
+ public BrowserAccessibilityDelegate { |
public: |
// routing_id can be MSG_ROUTING_NONE, in which case the next available |
// routing id is taken from the RenderProcessHost. |
@@ -173,14 +176,21 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
- virtual void AccessibilityDoDefaultAction(int object_id) OVERRIDE; |
- virtual void AccessibilitySetFocus(int object_id) 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; |
@@ -400,9 +410,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// BrowserStateAccessibilityImpl. |
void ResetAccessibilityMode(); |
- // Kill the renderer because we got a fatal accessibility error. |
- void FatalAccessibilityTreeError(); |
- |
#if defined(OS_WIN) |
void SetParentNativeViewAccessible( |
gfx::NativeViewAccessible accessible_parent); |