Index: content/renderer/render_view_impl.h |
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h |
index 207a0822302ca89b4531ecf59ff311aea29867a7..6efc709368f24ee03c6c7cacb432cb11adbec5c2 100644 |
--- a/content/renderer/render_view_impl.h |
+++ b/content/renderer/render_view_impl.h |
@@ -139,6 +139,7 @@ |
class RenderViewImplTest; |
class RenderViewObserver; |
class RenderViewTest; |
+class RendererAccessibility; |
class RendererDateTimePicker; |
class RendererWebColorChooserImpl; |
class SpeechRecognitionDispatcher; |
@@ -184,7 +185,8 @@ |
bool hidden, |
bool never_visible, |
int32 next_page_id, |
- const blink::WebScreenInfo& screen_info); |
+ const blink::WebScreenInfo& screen_info, |
+ AccessibilityMode accessibility_mode); |
// Used by content_layouttest_support to hook into the creation of |
// RenderViewImpls. |
@@ -217,6 +219,14 @@ |
} |
RenderFrameImpl* main_render_frame() { return main_render_frame_.get(); } |
+ |
+ AccessibilityMode accessibility_mode() { |
+ return accessibility_mode_; |
+ } |
+ |
+ RendererAccessibility* renderer_accessibility() { |
+ return renderer_accessibility_; |
+ } |
MouseLockDispatcher* mouse_lock_dispatcher() { |
return mouse_lock_dispatcher_; |
@@ -563,9 +573,9 @@ |
// For unit tests. |
friend class ExternalPopupMenuTest; |
friend class PepperDeviceTest; |
+ friend class RendererAccessibilityTest; |
friend class RenderViewImplTest; |
friend class RenderViewTest; |
- friend class RendererAccessibilityTest; |
// TODO(nasko): Temporarily friend RenderFrameImpl, so we don't duplicate |
// utility functions needed in both classes, while we move frame specific |
@@ -589,6 +599,7 @@ |
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); |
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeTypeChanged); |
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); |
+ FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetAccessibilityMode); |
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); |
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); |
FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
@@ -713,6 +724,7 @@ |
void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
void OnReleaseDisambiguationPopupBitmap(const cc::SharedBitmapId& id); |
void OnResetPageEncodingToDefault(); |
+ void OnSetAccessibilityMode(AccessibilityMode new_mode); |
void OnSetActive(bool active); |
void OnSetBackgroundOpaque(bool opaque); |
void OnExitFullscreen(); |
@@ -1033,6 +1045,13 @@ |
DevToolsAgent* devtools_agent_; |
+ // The current accessibility mode. |
+ AccessibilityMode accessibility_mode_; |
+ |
+ // Only valid if |accessibility_mode_| is anything other than |
+ // AccessibilityModeOff. |
+ RendererAccessibility* renderer_accessibility_; |
+ |
// Mouse Lock dispatcher attached to this view. |
MouseLockDispatcher* mouse_lock_dispatcher_; |