Chromium Code Reviews| 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 "cc/output/compositor_frame.h" | 13 #include "cc/output/compositor_frame.h" |
| 14 #include "cc/output/compositor_frame_ack.h" | 14 #include "cc/output/compositor_frame_ack.h" |
| 15 #include "content/common/browser_plugin/browser_plugin_message_enums.h" | 15 #include "content/common/browser_plugin/browser_plugin_message_enums.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/common/content_param_traits.h" | 17 #include "content/common/content_param_traits.h" |
| 18 #include "content/common/edit_command.h" | |
| 18 #include "content/public/common/common_param_traits.h" | 19 #include "content/public/common/common_param_traits.h" |
| 19 #include "ipc/ipc_channel_handle.h" | 20 #include "ipc/ipc_channel_handle.h" |
| 20 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
| 21 #include "ipc/ipc_message_utils.h" | 22 #include "ipc/ipc_message_utils.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" |
| 24 #include "ui/gfx/point.h" | 25 #include "ui/gfx/point.h" |
| 25 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
| 26 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
| 27 #include "webkit/glue/webcursor.h" | 28 #include "webkit/glue/webcursor.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 // to its origin. | 146 // to its origin. |
| 146 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID, | 147 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID, |
| 147 int /* request_id */) | 148 int /* request_id */) |
| 148 | 149 |
| 149 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an | 150 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an |
| 150 // edit command. | 151 // edit command. |
| 151 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand, | 152 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand, |
| 152 int /* instance_id */, | 153 int /* instance_id */, |
| 153 std::string /* command */) | 154 std::string /* command */) |
| 154 | 155 |
| 156 // This message must be sent just before sending a key event. | |
| 157 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent, | |
| 158 int /* instance_id */, | |
| 159 std::vector<content::EditCommand> /* edit_commands */) | |
|
Charlie Reis
2013/05/28 16:49:25
Sanity check: What damage could a compromised rend
Fady Samuel
2013/05/28 21:24:17
Edit commands are derived from key combinations. W
| |
| 160 | |
| 155 // This message is sent to the browser process to enable or disable autosize | 161 // This message is sent to the browser process to enable or disable autosize |
| 156 // mode. | 162 // mode. |
| 157 IPC_MESSAGE_ROUTED3( | 163 IPC_MESSAGE_ROUTED3( |
| 158 BrowserPluginHostMsg_SetAutoSize, | 164 BrowserPluginHostMsg_SetAutoSize, |
| 159 int /* instance_id */, | 165 int /* instance_id */, |
| 160 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, | 166 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, |
| 161 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) | 167 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) |
| 162 | 168 |
| 163 // This message is sent to the browser process to indicate that a BrowserPlugin | 169 // This message is sent to the browser process to indicate that a BrowserPlugin |
| 164 // has taken ownership of the lifetime of the guest of the given |instance_id|. | 170 // has taken ownership of the lifetime of the guest of the given |instance_id|. |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 449 // request to the embeddder through this message. | 455 // request to the embeddder through this message. |
| 450 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission, | 456 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission, |
| 451 int /* instance_id */, | 457 int /* instance_id */, |
| 452 BrowserPluginPermissionType /* permission_type */, | 458 BrowserPluginPermissionType /* permission_type */, |
| 453 int /* request_id */, | 459 int /* request_id */, |
| 454 DictionaryValue /* request_info */) | 460 DictionaryValue /* request_info */) |
| 455 | 461 |
| 456 // Forwards a PointerLock Unlock request to the BrowserPlugin. | 462 // Forwards a PointerLock Unlock request to the BrowserPlugin. |
| 457 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_UnlockMouse, int /* instance_id */) | 463 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_UnlockMouse, int /* instance_id */) |
| 458 | 464 |
| OLD | NEW |