| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 // The name of the frame associated with this view (or empty if none). | 630 // The name of the frame associated with this view (or empty if none). |
| 631 IPC_STRUCT_MEMBER(string16, frame_name) | 631 IPC_STRUCT_MEMBER(string16, frame_name) |
| 632 | 632 |
| 633 // The initial page ID to use for this view, which must be larger than any | 633 // The initial page ID to use for this view, which must be larger than any |
| 634 // existing navigation that might be loaded in the view. Page IDs are unique | 634 // existing navigation that might be loaded in the view. Page IDs are unique |
| 635 // to a view and are only updated by the renderer after this initial value. | 635 // to a view and are only updated by the renderer after this initial value. |
| 636 IPC_STRUCT_MEMBER(int32, next_page_id) | 636 IPC_STRUCT_MEMBER(int32, next_page_id) |
| 637 | 637 |
| 638 // The properties of the screen associated with the view. | 638 // The properties of the screen associated with the view. |
| 639 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) | 639 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) |
| 640 |
| 641 // Indicates whether this newly created RenderView will be hosted by another |
| 642 // RenderView. |
| 643 IPC_STRUCT_MEMBER(bool, guest) |
| 640 IPC_STRUCT_END() | 644 IPC_STRUCT_END() |
| 641 | 645 |
| 642 // Messages sent from the browser to the renderer. | 646 // Messages sent from the browser to the renderer. |
| 643 | 647 |
| 644 // Sent to the RenderView when a new tab is swapped into an existing | 648 // Sent to the RenderView when a new tab is swapped into an existing |
| 645 // tab and the histories need to be merged. The existing tab has a history of | 649 // tab and the histories need to be merged. The existing tab has a history of |
| 646 // |merged_history_length| which precedes the history of the new tab. All | 650 // |merged_history_length| which precedes the history of the new tab. All |
| 647 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 651 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
| 648 // | 652 // |
| 649 // For example, suppose the history of page_ids in the new tab's RenderView | 653 // For example, suppose the history of page_ids in the new tab's RenderView |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 int /* route_id */) | 1233 int /* route_id */) |
| 1230 | 1234 |
| 1231 // This message is sent after ViewHostMsg_ShowView to cause the RenderView | 1235 // This message is sent after ViewHostMsg_ShowView to cause the RenderView |
| 1232 // to run in a modal fashion until it is closed. | 1236 // to run in a modal fashion until it is closed. |
| 1233 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) | 1237 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) |
| 1234 | 1238 |
| 1235 // Indicates the renderer is ready in response to a ViewMsg_New or | 1239 // Indicates the renderer is ready in response to a ViewMsg_New or |
| 1236 // a ViewMsg_CreatingNew_ACK. | 1240 // a ViewMsg_CreatingNew_ACK. |
| 1237 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady) | 1241 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady) |
| 1238 | 1242 |
| 1243 // A guest instance is ready to be placed. |
| 1244 IPC_MESSAGE_ROUTED3(ViewMsg_GuestReady, |
| 1245 int /* instance id */, |
| 1246 base::ProcessHandle /* plugin_process_handle */, |
| 1247 IPC::ChannelHandle /* handle to channel */) |
| 1248 |
| 1239 // Indicates the renderer process is gone. This actually is sent by the | 1249 // Indicates the renderer process is gone. This actually is sent by the |
| 1240 // browser process to itself, but keeps the interface cleaner. | 1250 // browser process to itself, but keeps the interface cleaner. |
| 1241 IPC_MESSAGE_ROUTED2(ViewHostMsg_RenderViewGone, | 1251 IPC_MESSAGE_ROUTED2(ViewHostMsg_RenderViewGone, |
| 1242 int, /* this really is base::TerminationStatus */ | 1252 int, /* this really is base::TerminationStatus */ |
| 1243 int /* exit_code */) | 1253 int /* exit_code */) |
| 1244 | 1254 |
| 1245 // Sent by the renderer process to request that the browser close the view. | 1255 // 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 | 1256 // This corresponds to the window.close() API, and the browser may ignore |
| 1247 // this message. Otherwise, the browser will generates a ViewMsg_Close | 1257 // this message. Otherwise, the browser will generates a ViewMsg_Close |
| 1248 // message to close the view. | 1258 // 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 | 1638 // 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 | 1639 // create a ppapi plugin. The browser will create the plugin process if |
| 1630 // necessary, and will return a handle to the channel on success. | 1640 // necessary, and will return a handle to the channel on success. |
| 1631 // On error an empty string is returned. | 1641 // On error an empty string is returned. |
| 1632 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1642 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
| 1633 FilePath /* path */, | 1643 FilePath /* path */, |
| 1634 base::ProcessHandle /* plugin_process_handle */, | 1644 base::ProcessHandle /* plugin_process_handle */, |
| 1635 IPC::ChannelHandle /* handle to channel */) | 1645 IPC::ChannelHandle /* handle to channel */) |
| 1636 | 1646 |
| 1637 // A renderer sends this to the browser process when it wants to | 1647 // A renderer sends this to the browser process when it wants to |
| 1648 // create a browser plugin. The browser will create the plugin process if |
| 1649 // necessary, and will return a handle to the channel on success. |
| 1650 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToBrowserPlugin, |
| 1651 int /* host routing id */, |
| 1652 int /* plugin instance id*/, |
| 1653 std::string /* src */) |
| 1654 |
| 1655 // A renderer sends this to the browser process when it wants to |
| 1638 // create a ppapi broker. The browser will create the broker process | 1656 // create a ppapi broker. The browser will create the broker process |
| 1639 // if necessary, and will return a handle to the channel on success. | 1657 // if necessary, and will return a handle to the channel on success. |
| 1640 // On error an empty string is returned. | 1658 // On error an empty string is returned. |
| 1641 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1659 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
| 1642 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1660 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
| 1643 int /* routing_id */, | 1661 int /* routing_id */, |
| 1644 int /* request_id */, | 1662 int /* request_id */, |
| 1645 FilePath /* path */) | 1663 FilePath /* path */) |
| 1646 | 1664 |
| 1647 #if defined(USE_X11) | 1665 #if defined(USE_X11) |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 | 1964 |
| 1947 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1965 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1948 // being sent back. | 1966 // being sent back. |
| 1949 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1967 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1950 | 1968 |
| 1951 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1969 // 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 | 1970 // whenever the mouse is unlocked (which may or may not be caused by |
| 1953 // ViewHostMsg_UnlockMouse). | 1971 // ViewHostMsg_UnlockMouse). |
| 1954 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1972 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 1955 | 1973 |
| 1974 |
| 1975 IPC_MESSAGE_ROUTED2(ViewHostMsg_ResizeGuest, |
| 1976 int32, /* width */ |
| 1977 int32 /* height */); |
| 1956 // Following message is used to communicate the values received by the | 1978 // Following message is used to communicate the values received by the |
| 1957 // callback binding the JS to Cpp. | 1979 // callback binding the JS to Cpp. |
| 1958 // An instance of browser that has an automation host listening to it can | 1980 // 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 | 1981 // have a javascript send a native value (string, number, boolean) to the |
| 1960 // listener in Cpp. (DomAutomationController) | 1982 // listener in Cpp. (DomAutomationController) |
| 1961 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 1983 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
| 1962 std::string /* json_string */, | 1984 std::string /* json_string */, |
| 1963 int /* automation_id */) | 1985 int /* automation_id */) |
| 1964 | 1986 |
| 1965 // Enable or disable inverting of web content pixels, for users who prefer | 1987 // Enable or disable inverting of web content pixels, for users who prefer |
| 1966 // white-on-black. | 1988 // white-on-black. |
| 1967 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, | 1989 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, |
| 1968 bool /* invert */) | 1990 bool /* invert */) |
| OLD | NEW |