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 24 matching lines...) Expand all Loading... |
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 WebContents; | 44 class WebContents; |
| 45 class ScreenOrientationProvider; |
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 struct TransitionLayerData; | 50 struct TransitionLayerData; |
50 | 51 |
51 // An interface implemented by an object interested in knowing about the state | 52 // An interface implemented by an object interested in knowing about the state |
52 // of the RenderFrameHost. | 53 // of the RenderFrameHost. |
53 class CONTENT_EXPORT RenderFrameHostDelegate { | 54 class CONTENT_EXPORT RenderFrameHostDelegate { |
54 public: | 55 public: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 virtual RenderFrameHost* GetGuestByInstanceID( | 164 virtual RenderFrameHost* GetGuestByInstanceID( |
164 RenderFrameHost* render_frame_host, | 165 RenderFrameHost* render_frame_host, |
165 int browser_plugin_instance_id); | 166 int browser_plugin_instance_id); |
166 | 167 |
167 // Gets the GeolocationServiceContext associated with this delegate. | 168 // Gets the GeolocationServiceContext associated with this delegate. |
168 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 169 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
169 | 170 |
170 // Gets the WakeLockServiceContext associated with this delegate. | 171 // Gets the WakeLockServiceContext associated with this delegate. |
171 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); | 172 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); |
172 | 173 |
| 174 // Gets the ScreenOrientationProvider associated with this delegate. |
| 175 virtual ScreenOrientationProvider* GetScreenOrientationProvider(); |
| 176 |
173 // Notification that the frame wants to go into fullscreen mode. | 177 // Notification that the frame wants to go into fullscreen mode. |
174 // |origin| represents the origin of the frame that requests fullscreen. | 178 // |origin| represents the origin of the frame that requests fullscreen. |
175 virtual void EnterFullscreenMode(const GURL& origin) {} | 179 virtual void EnterFullscreenMode(const GURL& origin) {} |
176 | 180 |
177 // Notification that the frame wants to go out of fullscreen mode. | 181 // Notification that the frame wants to go out of fullscreen mode. |
178 // |will_cause_resize| indicates whether the fullscreen change causes a | 182 // |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 | 183 // view resize. e.g. This will be false when going from tab fullscreen to |
180 // browser fullscreen. | 184 // browser fullscreen. |
181 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 185 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
182 | 186 |
(...skipping 26 matching lines...) Expand all Loading... |
209 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 213 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
210 const GURL& url); | 214 const GURL& url); |
211 | 215 |
212 protected: | 216 protected: |
213 virtual ~RenderFrameHostDelegate() {} | 217 virtual ~RenderFrameHostDelegate() {} |
214 }; | 218 }; |
215 | 219 |
216 } // namespace content | 220 } // namespace content |
217 | 221 |
218 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 222 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |