OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1774 // on its behalf. We return a file descriptor to the POSIX shared memory. | 1774 // on its behalf. We return a file descriptor to the POSIX shared memory. |
1775 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocTransportDIB, | 1775 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocTransportDIB, |
1776 size_t, /* bytes requested */ | 1776 size_t, /* bytes requested */ |
1777 TransportDIB::Handle /* DIB */) | 1777 TransportDIB::Handle /* DIB */) |
1778 | 1778 |
1779 // Since the browser keeps handles to the allocated transport DIBs, this | 1779 // Since the browser keeps handles to the allocated transport DIBs, this |
1780 // message is sent to tell the browser that it may release them when the | 1780 // message is sent to tell the browser that it may release them when the |
1781 // renderer is finished with them. | 1781 // renderer is finished with them. |
1782 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1782 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1783 TransportDIB::Id /* DIB id */) | 1783 TransportDIB::Id /* DIB id */) |
| 1784 |
| 1785 //--------------------------------------------------------------------------- |
| 1786 // Messages related to the GPU plugin on Mac OS X 10.6 and later |
| 1787 |
| 1788 // This is sent from the renderer to the browser to allocate a fake |
| 1789 // PluginWindowHandle on the browser side which is used to identify |
| 1790 // the plugin to the browser later when backing store is allocated |
| 1791 // or reallocated. |
| 1792 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_AllocateFakePluginWindowHandle, |
| 1793 gfx::PluginWindowHandle /* id */) |
| 1794 |
| 1795 // Destroys a fake window handle previously allocated using |
| 1796 // AllocateFakePluginWindowHandle. |
| 1797 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyFakePluginWindowHandle, |
| 1798 gfx::PluginWindowHandle /* id */) |
| 1799 |
| 1800 // This message is sent from the renderer to the browser on behalf |
| 1801 // of the GPU plugin to indicate that a new backing store was |
| 1802 // allocated for that GPU plugin instance. |
| 1803 // |
| 1804 // NOTE: the original intent was to pass a mach port as the |
| 1805 // IOSurface identifier but it looks like that will be a lot of |
| 1806 // work. For now we pass an ID from IOSurfaceGetID. |
| 1807 IPC_MESSAGE_ROUTED4(ViewHostMsg_GPUPluginSetIOSurface, |
| 1808 gfx::PluginWindowHandle /* window */, |
| 1809 int32 /* width */, |
| 1810 int32 /* height */, |
| 1811 uint64 /* identifier for IOSurface */) |
| 1812 |
| 1813 // This message notifies the browser process that the GPU plugin |
| 1814 // swapped the buffers associated with the given "window", which |
| 1815 // should cause the browser to redraw the various GPU plugins' |
| 1816 // contents. |
| 1817 IPC_MESSAGE_ROUTED1(ViewHostMsg_GPUPluginBuffersSwapped, |
| 1818 gfx::PluginWindowHandle /* window */) |
1784 #endif | 1819 #endif |
1785 | 1820 |
1786 // A renderer sends this to the browser process when it wants to create a | 1821 // A renderer sends this to the browser process when it wants to create a |
1787 // worker. The browser will create the worker process if necessary, and | 1822 // worker. The browser will create the worker process if necessary, and |
1788 // will return the route id on success. On error returns MSG_ROUTING_NONE. | 1823 // will return the route id on success. On error returns MSG_ROUTING_NONE. |
1789 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, | 1824 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, |
1790 ViewHostMsg_CreateWorker_Params, | 1825 ViewHostMsg_CreateWorker_Params, |
1791 int /* route_id */) | 1826 int /* route_id */) |
1792 | 1827 |
1793 // This message is sent to the browser to see if an instance of this shared | 1828 // This message is sent to the browser to see if an instance of this shared |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2058 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 2093 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
2059 string16 /* word */, | 2094 string16 /* word */, |
2060 std::vector<string16> /* suggestions */) | 2095 std::vector<string16> /* suggestions */) |
2061 | 2096 |
2062 // Request for text translation. | 2097 // Request for text translation. |
2063 // Used when translating a page from one language to another. | 2098 // Used when translating a page from one language to another. |
2064 IPC_MESSAGE_CONTROL1(ViewHostMsg_TranslateText, | 2099 IPC_MESSAGE_CONTROL1(ViewHostMsg_TranslateText, |
2065 ViewHostMsg_TranslateTextParam) | 2100 ViewHostMsg_TranslateTextParam) |
2066 | 2101 |
2067 IPC_END_MESSAGES(ViewHost) | 2102 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |