Chromium Code Reviews| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 const gfx::Rect& bounds_in_root_view) {} | 245 const gfx::Rect& bounds_in_root_view) {} |
| 246 | 246 |
| 247 // The page is trying to open a new page (e.g. a popup window). The window | 247 // The page is trying to open a new page (e.g. a popup window). The window |
| 248 // should be created associated with the given |main_frame_widget_route_id| in | 248 // should be created associated with the given |main_frame_widget_route_id| in |
| 249 // the process of |source_site_instance|, but it should not be shown yet. That | 249 // the process of |source_site_instance|, but it should not be shown yet. That |
| 250 // should happen in response to ShowCreatedWindow. | 250 // should happen in response to ShowCreatedWindow. |
| 251 // |params.window_container_type| describes the type of RenderViewHost | 251 // |params.window_container_type| describes the type of RenderViewHost |
| 252 // container that is requested -- in particular, the window.open call may have | 252 // container that is requested -- in particular, the window.open call may have |
| 253 // specified 'background' and 'persistent' in the feature string. | 253 // specified 'background' and 'persistent' in the feature string. |
| 254 // | 254 // |
| 255 // The passed |opener| is the RenderFrameHost initiating the window creation. | |
|
ncarter (slow)
2017/04/20 21:30:36
This comment should clarify that |opener| is never
Charlie Harrison
2017/04/21 15:30:07
Done.
| |
| 256 // | |
| 255 // The passed |params.frame_name| parameter is the name parameter that was | 257 // The passed |params.frame_name| parameter is the name parameter that was |
| 256 // passed to window.open(), and will be empty if none was passed. | 258 // passed to window.open(), and will be empty if none was passed. |
| 257 // | 259 // |
| 258 // Note: this is not called "CreateWindow" because that will clash with | 260 // Note: this is not called "CreateWindow" because that will clash with |
| 259 // the Windows function which is actually a #define. | 261 // the Windows function which is actually a #define. |
| 260 // | 262 // |
| 261 // The caller is expected to handle cleanup if this operation fails or is | 263 // The caller is expected to handle cleanup if this operation fails or is |
| 262 // suppressed, by looking for the existence of a RenderFrameHost in | 264 // suppressed, by looking for the existence of a RenderFrameHost in |
| 263 // source_site_instance's process with |main_frame_route_id| after this method | 265 // source_site_instance's process with |main_frame_route_id| after this method |
|
ncarter (slow)
2017/04/20 21:30:36
In these comment paragraphs, replace |source_site_
Charlie Harrison
2017/04/21 15:30:07
Done.
| |
| 264 // returns. | 266 // returns. |
| 265 virtual void CreateNewWindow( | 267 virtual void CreateNewWindow( |
| 266 SiteInstance* source_site_instance, | 268 SiteInstance* source_site_instance, |
| 269 RenderFrameHost* opener, | |
|
ncarter (slow)
2017/04/20 21:30:36
We can eliminate |source_site_instance| now that |
Charlie Harrison
2017/04/21 15:30:07
Done.
| |
| 267 int32_t render_view_route_id, | 270 int32_t render_view_route_id, |
| 268 int32_t main_frame_route_id, | 271 int32_t main_frame_route_id, |
| 269 int32_t main_frame_widget_route_id, | 272 int32_t main_frame_widget_route_id, |
| 270 const mojom::CreateNewWindowParams& params, | 273 const mojom::CreateNewWindowParams& params, |
| 271 SessionStorageNamespace* session_storage_namespace) {} | 274 SessionStorageNamespace* session_storage_namespace) {} |
| 272 | 275 |
| 273 // Show a previously created page with the specified disposition and bounds. | 276 // Show a previously created page with the specified disposition and bounds. |
| 274 // The window is identified by the |main_frame_widget_route_id| passed to | 277 // The window is identified by the |main_frame_widget_route_id| passed to |
| 275 // CreateNewWindow. | 278 // CreateNewWindow. |
| 276 // | 279 // |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 302 GetJavaRenderFrameHostDelegate(); | 305 GetJavaRenderFrameHostDelegate(); |
| 303 #endif | 306 #endif |
| 304 | 307 |
| 305 protected: | 308 protected: |
| 306 virtual ~RenderFrameHostDelegate() {} | 309 virtual ~RenderFrameHostDelegate() {} |
| 307 }; | 310 }; |
| 308 | 311 |
| 309 } // namespace content | 312 } // namespace content |
| 310 | 313 |
| 311 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 314 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |