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 16 matching lines...) Expand all Loading... |
27 #endif | 27 #endif |
28 | 28 |
29 class GURL; | 29 class GURL; |
30 | 30 |
31 namespace IPC { | 31 namespace IPC { |
32 class Message; | 32 class Message; |
33 } | 33 } |
34 | 34 |
35 namespace device { | 35 namespace device { |
36 class GeolocationServiceContext; | 36 class GeolocationServiceContext; |
| 37 |
| 38 namespace mojom { |
37 class WakeLockServiceContext; | 39 class WakeLockServiceContext; |
38 } | 40 } |
| 41 } |
39 | 42 |
40 namespace gfx { | 43 namespace gfx { |
41 class Rect; | 44 class Rect; |
42 } | 45 } |
43 | 46 |
44 namespace url { | 47 namespace url { |
45 class Origin; | 48 class Origin; |
46 } | 49 } |
47 | 50 |
48 namespace content { | 51 namespace content { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Find a guest RenderFrameHost by its parent |render_frame_host| and | 184 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
182 // |browser_plugin_instance_id|. | 185 // |browser_plugin_instance_id|. |
183 virtual RenderFrameHost* GetGuestByInstanceID( | 186 virtual RenderFrameHost* GetGuestByInstanceID( |
184 RenderFrameHost* render_frame_host, | 187 RenderFrameHost* render_frame_host, |
185 int browser_plugin_instance_id); | 188 int browser_plugin_instance_id); |
186 | 189 |
187 // Gets the GeolocationServiceContext associated with this delegate. | 190 // Gets the GeolocationServiceContext associated with this delegate. |
188 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 191 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
189 | 192 |
190 // Gets the WakeLockServiceContext associated with this delegate. | 193 // Gets the WakeLockServiceContext associated with this delegate. |
191 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); | 194 virtual device::mojom::WakeLockServiceContext* GetWakeLockServiceContext(); |
192 | 195 |
193 // Notification that the frame wants to go into fullscreen mode. | 196 // Notification that the frame wants to go into fullscreen mode. |
194 // |origin| represents the origin of the frame that requests fullscreen. | 197 // |origin| represents the origin of the frame that requests fullscreen. |
195 virtual void EnterFullscreenMode(const GURL& origin) {} | 198 virtual void EnterFullscreenMode(const GURL& origin) {} |
196 | 199 |
197 // Notification that the frame wants to go out of fullscreen mode. | 200 // Notification that the frame wants to go out of fullscreen mode. |
198 // |will_cause_resize| indicates whether the fullscreen change causes a | 201 // |will_cause_resize| indicates whether the fullscreen change causes a |
199 // view resize. e.g. This will be false when going from tab fullscreen to | 202 // view resize. e.g. This will be false when going from tab fullscreen to |
200 // browser fullscreen. | 203 // browser fullscreen. |
201 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 204 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 const url::Origin& origin, | 293 const url::Origin& origin, |
291 const GURL& resource_url); | 294 const GURL& resource_url); |
292 | 295 |
293 protected: | 296 protected: |
294 virtual ~RenderFrameHostDelegate() {} | 297 virtual ~RenderFrameHostDelegate() {} |
295 }; | 298 }; |
296 | 299 |
297 } // namespace content | 300 } // namespace content |
298 | 301 |
299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 302 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |