| 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 int /* history_offset */, | 576 int /* history_offset */, |
| 577 int /* history_length */) | 577 int /* history_length */) |
| 578 | 578 |
| 579 // Tells the renderer to create a new view. | 579 // Tells the renderer to create a new view. |
| 580 // This message is slightly different, the view it takes (via | 580 // This message is slightly different, the view it takes (via |
| 581 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 581 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
| 582 // non-view control message. | 582 // non-view control message. |
| 583 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 583 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
| 584 ViewMsg_New_Params) | 584 ViewMsg_New_Params) |
| 585 | 585 |
| 586 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | |
| 587 // similar to the new command, but used when the renderer created a view | |
| 588 // first, and we need to update it. | |
| 589 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK) | |
| 590 | |
| 591 // Sends updated preferences to the renderer. | 586 // Sends updated preferences to the renderer. |
| 592 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, | 587 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, |
| 593 content::RendererPreferences) | 588 content::RendererPreferences) |
| 594 | 589 |
| 595 // This passes a set of webkit preferences down to the renderer. | 590 // This passes a set of webkit preferences down to the renderer. |
| 596 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, | 591 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, |
| 597 content::WebPreferences) | 592 content::WebPreferences) |
| 598 | 593 |
| 599 // Informs the renderer that the timezone has changed along with a new | 594 // Informs the renderer that the timezone has changed along with a new |
| 600 // timezone ID. | 595 // timezone ID. |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 | 953 |
| 959 // ----------------------------------------------------------------------------- | 954 // ----------------------------------------------------------------------------- |
| 960 // Messages sent from the renderer to the browser. | 955 // Messages sent from the renderer to the browser. |
| 961 | 956 |
| 962 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 957 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
| 963 // display events. If |enabled| is true, the BeginFrame message will continue | 958 // display events. If |enabled| is true, the BeginFrame message will continue |
| 964 // to be be delivered until the notification is disabled. | 959 // to be be delivered until the notification is disabled. |
| 965 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, | 960 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, |
| 966 bool /* enabled */) | 961 bool /* enabled */) |
| 967 | 962 |
| 968 // Sent by the renderer when it is creating a new window. The browser creates | 963 // Sent by the renderer when it is creating a new window. The browser creates a |
| 969 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 964 // tab for it. If route_id is MSG_ROUTING_NONE, the view couldn't be created. |
| 970 // MSG_ROUTING_NONE, the view couldn't be created. | |
| 971 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, | 965 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, |
| 972 ViewHostMsg_CreateWindow_Params, | 966 ViewHostMsg_CreateWindow_Params, |
| 973 int /* route_id */, | 967 int /* route_id */, |
| 974 int /* main_frame_route_id */, | 968 int /* main_frame_route_id */, |
| 975 int64 /* cloned_session_storage_namespace_id */) | 969 int64 /* cloned_session_storage_namespace_id */) |
| 976 | 970 |
| 977 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like | 971 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like |
| 978 // <select> dropdowns. This message is sent to the WebContentsImpl that | 972 // <select> dropdowns. This message is sent to the WebContentsImpl that |
| 979 // contains the widget being created. | 973 // contains the widget being created. |
| 980 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, | 974 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 bool /* opened_by_user_gesture */) | 1006 bool /* opened_by_user_gesture */) |
| 1013 | 1007 |
| 1014 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, | 1008 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, |
| 1015 int /* route_id */, | 1009 int /* route_id */, |
| 1016 gfx::Rect /* initial_rect */) | 1010 gfx::Rect /* initial_rect */) |
| 1017 | 1011 |
| 1018 // Message to show a full screen widget. | 1012 // Message to show a full screen widget. |
| 1019 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, | 1013 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, |
| 1020 int /* route_id */) | 1014 int /* route_id */) |
| 1021 | 1015 |
| 1022 // Indicates the renderer is ready in response to a ViewMsg_New or | |
| 1023 // a ViewMsg_CreatingNew_ACK. | |
| 1024 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady) | |
| 1025 | |
| 1026 // Sent by the renderer process to request that the browser close the view. | 1016 // Sent by the renderer process to request that the browser close the view. |
| 1027 // This corresponds to the window.close() API, and the browser may ignore | 1017 // This corresponds to the window.close() API, and the browser may ignore |
| 1028 // this message. Otherwise, the browser will generates a ViewMsg_Close | 1018 // this message. Otherwise, the browser will generates a ViewMsg_Close |
| 1029 // message to close the view. | 1019 // message to close the view. |
| 1030 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close) | 1020 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close) |
| 1031 | 1021 |
| 1032 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can | 1022 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can |
| 1033 // throttle these messages. | 1023 // throttle these messages. |
| 1034 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) | 1024 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) |
| 1035 | 1025 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 // Instructs the browser to start plugin IME. | 1369 // Instructs the browser to start plugin IME. |
| 1380 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1370 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1381 | 1371 |
| 1382 // Receives content of a web page as plain text. | 1372 // Receives content of a web page as plain text. |
| 1383 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); | 1373 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); |
| 1384 #endif | 1374 #endif |
| 1385 | 1375 |
| 1386 // Adding a new message? Stick to the sort order above: first platform | 1376 // Adding a new message? Stick to the sort order above: first platform |
| 1387 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1377 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1388 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1378 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |