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 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 | 1777 |
1778 #if defined(OS_MACOSX) | 1778 #if defined(OS_MACOSX) |
1779 // Request that the browser load a font into shared memory for us. | 1779 // Request that the browser load a font into shared memory for us. |
1780 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1780 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
1781 FontDescriptor /* font to load */, | 1781 FontDescriptor /* font to load */, |
1782 uint32 /* buffer size */, | 1782 uint32 /* buffer size */, |
1783 base::SharedMemoryHandle /* font data */, | 1783 base::SharedMemoryHandle /* font data */, |
1784 uint32 /* font id */) | 1784 uint32 /* font id */) |
1785 #endif | 1785 #endif |
1786 | 1786 |
1787 #if defined(OS_WIN) | |
1788 // Request that the given font be loaded by the browser so it's cached by the | |
1789 // OS. Please see ChildProcessHost::PreCacheFont for details. | |
1790 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont, | |
1791 LOGFONT /* font data */) | |
1792 #endif // defined(OS_WIN) | |
1793 | |
1794 // Returns WebScreenInfo corresponding to the view. | 1787 // Returns WebScreenInfo corresponding to the view. |
1795 // TODO(shess): Provide a mapping from reply_msg->routing_id() to | 1788 // TODO(shess): Provide a mapping from reply_msg->routing_id() to |
1796 // HWND so that we can eliminate the NativeViewId parameter. | 1789 // HWND so that we can eliminate the NativeViewId parameter. |
1797 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, | 1790 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, |
1798 gfx::NativeViewId /* view */, | 1791 gfx::NativeViewId /* view */, |
1799 WebKit::WebScreenInfo /* results */) | 1792 WebKit::WebScreenInfo /* results */) |
1800 | 1793 |
1801 // Send the tooltip text for the current mouse position to the browser. | 1794 // Send the tooltip text for the current mouse position to the browser. |
1802 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 1795 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
1803 string16 /* tooltip text string */, | 1796 string16 /* tooltip text string */, |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 int32 /* complete status */) | 2086 int32 /* complete status */) |
2094 | 2087 |
2095 // Request updated information about the client firewall traversal policy. | 2088 // Request updated information about the client firewall traversal policy. |
2096 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message | 2089 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message |
2097 // being sent back. | 2090 // being sent back. |
2098 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) | 2091 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) |
2099 | 2092 |
2100 // Notifies the browser of an event occurring in the media pipeline. | 2093 // Notifies the browser of an event occurring in the media pipeline. |
2101 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, | 2094 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, |
2102 media::MediaLogEvent /* event */) | 2095 media::MediaLogEvent /* event */) |
OLD | NEW |