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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 648 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
649 // Renderer-wide preferences. | 649 // Renderer-wide preferences. |
650 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 650 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
651 | 651 |
652 // Preferences for this view. | 652 // Preferences for this view. |
653 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 653 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
654 | 654 |
655 // The ID of the view to be created. | 655 // The ID of the view to be created. |
656 IPC_STRUCT_MEMBER(int32, view_id) | 656 IPC_STRUCT_MEMBER(int32, view_id) |
657 | 657 |
| 658 // The ID of the main frame hosted in the view. |
| 659 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) |
| 660 |
658 // The ID of the rendering surface. | 661 // The ID of the rendering surface. |
659 IPC_STRUCT_MEMBER(int32, surface_id) | 662 IPC_STRUCT_MEMBER(int32, surface_id) |
660 | 663 |
661 // The session storage namespace ID this view should use. | 664 // The session storage namespace ID this view should use. |
662 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) | 665 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) |
663 | 666 |
664 // The name of the frame associated with this view (or empty if none). | 667 // The name of the frame associated with this view (or empty if none). |
665 IPC_STRUCT_MEMBER(string16, frame_name) | 668 IPC_STRUCT_MEMBER(string16, frame_name) |
666 | 669 |
667 // The route ID of the opener RenderView if we need to set one | 670 // The route ID of the opener RenderView if we need to set one |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 // Sent by the browser to ask the renderer for a snapshot of the current view. | 1321 // Sent by the browser to ask the renderer for a snapshot of the current view. |
1319 IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot, | 1322 IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot, |
1320 gfx::Rect /* src_subrect */) | 1323 gfx::Rect /* src_subrect */) |
1321 | 1324 |
1322 // ----------------------------------------------------------------------------- | 1325 // ----------------------------------------------------------------------------- |
1323 // Messages sent from the renderer to the browser. | 1326 // Messages sent from the renderer to the browser. |
1324 | 1327 |
1325 // Sent by the renderer when it is creating a new window. The browser creates | 1328 // Sent by the renderer when it is creating a new window. The browser creates |
1326 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1329 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
1327 // MSG_ROUTING_NONE, the view couldn't be created. | 1330 // MSG_ROUTING_NONE, the view couldn't be created. |
1328 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, | 1331 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow, |
1329 ViewHostMsg_CreateWindow_Params, | 1332 ViewHostMsg_CreateWindow_Params, |
1330 int /* route_id */, | 1333 int /* route_id */, |
| 1334 int /* main_frame_route_id */, |
1331 int32 /* surface_id */, | 1335 int32 /* surface_id */, |
1332 int64 /* cloned_session_storage_namespace_id */) | 1336 int64 /* cloned_session_storage_namespace_id */) |
1333 | 1337 |
1334 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like | 1338 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like |
1335 // <select> dropdowns. This message is sent to the WebContentsImpl that | 1339 // <select> dropdowns. This message is sent to the WebContentsImpl that |
1336 // contains the widget being created. | 1340 // contains the widget being created. |
1337 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget, | 1341 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget, |
1338 int /* opener_id */, | 1342 int /* opener_id */, |
1339 WebKit::WebPopupType /* popup type */, | 1343 WebKit::WebPopupType /* popup type */, |
1340 int /* route_id */, | 1344 int /* route_id */, |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 // Since the browser keeps handles to the allocated transport DIBs, this | 2314 // Since the browser keeps handles to the allocated transport DIBs, this |
2311 // message is sent to tell the browser that it may release them when the | 2315 // message is sent to tell the browser that it may release them when the |
2312 // renderer is finished with them. | 2316 // renderer is finished with them. |
2313 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2317 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
2314 TransportDIB::Id /* DIB id */) | 2318 TransportDIB::Id /* DIB id */) |
2315 #endif | 2319 #endif |
2316 | 2320 |
2317 // Adding a new message? Stick to the sort order above: first platform | 2321 // Adding a new message? Stick to the sort order above: first platform |
2318 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2322 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2319 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2323 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |