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 23 matching lines...) Expand all Loading... |
34 namespace device { | 34 namespace device { |
35 class GeolocationServiceContext; | 35 class GeolocationServiceContext; |
36 class WakeLockServiceContext; | 36 class WakeLockServiceContext; |
37 } | 37 } |
38 | 38 |
39 namespace content { | 39 namespace content { |
40 class FrameTreeNode; | 40 class FrameTreeNode; |
41 class InterstitialPage; | 41 class InterstitialPage; |
42 class PageState; | 42 class PageState; |
43 class RenderFrameHost; | 43 class RenderFrameHost; |
| 44 class ScreenOrientationProvider; |
44 class WebContents; | 45 class WebContents; |
45 struct AXEventNotificationDetails; | 46 struct AXEventNotificationDetails; |
46 struct AXLocationChangeNotificationDetails; | 47 struct AXLocationChangeNotificationDetails; |
47 struct ContextMenuParams; | 48 struct ContextMenuParams; |
48 struct FileChooserParams; | 49 struct FileChooserParams; |
49 | 50 |
50 // 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 |
51 // of the RenderFrameHost. | 52 // of the RenderFrameHost. |
52 class CONTENT_EXPORT RenderFrameHostDelegate { | 53 class CONTENT_EXPORT RenderFrameHostDelegate { |
53 public: | 54 public: |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 virtual RenderFrameHost* GetGuestByInstanceID( | 162 virtual RenderFrameHost* GetGuestByInstanceID( |
162 RenderFrameHost* render_frame_host, | 163 RenderFrameHost* render_frame_host, |
163 int browser_plugin_instance_id); | 164 int browser_plugin_instance_id); |
164 | 165 |
165 // Gets the GeolocationServiceContext associated with this delegate. | 166 // Gets the GeolocationServiceContext associated with this delegate. |
166 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 167 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
167 | 168 |
168 // Gets the WakeLockServiceContext associated with this delegate. | 169 // Gets the WakeLockServiceContext associated with this delegate. |
169 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); | 170 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); |
170 | 171 |
| 172 // Gets the ScreenOrientationProvider associated with this delegate. |
| 173 virtual ScreenOrientationProvider* GetScreenOrientationProvider(); |
| 174 |
171 // Notification that the frame wants to go into fullscreen mode. | 175 // Notification that the frame wants to go into fullscreen mode. |
172 // |origin| represents the origin of the frame that requests fullscreen. | 176 // |origin| represents the origin of the frame that requests fullscreen. |
173 virtual void EnterFullscreenMode(const GURL& origin) {} | 177 virtual void EnterFullscreenMode(const GURL& origin) {} |
174 | 178 |
175 // Notification that the frame wants to go out of fullscreen mode. | 179 // Notification that the frame wants to go out of fullscreen mode. |
176 // |will_cause_resize| indicates whether the fullscreen change causes a | 180 // |will_cause_resize| indicates whether the fullscreen change causes a |
177 // view resize. e.g. This will be false when going from tab fullscreen to | 181 // view resize. e.g. This will be false when going from tab fullscreen to |
178 // browser fullscreen. | 182 // browser fullscreen. |
179 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 183 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
180 | 184 |
(...skipping 26 matching lines...) Expand all Loading... |
207 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 211 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
208 const GURL& url); | 212 const GURL& url); |
209 | 213 |
210 protected: | 214 protected: |
211 virtual ~RenderFrameHostDelegate() {} | 215 virtual ~RenderFrameHostDelegate() {} |
212 }; | 216 }; |
213 | 217 |
214 } // namespace content | 218 } // namespace content |
215 | 219 |
216 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 220 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |