OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 std::vector<FilePath> /* paths of local copy */, | 1328 std::vector<FilePath> /* paths of local copy */, |
1329 FilePath /* local directory path */) | 1329 FilePath /* local directory path */) |
1330 | 1330 |
1331 // Sends updated information about the client firewall traversal policy. | 1331 // Sends updated information about the client firewall traversal policy. |
1332 // |traversal_data| is a json string containing policy information. | 1332 // |traversal_data| is a json string containing policy information. |
1333 // Sent due to a policy change or in response to a | 1333 // Sent due to a policy change or in response to a |
1334 // ViewHostMsg_RequestRemoteAccessClientFirewallTraversal message. | 1334 // ViewHostMsg_RequestRemoteAccessClientFirewallTraversal message. |
1335 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateRemoteAccessClientFirewallTraversal, | 1335 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateRemoteAccessClientFirewallTraversal, |
1336 std::string /* traversal_data */) | 1336 std::string /* traversal_data */) |
1337 | 1337 |
| 1338 // Tells the render side that a ViewHostMsg_LockMouse message has been |
| 1339 // processed. |succeeded| indicates whether the mouse has been successfully |
| 1340 // locked or not. |
| 1341 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, |
| 1342 bool /* succeeded */) |
| 1343 // Tells the render side that the mouse has been unlocked. |
| 1344 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) |
| 1345 |
1338 // These three messages are sent to the parent RenderViewHost to display the | 1346 // These three messages are sent to the parent RenderViewHost to display the |
1339 // page/widget that was created by | 1347 // page/widget that was created by |
1340 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id | 1348 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id |
1341 // refers to the id that was returned from the Create message above. | 1349 // refers to the id that was returned from the Create message above. |
1342 // The initial_position parameter is a rectangle in screen coordinates. | 1350 // The initial_position parameter is a rectangle in screen coordinates. |
1343 // | 1351 // |
1344 // FUTURE: there will probably be flags here to control if the result is | 1352 // FUTURE: there will probably be flags here to control if the result is |
1345 // in a new window. | 1353 // in a new window. |
1346 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, | 1354 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, |
1347 int /* route_id */, | 1355 int /* route_id */, |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 // other pages in the site and is saved, otherwise it only applies to this | 1908 // other pages in the site and is saved, otherwise it only applies to this |
1901 // tab. | 1909 // tab. |
1902 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1910 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
1903 int /* minimum_percent */, | 1911 int /* minimum_percent */, |
1904 int /* maximum_percent */, | 1912 int /* maximum_percent */, |
1905 bool /* remember */) | 1913 bool /* remember */) |
1906 | 1914 |
1907 // Asks the browser to create a block of shared memory for the renderer to | 1915 // Asks the browser to create a block of shared memory for the renderer to |
1908 // fill in and pass back to the browser. | 1916 // fill in and pass back to the browser. |
1909 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, | 1917 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, |
1910 uint32 /* buffer size */, | 1918 uint32 /* buffer size */, |
1911 base::SharedMemoryHandle /* browser handle */) | 1919 base::SharedMemoryHandle /* browser handle */) |
1912 | 1920 |
1913 // Notify the browser that this render process can or can't be suddenly | 1921 // Notify the browser that this render process can or can't be suddenly |
1914 // terminated. | 1922 // terminated. |
1915 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1923 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
1916 bool /* enabled */) | 1924 bool /* enabled */) |
1917 | 1925 |
1918 #if defined(OS_MACOSX) | 1926 #if defined(OS_MACOSX) |
1919 // On OSX, we cannot allocated shared memory from within the sandbox, so | 1927 // On OSX, we cannot allocated shared memory from within the sandbox, so |
1920 // this call exists for the renderer to ask the browser to allocate memory | 1928 // this call exists for the renderer to ask the browser to allocate memory |
1921 // on its behalf. We return a file descriptor to the POSIX shared memory. | 1929 // on its behalf. We return a file descriptor to the POSIX shared memory. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 int32 /* complete status */) | 2101 int32 /* complete status */) |
2094 | 2102 |
2095 // Request updated information about the client firewall traversal policy. | 2103 // Request updated information about the client firewall traversal policy. |
2096 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message | 2104 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message |
2097 // being sent back. | 2105 // being sent back. |
2098 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) | 2106 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) |
2099 | 2107 |
2100 // Notifies the browser of an event occurring in the media pipeline. | 2108 // Notifies the browser of an event occurring in the media pipeline. |
2101 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, | 2109 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, |
2102 media::MediaLogEvent /* event */) | 2110 media::MediaLogEvent /* event */) |
| 2111 |
| 2112 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 2113 // being sent back. |
| 2114 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 2115 |
| 2116 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 2117 // whenever the mouse is unlocked (which may or may not be caused by |
| 2118 // ViewHostMsg_UnlockMouse). |
| 2119 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 2120 |
OLD | NEW |