| 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 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1736 | 1736 |
| 1737 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1737 // Updates the minimum/maximum allowed zoom percent for this tab from the |
| 1738 // default values. If |remember| is true, then the zoom setting is applied to | 1738 // default values. If |remember| is true, then the zoom setting is applied to |
| 1739 // other pages in the site and is saved, otherwise it only applies to this | 1739 // other pages in the site and is saved, otherwise it only applies to this |
| 1740 // tab. | 1740 // tab. |
| 1741 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1741 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 1742 int /* minimum_percent */, | 1742 int /* minimum_percent */, |
| 1743 int /* maximum_percent */, | 1743 int /* maximum_percent */, |
| 1744 bool /* remember */) | 1744 bool /* remember */) |
| 1745 | 1745 |
| 1746 // Asks the browser to create a block of shared memory for the renderer to | |
| 1747 // fill in and pass back to the browser. | |
| 1748 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, | |
| 1749 uint32 /* buffer size */, | |
| 1750 base::SharedMemoryHandle /* browser handle */) | |
| 1751 | |
| 1752 // Notify the browser that this render process can or can't be suddenly | 1746 // Notify the browser that this render process can or can't be suddenly |
| 1753 // terminated. | 1747 // terminated. |
| 1754 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1748 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1755 bool /* enabled */) | 1749 bool /* enabled */) |
| 1756 | 1750 |
| 1757 #if defined(OS_MACOSX) | 1751 #if defined(OS_MACOSX) |
| 1758 // On OSX, we cannot allocated shared memory from within the sandbox, so | 1752 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 1759 // this call exists for the renderer to ask the browser to allocate memory | 1753 // this call exists for the renderer to ask the browser to allocate memory |
| 1760 // on its behalf. We return a file descriptor to the POSIX shared memory. | 1754 // on its behalf. We return a file descriptor to the POSIX shared memory. |
| 1761 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept | 1755 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1935 | 1929 |
| 1936 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1930 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1937 // being sent back. | 1931 // being sent back. |
| 1938 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1932 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1939 | 1933 |
| 1940 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1934 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1941 // whenever the mouse is unlocked (which may or may not be caused by | 1935 // whenever the mouse is unlocked (which may or may not be caused by |
| 1942 // ViewHostMsg_UnlockMouse). | 1936 // ViewHostMsg_UnlockMouse). |
| 1943 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1937 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 1944 | 1938 |
| OLD | NEW |