| Index: content/renderer/render_frame_impl.h
|
| diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
|
| index a13caa67c460a2a52eef0c19ff28f6a98c0ddeef..1b0f686190445d14612694e0527bf082d5fd3769 100644
|
| --- a/content/renderer/render_frame_impl.h
|
| +++ b/content/renderer/render_frame_impl.h
|
| @@ -14,12 +14,14 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/observer_list.h"
|
| #include "base/process/process_handle.h"
|
| +#include "content/common/accessibility_mode_enums.h"
|
| #include "content/public/common/javascript_message_type.h"
|
| #include "content/public/common/referrer.h"
|
| #include "content/public/renderer/render_frame.h"
|
| #include "content/renderer/media/webmediaplayer_delegate.h"
|
| #include "content/renderer/renderer_webcookiejar_impl.h"
|
| #include "ipc/ipc_message.h"
|
| +#include "third_party/WebKit/public/web/WebAXObject.h"
|
| #include "third_party/WebKit/public/web/WebDataSource.h"
|
| #include "third_party/WebKit/public/web/WebFrameClient.h"
|
| #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
|
| @@ -56,6 +58,7 @@ class ChildFrameCompositingHelper;
|
| class MediaStreamClient;
|
| class NotificationProvider;
|
| class PepperPluginInstanceImpl;
|
| +class RendererAccessibility;
|
| class RendererPpapiHost;
|
| class RenderFrameObserver;
|
| class RenderViewImpl;
|
| @@ -123,6 +126,17 @@ class CONTENT_EXPORT RenderFrameImpl
|
| virtual void didStopLoading();
|
| virtual void didChangeLoadProgress(double load_progress);
|
|
|
| + AccessibilityMode accessibility_mode() {
|
| + return accessibility_mode_;
|
| + }
|
| +
|
| + RendererAccessibility* renderer_accessibility() {
|
| + return renderer_accessibility_;
|
| + }
|
| +
|
| + void HandleWebAccessibilityEvent(const blink::WebAXObject& obj,
|
| + blink::WebAXEvent event);
|
| +
|
| #if defined(ENABLE_PLUGINS)
|
| // Notification that a PPAPI plugin has been created.
|
| void PepperPluginCreated(RendererPpapiHost* host);
|
| @@ -384,9 +398,11 @@ class CONTENT_EXPORT RenderFrameImpl
|
|
|
| private:
|
| friend class RenderFrameObserver;
|
| + friend class RendererAccessibilityTest;
|
| + friend class RenderViewImplTest;
|
| FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest,
|
| AccessibilityMessagesQueueWhileSwappedOut);
|
| - FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest,
|
| + FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest,
|
| ShouldUpdateSelectionTextFromContextMenuParams);
|
| FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
|
| OnExtendSelectionAndDelete);
|
| @@ -394,6 +410,8 @@ class CONTENT_EXPORT RenderFrameImpl
|
| FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK);
|
| FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
|
| SetEditableSelectionAndComposition);
|
| + FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
|
| + OnSetAccessibilityMode);
|
|
|
| typedef std::map<GURL, double> HostZoomLevels;
|
|
|
| @@ -442,6 +460,7 @@ class CONTENT_EXPORT RenderFrameImpl
|
| const std::vector<blink::WebCompositionUnderline>& underlines);
|
| void OnExtendSelectionAndDelete(int before, int after);
|
| void OnReload(bool ignore_cache);
|
| + void OnSetAccessibilityMode(AccessibilityMode new_mode);
|
| #if defined(OS_MACOSX)
|
| void OnCopyToFindPboard();
|
| #endif
|
| @@ -563,6 +582,13 @@ class CONTENT_EXPORT RenderFrameImpl
|
| MediaStreamClient* media_stream_client_;
|
| blink::WebUserMediaClient* web_user_media_client_;
|
|
|
| + // The current accessibility mode.
|
| + AccessibilityMode accessibility_mode_;
|
| +
|
| + // Only valid if |accessibility_mode_| is anything other than
|
| + // AccessibilityModeOff.
|
| + RendererAccessibility* renderer_accessibility_;
|
| +
|
| base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
|
|
|