| Index: content/browser/web_contents/web_contents_impl.h
|
| diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
| index 93563b0eceeafc12fbfde0135219b52487282a4d..651cc02e6bdeadb26e49fca7d0e00cd5cb416be8 100644
|
| --- a/content/browser/web_contents/web_contents_impl.h
|
| +++ b/content/browser/web_contents/web_contents_impl.h
|
| @@ -23,6 +23,7 @@
|
| #include "content/browser/frame_host/render_frame_host_manager.h"
|
| #include "content/browser/renderer_host/render_view_host_delegate.h"
|
| #include "content/browser/renderer_host/render_widget_host_delegate.h"
|
| +#include "content/common/accessibility_mode_enums.h"
|
| #include "content/common/content_export.h"
|
| #include "content/public/browser/ax_event_notification_details.h"
|
| #include "content/public/browser/color_chooser.h"
|
| @@ -94,6 +95,9 @@ class CONTENT_EXPORT WebContentsImpl
|
| const WebContents::CreateParams& params,
|
| WebContentsImpl* opener);
|
|
|
| + static void GetAllWebContents(
|
| + std::vector<WebContentsImpl*>* web_contents_vector);
|
| +
|
| // Returns the opener WebContentsImpl, if any. This can be set to null if the
|
| // opener is closed or the page clears its window.opener.
|
| WebContentsImpl* opener() const { return opener_; }
|
| @@ -167,6 +171,21 @@ class CONTENT_EXPORT WebContentsImpl
|
|
|
| WebContentsView* GetView() const;
|
|
|
| + // Broadcasts the mode change to all frames.
|
| + void SetAccessibilityMode(AccessibilityMode 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);
|
| +
|
| + AccessibilityMode accessibility_mode() const { return accessibility_mode_; }
|
| +
|
| // WebContents ------------------------------------------------------
|
| virtual WebContentsDelegate* GetDelegate() OVERRIDE;
|
| virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE;
|
| @@ -194,6 +213,9 @@ class CONTENT_EXPORT WebContentsImpl
|
| virtual WebUI* GetCommittedWebUI() const OVERRIDE;
|
| virtual void SetUserAgentOverride(const std::string& override) OVERRIDE;
|
| virtual const std::string& GetUserAgentOverride() const OVERRIDE;
|
| + virtual void EnableTreeOnlyAccessibilityMode() OVERRIDE;
|
| + virtual bool IsTreeOnlyAccessibilityModeForTesting() const OVERRIDE;
|
| + virtual bool IsFullAccessibilityModeForTesting() const OVERRIDE;
|
| #if defined(OS_WIN)
|
| virtual void SetParentNativeViewAccessible(
|
| gfx::NativeViewAccessible accessible_parent) OVERRIDE;
|
| @@ -352,6 +374,12 @@ class CONTENT_EXPORT WebContentsImpl
|
| RenderFrameHost* render_frame_host) OVERRIDE;
|
| virtual WebContents* GetAsWebContents() OVERRIDE;
|
| virtual bool IsNeverVisible() OVERRIDE;
|
| + virtual AccessibilityMode GetAccessibilityMode() const OVERRIDE;
|
| + virtual void AccessibilityEventReceived(
|
| + const std::vector<AXEventNotificationDetails>& details) OVERRIDE;
|
| +#if defined(OS_WIN)
|
| + virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE;
|
| +#endif
|
|
|
| // RenderViewHostDelegate ----------------------------------------------------
|
| virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
|
| @@ -446,8 +474,6 @@ class CONTENT_EXPORT WebContentsImpl
|
| virtual SessionStorageNamespace* GetSessionStorageNamespace(
|
| SiteInstance* instance) OVERRIDE;
|
| virtual FrameTree* GetFrameTree() OVERRIDE;
|
| - virtual void AccessibilityEventReceived(
|
| - const std::vector<AXEventNotificationDetails>& details) OVERRIDE;
|
|
|
| // NavigatorDelegate ---------------------------------------------------------
|
|
|
| @@ -514,9 +540,6 @@ class CONTENT_EXPORT WebContentsImpl
|
| virtual bool HandleGestureEvent(
|
| const blink::WebGestureEvent& event) OVERRIDE;
|
| virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) OVERRIDE;
|
| -#if defined(OS_WIN)
|
| - virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE;
|
| -#endif
|
|
|
| // RenderFrameHostManager::Delegate ------------------------------------------
|
|
|
| @@ -1096,6 +1119,10 @@ class CONTENT_EXPORT WebContentsImpl
|
| // Whether the last JavaScript dialog shown was suppressed. Used for testing.
|
| bool last_dialog_suppressed_;
|
|
|
| + // The accssibility mode for all frames. This is queried when each frame
|
| + // is created, and broadcast to all frames when it changes.
|
| + AccessibilityMode accessibility_mode_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
|
| };
|
|
|
|
|