OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 | 13 |
14 #include "base/clipboard.h" | 14 #include "base/clipboard.h" |
15 #include "base/gfx/rect.h" | 15 #include "base/gfx/rect.h" |
16 #include "base/gfx/native_widget_types.h" | 16 #include "base/gfx/native_widget_types.h" |
17 #include "base/shared_memory.h" | 17 #include "base/shared_memory.h" |
18 #include "chrome/common/ipc_message_macros.h" | 18 #include "chrome/common/ipc_message_macros.h" |
| 19 #include "chrome/common/ipc_maybe.h" |
| 20 #include "chrome/common/transport_dib.h" |
19 #include "skia/include/SkBitmap.h" | 21 #include "skia/include/SkBitmap.h" |
20 #include "webkit/glue/console_message_level.h" | 22 #include "webkit/glue/console_message_level.h" |
21 #include "webkit/glue/dom_operations.h" | 23 #include "webkit/glue/dom_operations.h" |
22 #include "webkit/glue/screen_info.h" | 24 #include "webkit/glue/screen_info.h" |
23 #include "webkit/glue/webcursor.h" | 25 #include "webkit/glue/webcursor.h" |
24 #include "webkit/glue/webinputevent.h" | 26 #include "webkit/glue/webinputevent.h" |
25 #include "webkit/glue/webplugin.h" | 27 #include "webkit/glue/webplugin.h" |
26 | 28 |
27 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 29 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
28 // more sense with our current design. | 30 // more sense with our current design. |
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetAudioVolume, | 1163 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetAudioVolume, |
1162 int /* stream_id */) | 1164 int /* stream_id */) |
1163 | 1165 |
1164 // Set audio volume of the stream specified by (render_view_id, stream_id). | 1166 // Set audio volume of the stream specified by (render_view_id, stream_id). |
1165 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 1167 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
1166 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetAudioVolume, | 1168 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetAudioVolume, |
1167 int /* stream_id */, | 1169 int /* stream_id */, |
1168 double /* left_channel */, | 1170 double /* left_channel */, |
1169 double /* right_channel */) | 1171 double /* right_channel */) |
1170 | 1172 |
| 1173 #if defined(OS_MACOSX) |
| 1174 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 1175 // this call exists for the renderer to ask the browser to allocate memory |
| 1176 // on its behalf. We return a file descriptor to the POSIX shared memory. |
| 1177 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocTransportDIB, |
| 1178 size_t, /* bytes requested */ |
| 1179 IPC::Maybe<TransportDIB::Handle> /* DIB */) |
| 1180 |
| 1181 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1182 // message is sent to tell the browser that it may release them when the |
| 1183 // renderer is finished with them. |
| 1184 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1185 TransportDIB::Id /* DIB id */) |
| 1186 #endif |
| 1187 |
1171 IPC_END_MESSAGES(ViewHost) | 1188 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |