| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 virtual bool CheckMediaAccessPermission(const GURL& security_origin, | 141 virtual bool CheckMediaAccessPermission(const GURL& security_origin, |
| 142 MediaStreamType type); | 142 MediaStreamType type); |
| 143 | 143 |
| 144 // Get the accessibility mode for the WebContents that owns this frame. | 144 // Get the accessibility mode for the WebContents that owns this frame. |
| 145 virtual AccessibilityMode GetAccessibilityMode() const; | 145 virtual AccessibilityMode GetAccessibilityMode() const; |
| 146 | 146 |
| 147 // Invoked when an accessibility event is received from the renderer. | 147 // Invoked when an accessibility event is received from the renderer. |
| 148 virtual void AccessibilityEventReceived( | 148 virtual void AccessibilityEventReceived( |
| 149 const std::vector<AXEventNotificationDetails>& details) {} | 149 const std::vector<AXEventNotificationDetails>& details) {} |
| 150 | 150 |
| 151 // Find a guest RenderFrameHost by its browser plugin instance id. | 151 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
| 152 // |browser_plugin_instance_id|. |
| 152 virtual RenderFrameHost* GetGuestByInstanceID( | 153 virtual RenderFrameHost* GetGuestByInstanceID( |
| 154 RenderFrameHost* render_frame_host, |
| 153 int browser_plugin_instance_id); | 155 int browser_plugin_instance_id); |
| 154 | 156 |
| 155 // Gets the GeolocationServiceContext associated with this delegate. | 157 // Gets the GeolocationServiceContext associated with this delegate. |
| 156 virtual GeolocationServiceContext* GetGeolocationServiceContext(); | 158 virtual GeolocationServiceContext* GetGeolocationServiceContext(); |
| 157 | 159 |
| 158 // Notification that the frame wants to go into fullscreen mode. | 160 // Notification that the frame wants to go into fullscreen mode. |
| 159 // |origin| represents the origin of the frame that requests fullscreen. | 161 // |origin| represents the origin of the frame that requests fullscreen. |
| 160 virtual void EnterFullscreenMode(const GURL& origin) {} | 162 virtual void EnterFullscreenMode(const GURL& origin) {} |
| 161 | 163 |
| 162 // Notification that the frame wants to go out of fullscreen mode. | 164 // Notification that the frame wants to go out of fullscreen mode. |
| 163 virtual void ExitFullscreenMode() {} | 165 virtual void ExitFullscreenMode() {} |
| 164 | 166 |
| 165 #if defined(OS_WIN) | 167 #if defined(OS_WIN) |
| 166 // Returns the frame's parent's NativeViewAccessible. | 168 // Returns the frame's parent's NativeViewAccessible. |
| 167 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 169 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 168 #endif | 170 #endif |
| 169 | 171 |
| 170 protected: | 172 protected: |
| 171 virtual ~RenderFrameHostDelegate() {} | 173 virtual ~RenderFrameHostDelegate() {} |
| 172 }; | 174 }; |
| 173 | 175 |
| 174 } // namespace content | 176 } // namespace content |
| 175 | 177 |
| 176 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |