| 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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 int /* route_id */) | 1229 int /* route_id */) |
| 1230 | 1230 |
| 1231 // This message is sent after ViewHostMsg_ShowView to cause the RenderView | 1231 // This message is sent after ViewHostMsg_ShowView to cause the RenderView |
| 1232 // to run in a modal fashion until it is closed. | 1232 // to run in a modal fashion until it is closed. |
| 1233 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) | 1233 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) |
| 1234 | 1234 |
| 1235 // Indicates the renderer is ready in response to a ViewMsg_New or | 1235 // Indicates the renderer is ready in response to a ViewMsg_New or |
| 1236 // a ViewMsg_CreatingNew_ACK. | 1236 // a ViewMsg_CreatingNew_ACK. |
| 1237 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady) | 1237 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady) |
| 1238 | 1238 |
| 1239 // A guest instance is ready to be placed. |
| 1240 IPC_MESSAGE_ROUTED3(ViewMsg_GuestReady, |
| 1241 int /* instance id */, |
| 1242 base::ProcessHandle /* plugin_process_handle */, |
| 1243 IPC::ChannelHandle /* handle to channel */) |
| 1244 |
| 1239 // Indicates the renderer process is gone. This actually is sent by the | 1245 // Indicates the renderer process is gone. This actually is sent by the |
| 1240 // browser process to itself, but keeps the interface cleaner. | 1246 // browser process to itself, but keeps the interface cleaner. |
| 1241 IPC_MESSAGE_ROUTED2(ViewHostMsg_RenderViewGone, | 1247 IPC_MESSAGE_ROUTED2(ViewHostMsg_RenderViewGone, |
| 1242 int, /* this really is base::TerminationStatus */ | 1248 int, /* this really is base::TerminationStatus */ |
| 1243 int /* exit_code */) | 1249 int /* exit_code */) |
| 1244 | 1250 |
| 1245 // Sent by the renderer process to request that the browser close the view. | 1251 // Sent by the renderer process to request that the browser close the view. |
| 1246 // This corresponds to the window.close() API, and the browser may ignore | 1252 // This corresponds to the window.close() API, and the browser may ignore |
| 1247 // this message. Otherwise, the browser will generates a ViewMsg_Close | 1253 // this message. Otherwise, the browser will generates a ViewMsg_Close |
| 1248 // message to close the view. | 1254 // message to close the view. |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 // A renderer sends this to the browser process when it wants to | 1634 // A renderer sends this to the browser process when it wants to |
| 1629 // create a ppapi plugin. The browser will create the plugin process if | 1635 // create a ppapi plugin. The browser will create the plugin process if |
| 1630 // necessary, and will return a handle to the channel on success. | 1636 // necessary, and will return a handle to the channel on success. |
| 1631 // On error an empty string is returned. | 1637 // On error an empty string is returned. |
| 1632 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1638 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
| 1633 FilePath /* path */, | 1639 FilePath /* path */, |
| 1634 base::ProcessHandle /* plugin_process_handle */, | 1640 base::ProcessHandle /* plugin_process_handle */, |
| 1635 IPC::ChannelHandle /* handle to channel */) | 1641 IPC::ChannelHandle /* handle to channel */) |
| 1636 | 1642 |
| 1637 // A renderer sends this to the browser process when it wants to | 1643 // A renderer sends this to the browser process when it wants to |
| 1644 // create a browser plugin. The browser will create the plugin process if |
| 1645 // necessary, and will return a handle to the channel on success. |
| 1646 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToBrowserPlugin, |
| 1647 int /* host routing id */, |
| 1648 int /* plugin instance id*/, |
| 1649 std::string /* src */) |
| 1650 |
| 1651 // A renderer sends this to the browser process when it wants to |
| 1638 // create a ppapi broker. The browser will create the broker process | 1652 // create a ppapi broker. The browser will create the broker process |
| 1639 // if necessary, and will return a handle to the channel on success. | 1653 // if necessary, and will return a handle to the channel on success. |
| 1640 // On error an empty string is returned. | 1654 // On error an empty string is returned. |
| 1641 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1655 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
| 1642 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1656 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
| 1643 int /* routing_id */, | 1657 int /* routing_id */, |
| 1644 int /* request_id */, | 1658 int /* request_id */, |
| 1645 FilePath /* path */) | 1659 FilePath /* path */) |
| 1646 | 1660 |
| 1647 #if defined(USE_X11) | 1661 #if defined(USE_X11) |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 | 1960 |
| 1947 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1961 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1948 // being sent back. | 1962 // being sent back. |
| 1949 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1963 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1950 | 1964 |
| 1951 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1965 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1952 // whenever the mouse is unlocked (which may or may not be caused by | 1966 // whenever the mouse is unlocked (which may or may not be caused by |
| 1953 // ViewHostMsg_UnlockMouse). | 1967 // ViewHostMsg_UnlockMouse). |
| 1954 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1968 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 1955 | 1969 |
| 1970 |
| 1971 IPC_MESSAGE_ROUTED2(ViewHostMsg_ResizeGuest, |
| 1972 int32, /* width */ |
| 1973 int32 /* height */); |
| 1956 // Following message is used to communicate the values received by the | 1974 // Following message is used to communicate the values received by the |
| 1957 // callback binding the JS to Cpp. | 1975 // callback binding the JS to Cpp. |
| 1958 // An instance of browser that has an automation host listening to it can | 1976 // An instance of browser that has an automation host listening to it can |
| 1959 // have a javascript send a native value (string, number, boolean) to the | 1977 // have a javascript send a native value (string, number, boolean) to the |
| 1960 // listener in Cpp. (DomAutomationController) | 1978 // listener in Cpp. (DomAutomationController) |
| 1961 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 1979 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
| 1962 std::string /* json_string */, | 1980 std::string /* json_string */, |
| 1963 int /* automation_id */) | 1981 int /* automation_id */) |
| 1964 | 1982 |
| 1965 // Enable or disable inverting of web content pixels, for users who prefer | 1983 // Enable or disable inverting of web content pixels, for users who prefer |
| 1966 // white-on-black. | 1984 // white-on-black. |
| 1967 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, | 1985 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, |
| 1968 bool /* invert */) | 1986 bool /* invert */) |
| OLD | NEW |