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 11 matching lines...) Expand all Loading... |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
24 #endif | 24 #endif |
25 | 25 |
26 class GURL; | 26 class GURL; |
27 | 27 |
28 namespace IPC { | 28 namespace IPC { |
29 class Message; | 29 class Message; |
30 } | 30 } |
31 | 31 |
| 32 namespace device { |
| 33 class GeolocationServiceContext; |
| 34 } |
| 35 |
32 namespace content { | 36 namespace content { |
33 class FrameTreeNode; | 37 class FrameTreeNode; |
34 class GeolocationServiceContext; | |
35 class InterstitialPage; | 38 class InterstitialPage; |
36 class PageState; | 39 class PageState; |
37 class RenderFrameHost; | 40 class RenderFrameHost; |
38 class WakeLockServiceContext; | 41 class WakeLockServiceContext; |
39 class WebContents; | 42 class WebContents; |
40 struct AXEventNotificationDetails; | 43 struct AXEventNotificationDetails; |
41 struct ContextMenuParams; | 44 struct ContextMenuParams; |
42 struct FileChooserParams; | 45 struct FileChooserParams; |
43 struct TransitionLayerData; | 46 struct TransitionLayerData; |
44 | 47 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 virtual void AccessibilityEventReceived( | 146 virtual void AccessibilityEventReceived( |
144 const std::vector<AXEventNotificationDetails>& details) {} | 147 const std::vector<AXEventNotificationDetails>& details) {} |
145 | 148 |
146 // Find a guest RenderFrameHost by its parent |render_frame_host| and | 149 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
147 // |browser_plugin_instance_id|. | 150 // |browser_plugin_instance_id|. |
148 virtual RenderFrameHost* GetGuestByInstanceID( | 151 virtual RenderFrameHost* GetGuestByInstanceID( |
149 RenderFrameHost* render_frame_host, | 152 RenderFrameHost* render_frame_host, |
150 int browser_plugin_instance_id); | 153 int browser_plugin_instance_id); |
151 | 154 |
152 // Gets the GeolocationServiceContext associated with this delegate. | 155 // Gets the GeolocationServiceContext associated with this delegate. |
153 virtual GeolocationServiceContext* GetGeolocationServiceContext(); | 156 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
154 | 157 |
155 // Gets the WakeLockServiceContext associated with this delegate. | 158 // Gets the WakeLockServiceContext associated with this delegate. |
156 virtual WakeLockServiceContext* GetWakeLockServiceContext(); | 159 virtual WakeLockServiceContext* GetWakeLockServiceContext(); |
157 | 160 |
158 // Notification that the frame wants to go into fullscreen mode. | 161 // Notification that the frame wants to go into fullscreen mode. |
159 // |origin| represents the origin of the frame that requests fullscreen. | 162 // |origin| represents the origin of the frame that requests fullscreen. |
160 virtual void EnterFullscreenMode(const GURL& origin) {} | 163 virtual void EnterFullscreenMode(const GURL& origin) {} |
161 | 164 |
162 // Notification that the frame wants to go out of fullscreen mode. | 165 // Notification that the frame wants to go out of fullscreen mode. |
163 // |will_cause_resize| indicates whether the fullscreen change causes a | 166 // |will_cause_resize| indicates whether the fullscreen change causes a |
(...skipping 30 matching lines...) Expand all Loading... |
194 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 197 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
195 const GURL& url); | 198 const GURL& url); |
196 | 199 |
197 protected: | 200 protected: |
198 virtual ~RenderFrameHostDelegate() {} | 201 virtual ~RenderFrameHostDelegate() {} |
199 }; | 202 }; |
200 | 203 |
201 } // namespace content | 204 } // namespace content |
202 | 205 |
203 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 206 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |