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 20 matching lines...) Expand all Loading... |
31 #endif | 31 #endif |
32 | 32 |
33 class GURL; | 33 class GURL; |
34 | 34 |
35 namespace IPC { | 35 namespace IPC { |
36 class Message; | 36 class Message; |
37 } | 37 } |
38 | 38 |
39 namespace device { | 39 namespace device { |
40 class GeolocationServiceContext; | 40 class GeolocationServiceContext; |
41 class WakeLockServiceContext; | 41 |
| 42 namespace mojom { |
| 43 class WakeLockContext; |
| 44 } |
42 } | 45 } |
43 | 46 |
44 namespace gfx { | 47 namespace gfx { |
45 class Rect; | 48 class Rect; |
46 } | 49 } |
47 | 50 |
48 namespace url { | 51 namespace url { |
49 class Origin; | 52 class Origin; |
50 } | 53 } |
51 | 54 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // Find a guest RenderFrameHost by its parent |render_frame_host| and | 188 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
186 // |browser_plugin_instance_id|. | 189 // |browser_plugin_instance_id|. |
187 virtual RenderFrameHost* GetGuestByInstanceID( | 190 virtual RenderFrameHost* GetGuestByInstanceID( |
188 RenderFrameHost* render_frame_host, | 191 RenderFrameHost* render_frame_host, |
189 int browser_plugin_instance_id); | 192 int browser_plugin_instance_id); |
190 | 193 |
191 // Gets the GeolocationServiceContext associated with this delegate. | 194 // Gets the GeolocationServiceContext associated with this delegate. |
192 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 195 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
193 | 196 |
194 // Gets the WakeLockServiceContext associated with this delegate. | 197 // Gets the WakeLockServiceContext associated with this delegate. |
195 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); | 198 virtual device::mojom::WakeLockContext* GetWakeLockServiceContext(); |
196 | 199 |
197 // Notification that the frame wants to go into fullscreen mode. | 200 // Notification that the frame wants to go into fullscreen mode. |
198 // |origin| represents the origin of the frame that requests fullscreen. | 201 // |origin| represents the origin of the frame that requests fullscreen. |
199 virtual void EnterFullscreenMode(const GURL& origin) {} | 202 virtual void EnterFullscreenMode(const GURL& origin) {} |
200 | 203 |
201 // Notification that the frame wants to go out of fullscreen mode. | 204 // Notification that the frame wants to go out of fullscreen mode. |
202 // |will_cause_resize| indicates whether the fullscreen change causes a | 205 // |will_cause_resize| indicates whether the fullscreen change causes a |
203 // view resize. e.g. This will be false when going from tab fullscreen to | 206 // view resize. e.g. This will be false when going from tab fullscreen to |
204 // browser fullscreen. | 207 // browser fullscreen. |
205 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 208 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 GetJavaRenderFrameHostDelegate(); | 302 GetJavaRenderFrameHostDelegate(); |
300 #endif | 303 #endif |
301 | 304 |
302 protected: | 305 protected: |
303 virtual ~RenderFrameHostDelegate() {} | 306 virtual ~RenderFrameHostDelegate() {} |
304 }; | 307 }; |
305 | 308 |
306 } // namespace content | 309 } // namespace content |
307 | 310 |
308 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 311 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |