| 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 <vector> | 10 #include <vector> |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 virtual GeolocationServiceContext* GetGeolocationServiceContext(); | 146 virtual GeolocationServiceContext* GetGeolocationServiceContext(); |
| 147 | 147 |
| 148 // Gets the WakeLockServiceContext associated with this delegate. | 148 // Gets the WakeLockServiceContext associated with this delegate. |
| 149 virtual WakeLockServiceContext* GetWakeLockServiceContext(); | 149 virtual WakeLockServiceContext* GetWakeLockServiceContext(); |
| 150 | 150 |
| 151 // Notification that the frame wants to go into fullscreen mode. | 151 // Notification that the frame wants to go into fullscreen mode. |
| 152 // |origin| represents the origin of the frame that requests fullscreen. | 152 // |origin| represents the origin of the frame that requests fullscreen. |
| 153 virtual void EnterFullscreenMode(const GURL& origin) {} | 153 virtual void EnterFullscreenMode(const GURL& origin) {} |
| 154 | 154 |
| 155 // Notification that the frame wants to go out of fullscreen mode. | 155 // Notification that the frame wants to go out of fullscreen mode. |
| 156 virtual void ExitFullscreenMode() {} | 156 // |will_cause_resize| indicates whether the fullscreen change causes a |
| 157 // view resize. e.g. This will be false when going from tab fullscreen to |
| 158 // browser fullscreen. |
| 159 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
| 157 | 160 |
| 158 // Let the delegate decide whether postMessage should be delivered to | 161 // Let the delegate decide whether postMessage should be delivered to |
| 159 // |target_rfh| from a source frame in the given SiteInstance. This defaults | 162 // |target_rfh| from a source frame in the given SiteInstance. This defaults |
| 160 // to false and overrides the RenderFrameHost's decision if true. | 163 // to false and overrides the RenderFrameHost's decision if true. |
| 161 virtual bool ShouldRouteMessageEvent( | 164 virtual bool ShouldRouteMessageEvent( |
| 162 RenderFrameHost* target_rfh, | 165 RenderFrameHost* target_rfh, |
| 163 SiteInstance* source_site_instance) const; | 166 SiteInstance* source_site_instance) const; |
| 164 | 167 |
| 165 // Ensure that |source_rfh| has swapped-out RenderViews and | 168 // Ensure that |source_rfh| has swapped-out RenderViews and |
| 166 // RenderFrameProxies for itself and for all frames on its opener chain in | 169 // RenderFrameProxies for itself and for all frames on its opener chain in |
| (...skipping 17 matching lines...) Expand all Loading... |
| 184 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 187 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 185 #endif | 188 #endif |
| 186 | 189 |
| 187 protected: | 190 protected: |
| 188 virtual ~RenderFrameHostDelegate() {} | 191 virtual ~RenderFrameHostDelegate() {} |
| 189 }; | 192 }; |
| 190 | 193 |
| 191 } // namespace content | 194 } // namespace content |
| 192 | 195 |
| 193 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 196 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |