Chromium Code Reviews| Index: content/browser/frame_host/render_frame_host_delegate.h |
| diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h |
| index a49e22cb23a086b44caac5210f73774164f438ab..632ac75d4dc7a7ee2e47d4306343f51d06c812fa 100644 |
| --- a/content/browser/frame_host/render_frame_host_delegate.h |
| +++ b/content/browser/frame_host/render_frame_host_delegate.h |
| @@ -5,11 +5,18 @@ |
| #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| +#include <vector> |
| + |
| #include "base/basictypes.h" |
| #include "base/i18n/rtl.h" |
| #include "content/common/content_export.h" |
| +#include "content/common/frame_message_enums.h" |
| #include "content/public/common/javascript_message_type.h" |
| +#if defined(OS_WIN) |
| +#include "ui/gfx/native_widget_types.h" |
| +#endif |
| + |
| class GURL; |
| namespace IPC { |
| @@ -19,6 +26,7 @@ class Message; |
| namespace content { |
| class RenderFrameHost; |
| class WebContents; |
| +struct AXEventNotificationDetails; |
| struct ContextMenuParams; |
| // An interface implemented by an object interested in knowing about the state |
| @@ -111,6 +119,18 @@ class CONTENT_EXPORT RenderFrameHostDelegate { |
| // not a WebContents, returns NULL. |
| virtual WebContents* GetAsWebContents(); |
| + // Get the accessibility mode for the WebContents that owns this frame. |
|
David Tseng
2014/07/14 19:08:01
this frame delegate's frame?
dmazzoni
2014/07/15 07:55:03
I'm not sure what you mean? The WebContents is who
|
| + virtual AccessibilityMode GetAccessibilityMode() const; |
|
David Tseng
2014/07/14 19:08:01
Does it make sense to have this on the delegate? S
dmazzoni
2014/07/15 07:55:03
WebContentsImpl is the class that implements Rende
|
| + |
| + // Invoked when an accessibility event is received from the renderer. |
| + virtual void AccessibilityEventReceived( |
| + const std::vector<AXEventNotificationDetails>& details) {} |
| + |
| +#if defined(OS_WIN) |
|
David Tseng
2014/07/14 19:08:01
Why only on Win? Do we need anything for Mac as we
dmazzoni
2014/07/15 07:55:03
It's complicated - basically the parent native vie
|
| + // Returns the frame's parent's NativeViewAccessible. |
| + virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| +#endif |
| + |
| protected: |
| virtual ~RenderFrameHostDelegate() {} |
| }; |