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 <string> | 10 #include <string> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #endif | 26 #endif |
27 | 27 |
28 class GURL; | 28 class GURL; |
29 | 29 |
30 namespace IPC { | 30 namespace IPC { |
31 class Message; | 31 class Message; |
32 } | 32 } |
33 | 33 |
34 namespace device { | 34 namespace device { |
35 class GeolocationServiceContext; | 35 class GeolocationServiceContext; |
| 36 class WakeLockServiceContext; |
36 } | 37 } |
37 | 38 |
38 namespace content { | 39 namespace content { |
39 class FrameTreeNode; | 40 class FrameTreeNode; |
40 class InterstitialPage; | 41 class InterstitialPage; |
41 class PageState; | 42 class PageState; |
42 class RenderFrameHost; | 43 class RenderFrameHost; |
43 class WakeLockServiceContext; | |
44 class WebContents; | 44 class WebContents; |
45 struct AXEventNotificationDetails; | 45 struct AXEventNotificationDetails; |
46 struct AXLocationChangeNotificationDetails; | 46 struct AXLocationChangeNotificationDetails; |
47 struct ContextMenuParams; | 47 struct ContextMenuParams; |
48 struct FileChooserParams; | 48 struct FileChooserParams; |
49 struct TransitionLayerData; | 49 struct TransitionLayerData; |
50 | 50 |
51 // An interface implemented by an object interested in knowing about the state | 51 // An interface implemented by an object interested in knowing about the state |
52 // of the RenderFrameHost. | 52 // of the RenderFrameHost. |
53 class CONTENT_EXPORT RenderFrameHostDelegate { | 53 class CONTENT_EXPORT RenderFrameHostDelegate { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // Find a guest RenderFrameHost by its parent |render_frame_host| and | 161 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
162 // |browser_plugin_instance_id|. | 162 // |browser_plugin_instance_id|. |
163 virtual RenderFrameHost* GetGuestByInstanceID( | 163 virtual RenderFrameHost* GetGuestByInstanceID( |
164 RenderFrameHost* render_frame_host, | 164 RenderFrameHost* render_frame_host, |
165 int browser_plugin_instance_id); | 165 int browser_plugin_instance_id); |
166 | 166 |
167 // Gets the GeolocationServiceContext associated with this delegate. | 167 // Gets the GeolocationServiceContext associated with this delegate. |
168 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 168 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
169 | 169 |
170 // Gets the WakeLockServiceContext associated with this delegate. | 170 // Gets the WakeLockServiceContext associated with this delegate. |
171 virtual WakeLockServiceContext* GetWakeLockServiceContext(); | 171 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); |
172 | 172 |
173 // Notification that the frame wants to go into fullscreen mode. | 173 // Notification that the frame wants to go into fullscreen mode. |
174 // |origin| represents the origin of the frame that requests fullscreen. | 174 // |origin| represents the origin of the frame that requests fullscreen. |
175 virtual void EnterFullscreenMode(const GURL& origin) {} | 175 virtual void EnterFullscreenMode(const GURL& origin) {} |
176 | 176 |
177 // Notification that the frame wants to go out of fullscreen mode. | 177 // Notification that the frame wants to go out of fullscreen mode. |
178 // |will_cause_resize| indicates whether the fullscreen change causes a | 178 // |will_cause_resize| indicates whether the fullscreen change causes a |
179 // view resize. e.g. This will be false when going from tab fullscreen to | 179 // view resize. e.g. This will be false when going from tab fullscreen to |
180 // browser fullscreen. | 180 // browser fullscreen. |
181 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 181 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
(...skipping 27 matching lines...) Expand all Loading... |
209 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 209 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
210 const GURL& url); | 210 const GURL& url); |
211 | 211 |
212 protected: | 212 protected: |
213 virtual ~RenderFrameHostDelegate() {} | 213 virtual ~RenderFrameHostDelegate() {} |
214 }; | 214 }; |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
217 | 217 |
218 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 218 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |