OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "content/common/browser_plugin/browser_plugin_message_enums.h" | 13 #include "content/common/browser_plugin/browser_plugin_message_enums.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/common/content_param_traits.h" | 15 #include "content/common/content_param_traits.h" |
16 #include "content/public/common/common_param_traits.h" | 16 #include "content/public/common/common_param_traits.h" |
17 #include "gpu/command_buffer/common/mailbox.h" | |
18 #include "ipc/ipc_channel_handle.h" | 17 #include "ipc/ipc_channel_handle.h" |
19 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
20 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" |
23 #include "ui/gfx/point.h" | 22 #include "ui/gfx/point.h" |
24 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
25 #include "ui/gfx/size.h" | 24 #include "ui/gfx/size.h" |
26 #include "webkit/glue/webcursor.h" | 25 #include "webkit/glue/webcursor.h" |
27 #include "webkit/glue/webdropdata.h" | 26 #include "webkit/glue/webdropdata.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 int /* instance_id*/, | 200 int /* instance_id*/, |
202 std::string /* src */) | 201 std::string /* src */) |
203 | 202 |
204 // Acknowledge that we presented a HW buffer and provide a sync point | 203 // Acknowledge that we presented a HW buffer and provide a sync point |
205 // to specify the location in the command stream when the compositor | 204 // to specify the location in the command stream when the compositor |
206 // is no longer using it. | 205 // is no longer using it. |
207 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_BuffersSwappedACK, | 206 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_BuffersSwappedACK, |
208 int /* instance_id */, | 207 int /* instance_id */, |
209 int /* route_id */, | 208 int /* route_id */, |
210 int /* gpu_host_id */, | 209 int /* gpu_host_id */, |
211 gpu::Mailbox /* mailbox_name */, | 210 std::string /* mailbox_name */, |
212 uint32 /* sync_point */) | 211 uint32 /* sync_point */) |
213 | 212 |
214 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 213 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
215 // the browser process to cleanup the guest. | 214 // the browser process to cleanup the guest. |
216 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 215 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
217 int /* instance_id */) | 216 int /* instance_id */) |
218 | 217 |
219 // Tells the guest it has been shown or hidden. | 218 // Tells the guest it has been shown or hidden. |
220 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, | 219 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, |
221 int /* instance_id */, | 220 int /* instance_id */, |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 int /* instance_id */, | 377 int /* instance_id */, |
379 std::string /* name */) | 378 std::string /* name */) |
380 | 379 |
381 // Guest renders into an FBO with textures provided by the embedder. | 380 // Guest renders into an FBO with textures provided by the embedder. |
382 // When HW accelerated buffers are swapped in the guest, the message | 381 // When HW accelerated buffers are swapped in the guest, the message |
383 // is forwarded to the embedder to notify it of a new texture | 382 // is forwarded to the embedder to notify it of a new texture |
384 // available for compositing. | 383 // available for compositing. |
385 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_BuffersSwapped, | 384 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_BuffersSwapped, |
386 int /* instance_id */, | 385 int /* instance_id */, |
387 gfx::Size /* size */, | 386 gfx::Size /* size */, |
388 gpu::Mailbox /* mailbox_name */, | 387 std::string /* mailbox_name */, |
389 int /* route_id */, | 388 int /* route_id */, |
390 int /* gpu_host_id */) | 389 int /* gpu_host_id */) |
391 | 390 |
392 // When the guest requests permission, the browser process forwards this | 391 // When the guest requests permission, the browser process forwards this |
393 // request to the embeddder through this message. | 392 // request to the embeddder through this message. |
394 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission, | 393 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission, |
395 int /* instance_id */, | 394 int /* instance_id */, |
396 BrowserPluginPermissionType /* permission_type */, | 395 BrowserPluginPermissionType /* permission_type */, |
397 int /* request_id */, | 396 int /* request_id */, |
398 DictionaryValue /* request_info */) | 397 DictionaryValue /* request_info */) |
399 | 398 |
400 // Forwards a PointerLock Lock request to the BrowserPlugin. | 399 // Forwards a PointerLock Lock request to the BrowserPlugin. |
401 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_LockMouse, | 400 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_LockMouse, |
402 int /* instance_id */, | 401 int /* instance_id */, |
403 bool /* user_gesture */, | 402 bool /* user_gesture */, |
404 bool /* last_unlocked_by_target */, | 403 bool /* last_unlocked_by_target */, |
405 bool /* privileged */) | 404 bool /* privileged */) |
406 | 405 |
407 // Forwards a PointerLock Unlock request to the BrowserPlugin. | 406 // Forwards a PointerLock Unlock request to the BrowserPlugin. |
408 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_UnlockMouse, int /* instance_id */) | 407 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_UnlockMouse, int /* instance_id */) |
409 | 408 |
OLD | NEW |