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 ScreenOrientationImpl; | |
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 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 { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 virtual RenderFrameHost* GetGuestByInstanceID( | 163 virtual RenderFrameHost* GetGuestByInstanceID( |
163 RenderFrameHost* render_frame_host, | 164 RenderFrameHost* render_frame_host, |
164 int browser_plugin_instance_id); | 165 int browser_plugin_instance_id); |
165 | 166 |
166 // Gets the GeolocationServiceContext associated with this delegate. | 167 // Gets the GeolocationServiceContext associated with this delegate. |
167 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 168 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
168 | 169 |
169 // Gets the WakeLockServiceContext associated with this delegate. | 170 // Gets the WakeLockServiceContext associated with this delegate. |
170 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); | 171 virtual device::WakeLockServiceContext* GetWakeLockServiceContext(); |
171 | 172 |
173 // Gets the ScreenOrientation interface associated with this delegate. | |
174 virtual ScreenOrientationImpl* GetScreenOrientation(); | |
blundell
2016/10/21 18:16:31
nit: I would just expose the ScreenOrientationProv
lunalu1
2016/10/24 16:57:36
Done.
| |
175 | |
172 // Notification that the frame wants to go into fullscreen mode. | 176 // Notification that the frame wants to go into fullscreen mode. |
173 // |origin| represents the origin of the frame that requests fullscreen. | 177 // |origin| represents the origin of the frame that requests fullscreen. |
174 virtual void EnterFullscreenMode(const GURL& origin) {} | 178 virtual void EnterFullscreenMode(const GURL& origin) {} |
175 | 179 |
176 // Notification that the frame wants to go out of fullscreen mode. | 180 // Notification that the frame wants to go out of fullscreen mode. |
177 // |will_cause_resize| indicates whether the fullscreen change causes a | 181 // |will_cause_resize| indicates whether the fullscreen change causes a |
178 // view resize. e.g. This will be false when going from tab fullscreen to | 182 // view resize. e.g. This will be false when going from tab fullscreen to |
179 // browser fullscreen. | 183 // browser fullscreen. |
180 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 184 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
181 | 185 |
(...skipping 26 matching lines...) Expand all Loading... | |
208 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 212 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
209 const GURL& url); | 213 const GURL& url); |
210 | 214 |
211 protected: | 215 protected: |
212 virtual ~RenderFrameHostDelegate() {} | 216 virtual ~RenderFrameHostDelegate() {} |
213 }; | 217 }; |
214 | 218 |
215 } // namespace content | 219 } // namespace content |
216 | 220 |
217 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 221 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |