| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace content { | 36 namespace content { |
| 37 class FrameTreeNode; | 37 class FrameTreeNode; |
| 38 class InterstitialPage; | 38 class InterstitialPage; |
| 39 class PageState; | 39 class PageState; |
| 40 class RenderFrameHost; | 40 class RenderFrameHost; |
| 41 class WakeLockServiceContext; | 41 class WakeLockServiceContext; |
| 42 class WebContents; | 42 class WebContents; |
| 43 struct AXEventNotificationDetails; | 43 struct AXEventNotificationDetails; |
| 44 struct AXLocationChangeNotificationDetails; |
| 44 struct ContextMenuParams; | 45 struct ContextMenuParams; |
| 45 struct FileChooserParams; | 46 struct FileChooserParams; |
| 46 struct TransitionLayerData; | 47 struct TransitionLayerData; |
| 47 | 48 |
| 48 // An interface implemented by an object interested in knowing about the state | 49 // An interface implemented by an object interested in knowing about the state |
| 49 // of the RenderFrameHost. | 50 // of the RenderFrameHost. |
| 50 class CONTENT_EXPORT RenderFrameHostDelegate { | 51 class CONTENT_EXPORT RenderFrameHostDelegate { |
| 51 public: | 52 public: |
| 52 // This is used to give the delegate a chance to filter IPC messages. | 53 // This is used to give the delegate a chance to filter IPC messages. |
| 53 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 54 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 136 |
| 136 // Checks if we have permission to access the microphone or camera. Note that | 137 // Checks if we have permission to access the microphone or camera. Note that |
| 137 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE | 138 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE |
| 138 // or MEDIA_DEVICE_VIDEO_CAPTURE. | 139 // or MEDIA_DEVICE_VIDEO_CAPTURE. |
| 139 virtual bool CheckMediaAccessPermission(const GURL& security_origin, | 140 virtual bool CheckMediaAccessPermission(const GURL& security_origin, |
| 140 MediaStreamType type); | 141 MediaStreamType type); |
| 141 | 142 |
| 142 // Get the accessibility mode for the WebContents that owns this frame. | 143 // Get the accessibility mode for the WebContents that owns this frame. |
| 143 virtual AccessibilityMode GetAccessibilityMode() const; | 144 virtual AccessibilityMode GetAccessibilityMode() const; |
| 144 | 145 |
| 145 // Invoked when an accessibility event is received from the renderer. | 146 // Forward accessibility messages to other potential listeners like |
| 147 // the automation extension API. |
| 146 virtual void AccessibilityEventReceived( | 148 virtual void AccessibilityEventReceived( |
| 147 const std::vector<AXEventNotificationDetails>& details) {} | 149 const std::vector<AXEventNotificationDetails>& details) {} |
| 150 virtual void AccessibilityLocationChangesReceived( |
| 151 const std::vector<AXLocationChangeNotificationDetails>& details) {} |
| 148 | 152 |
| 149 // Find a guest RenderFrameHost by its parent |render_frame_host| and | 153 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
| 150 // |browser_plugin_instance_id|. | 154 // |browser_plugin_instance_id|. |
| 151 virtual RenderFrameHost* GetGuestByInstanceID( | 155 virtual RenderFrameHost* GetGuestByInstanceID( |
| 152 RenderFrameHost* render_frame_host, | 156 RenderFrameHost* render_frame_host, |
| 153 int browser_plugin_instance_id); | 157 int browser_plugin_instance_id); |
| 154 | 158 |
| 155 // Gets the GeolocationServiceContext associated with this delegate. | 159 // Gets the GeolocationServiceContext associated with this delegate. |
| 156 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 160 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
| 157 | 161 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 201 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 198 const GURL& url); | 202 const GURL& url); |
| 199 | 203 |
| 200 protected: | 204 protected: |
| 201 virtual ~RenderFrameHostDelegate() {} | 205 virtual ~RenderFrameHostDelegate() {} |
| 202 }; | 206 }; |
| 203 | 207 |
| 204 } // namespace content | 208 } // namespace content |
| 205 | 209 |
| 206 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 210 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |