OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 // Creates a full screen RenderWidget. Similar to above. | 192 // Creates a full screen RenderWidget. Similar to above. |
193 virtual void CreateNewFullscreenWidget(int32_t render_process_id, | 193 virtual void CreateNewFullscreenWidget(int32_t render_process_id, |
194 int32_t route_id) {} | 194 int32_t route_id) {} |
195 | 195 |
196 // Show a previously created page with the specified disposition and bounds. | 196 // Show a previously created page with the specified disposition and bounds. |
197 // The window is identified by the route_id passed to CreateNewWindow. | 197 // The window is identified by the route_id passed to CreateNewWindow. |
198 // | 198 // |
199 // Note: this is not called "ShowWindow" because that will clash with | 199 // Note: this is not called "ShowWindow" because that will clash with |
200 // the Windows function which is actually a #define. | 200 // the Windows function which is actually a #define. |
201 virtual void ShowCreatedWindow(int route_id, | 201 virtual void ShowCreatedWindow(int process_id, |
| 202 int route_id, |
202 WindowOpenDisposition disposition, | 203 WindowOpenDisposition disposition, |
203 const gfx::Rect& initial_rect, | 204 const gfx::Rect& initial_rect, |
204 bool user_gesture) {} | 205 bool user_gesture) {} |
205 | 206 |
206 // Show the newly created widget with the specified bounds. | 207 // Show the newly created widget with the specified bounds. |
207 // The widget is identified by the route_id passed to CreateNewWidget. | 208 // The widget is identified by the route_id passed to CreateNewWidget. |
208 virtual void ShowCreatedWidget(int route_id, | 209 virtual void ShowCreatedWidget(int process_id, |
| 210 int route_id, |
209 const gfx::Rect& initial_rect) {} | 211 const gfx::Rect& initial_rect) {} |
210 | 212 |
211 // Show the newly created full screen widget. Similar to above. | 213 // Show the newly created full screen widget. Similar to above. |
212 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 214 virtual void ShowCreatedFullscreenWidget(int process_id, int route_id) {} |
213 | 215 |
214 // Returns the SessionStorageNamespace the render view should use. Might | 216 // Returns the SessionStorageNamespace the render view should use. Might |
215 // create the SessionStorageNamespace on the fly. | 217 // create the SessionStorageNamespace on the fly. |
216 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 218 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
217 SiteInstance* instance); | 219 SiteInstance* instance); |
218 | 220 |
219 // Returns a copy of the map of all session storage namespaces related | 221 // Returns a copy of the map of all session storage namespaces related |
220 // to this view. | 222 // to this view. |
221 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); | 223 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); |
222 | 224 |
(...skipping 23 matching lines...) Expand all Loading... |
246 // Desktop Site" feature. | 248 // Desktop Site" feature. |
247 virtual bool IsOverridingUserAgent(); | 249 virtual bool IsOverridingUserAgent(); |
248 | 250 |
249 protected: | 251 protected: |
250 virtual ~RenderViewHostDelegate() {} | 252 virtual ~RenderViewHostDelegate() {} |
251 }; | 253 }; |
252 | 254 |
253 } // namespace content | 255 } // namespace content |
254 | 256 |
255 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 257 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |