| 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 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2044 GURL /* frame's url */, | 2044 GURL /* frame's url */, |
| 2045 std::string /* data buffer */, | 2045 std::string /* data buffer */, |
| 2046 int32 /* complete status */) | 2046 int32 /* complete status */) |
| 2047 | 2047 |
| 2048 // Notifies the browser of an event occurring in the media pipeline. | 2048 // Notifies the browser of an event occurring in the media pipeline. |
| 2049 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, | 2049 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, |
| 2050 media::MediaLogEvent /* event */) | 2050 media::MediaLogEvent /* event */) |
| 2051 | 2051 |
| 2052 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 2052 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 2053 // being sent back. | 2053 // being sent back. |
| 2054 IPC_MESSAGE_ROUTED1(ViewHostMsg_LockMouse, | 2054 IPC_MESSAGE_ROUTED2(ViewHostMsg_LockMouse, |
| 2055 bool /* user_gesture */) | 2055 bool /* user_gesture */, |
| 2056 bool /* last_unlocked_by_target */) |
| 2056 | 2057 |
| 2057 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 2058 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 2058 // whenever the mouse is unlocked (which may or may not be caused by | 2059 // whenever the mouse is unlocked (which may or may not be caused by |
| 2059 // ViewHostMsg_UnlockMouse). | 2060 // ViewHostMsg_UnlockMouse). |
| 2060 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 2061 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 2061 | 2062 |
| 2062 // Following message is used to communicate the values received by the | 2063 // Following message is used to communicate the values received by the |
| 2063 // callback binding the JS to Cpp. | 2064 // callback binding the JS to Cpp. |
| 2064 // An instance of browser that has an automation host listening to it can | 2065 // An instance of browser that has an automation host listening to it can |
| 2065 // have a javascript send a native value (string, number, boolean) to the | 2066 // have a javascript send a native value (string, number, boolean) to the |
| 2066 // listener in Cpp. (DomAutomationController) | 2067 // listener in Cpp. (DomAutomationController) |
| 2067 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 2068 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
| 2068 std::string /* json_string */, | 2069 std::string /* json_string */, |
| 2069 int /* automation_id */) | 2070 int /* automation_id */) |
| 2070 | 2071 |
| 2071 // Sent to the browser when the renderer detects it is blocked on a pepper | 2072 // Sent to the browser when the renderer detects it is blocked on a pepper |
| 2072 // plugin message for too long. This is also sent when it becomes unhung | 2073 // plugin message for too long. This is also sent when it becomes unhung |
| 2073 // (according to the value of is_hung). The browser can give the user the | 2074 // (according to the value of is_hung). The browser can give the user the |
| 2074 // option of killing the plugin. | 2075 // option of killing the plugin. |
| 2075 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2076 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
| 2076 int /* plugin_child_id */, | 2077 int /* plugin_child_id */, |
| 2077 FilePath /* path */, | 2078 FilePath /* path */, |
| 2078 bool /* is_hung */) | 2079 bool /* is_hung */) |
| 2079 | 2080 |
| 2080 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2081 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
| 2081 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2082 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
| 2082 int /* orientation */) | 2083 int /* orientation */) |
| OLD | NEW |