| 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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 478 |
| 479 // Preferences for this view. | 479 // Preferences for this view. |
| 480 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences) | 480 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences) |
| 481 | 481 |
| 482 // The ID of the view to be created. | 482 // The ID of the view to be created. |
| 483 IPC_STRUCT_MEMBER(int32, view_id) | 483 IPC_STRUCT_MEMBER(int32, view_id) |
| 484 | 484 |
| 485 // The ID of the main frame hosted in the view. | 485 // The ID of the main frame hosted in the view. |
| 486 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) | 486 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) |
| 487 | 487 |
| 488 // The ID of the rendering surface. | |
| 489 IPC_STRUCT_MEMBER(int32, surface_id) | |
| 490 | |
| 491 // The session storage namespace ID this view should use. | 488 // The session storage namespace ID this view should use. |
| 492 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) | 489 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) |
| 493 | 490 |
| 494 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to | 491 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to |
| 495 // set one (MSG_ROUTING_NONE otherwise). | 492 // set one (MSG_ROUTING_NONE otherwise). |
| 496 IPC_STRUCT_MEMBER(int, opener_frame_route_id) | 493 IPC_STRUCT_MEMBER(int, opener_frame_route_id) |
| 497 | 494 |
| 498 // Whether the RenderView should initially be swapped out. | 495 // Whether the RenderView should initially be swapped out. |
| 499 IPC_STRUCT_MEMBER(bool, swapped_out) | 496 IPC_STRUCT_MEMBER(bool, swapped_out) |
| 500 | 497 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 | 968 |
| 972 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 969 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
| 973 // display events. If |enabled| is true, the BeginFrame message will continue | 970 // display events. If |enabled| is true, the BeginFrame message will continue |
| 974 // to be be delivered until the notification is disabled. | 971 // to be be delivered until the notification is disabled. |
| 975 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, | 972 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, |
| 976 bool /* enabled */) | 973 bool /* enabled */) |
| 977 | 974 |
| 978 // Sent by the renderer when it is creating a new window. The browser creates | 975 // Sent by the renderer when it is creating a new window. The browser creates |
| 979 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 976 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
| 980 // MSG_ROUTING_NONE, the view couldn't be created. | 977 // MSG_ROUTING_NONE, the view couldn't be created. |
| 981 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow, | 978 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, |
| 982 ViewHostMsg_CreateWindow_Params, | 979 ViewHostMsg_CreateWindow_Params, |
| 983 int /* route_id */, | 980 int /* route_id */, |
| 984 int /* main_frame_route_id */, | 981 int /* main_frame_route_id */, |
| 985 int32 /* surface_id */, | |
| 986 int64 /* cloned_session_storage_namespace_id */) | 982 int64 /* cloned_session_storage_namespace_id */) |
| 987 | 983 |
| 988 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like | 984 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like |
| 989 // <select> dropdowns. This message is sent to the WebContentsImpl that | 985 // <select> dropdowns. This message is sent to the WebContentsImpl that |
| 990 // contains the widget being created. | 986 // contains the widget being created. |
| 991 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget, | 987 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, |
| 992 int /* opener_id */, | 988 int /* opener_id */, |
| 993 blink::WebPopupType /* popup type */, | 989 blink::WebPopupType /* popup type */, |
| 994 int /* route_id */, | 990 int /* route_id */) |
| 995 int32 /* surface_id */) | |
| 996 | 991 |
| 997 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen | 992 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen |
| 998 // window. | 993 // window. |
| 999 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget, | 994 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateFullscreenWidget, |
| 1000 int /* opener_id */, | 995 int /* opener_id */, |
| 1001 int /* route_id */, | 996 int /* route_id */) |
| 1002 int32 /* surface_id */) | |
| 1003 | 997 |
| 1004 // Asks the browser for a unique routing ID. | 998 // Asks the browser for a unique routing ID. |
| 1005 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, | 999 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, |
| 1006 int /* routing_id */) | 1000 int /* routing_id */) |
| 1007 | 1001 |
| 1008 // Asks the browser for the default audio hardware configuration. | 1002 // Asks the browser for the default audio hardware configuration. |
| 1009 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig, | 1003 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig, |
| 1010 media::AudioParameters /* input parameters */, | 1004 media::AudioParameters /* input parameters */, |
| 1011 media::AudioParameters /* output parameters */) | 1005 media::AudioParameters /* output parameters */) |
| 1012 | 1006 |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 // Instructs the browser to start plugin IME. | 1391 // Instructs the browser to start plugin IME. |
| 1398 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1392 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1399 | 1393 |
| 1400 // Receives content of a web page as plain text. | 1394 // Receives content of a web page as plain text. |
| 1401 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); | 1395 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); |
| 1402 #endif | 1396 #endif |
| 1403 | 1397 |
| 1404 // Adding a new message? Stick to the sort order above: first platform | 1398 // Adding a new message? Stick to the sort order above: first platform |
| 1405 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1399 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1406 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1400 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |