| 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/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| 11 #include "base/process/process.h" | 11 #include "base/process/process.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/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/common/content_param_traits.h" | 16 #include "content/common/content_param_traits.h" |
| 17 #include "content/common/edit_command.h" | 17 #include "content/common/edit_command.h" |
| 18 #include "content/public/common/browser_plugin_permission_type.h" | 18 #include "content/public/common/browser_plugin_permission_type.h" |
| 19 #include "content/public/common/common_param_traits.h" | 19 #include "content/public/common/common_param_traits.h" |
| 20 #include "content/public/common/drop_data.h" | 20 #include "content/public/common/drop_data.h" |
| 21 #include "ipc/ipc_channel_handle.h" | 21 #include "ipc/ipc_channel_handle.h" |
| 22 #include "ipc/ipc_message_macros.h" | 22 #include "ipc/ipc_message_macros.h" |
| 23 #include "ipc/ipc_message_utils.h" | 23 #include "ipc/ipc_message_utils.h" |
| 24 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
| 25 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 25 #include "third_party/WebKit/public/web/WebDragOperation.h" | 26 #include "third_party/WebKit/public/web/WebDragOperation.h" |
| 26 #include "third_party/WebKit/public/web/WebDragStatus.h" | 27 #include "third_party/WebKit/public/web/WebDragStatus.h" |
| 27 #include "ui/gfx/point.h" | 28 #include "ui/gfx/point.h" |
| 28 #include "ui/gfx/rect.h" | 29 #include "ui/gfx/rect.h" |
| 29 #include "ui/gfx/size.h" | 30 #include "ui/gfx/size.h" |
| 30 #include "url/gurl.h" | 31 #include "url/gurl.h" |
| 31 #include "webkit/common/cursors/webcursor.h" | 32 #include "webkit/common/cursors/webcursor.h" |
| 32 | 33 |
| 33 #undef IPC_MESSAGE_EXPORT | 34 #undef IPC_MESSAGE_EXPORT |
| 34 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 35 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // edit command. | 149 // edit command. |
| 149 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand, | 150 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand, |
| 150 int /* instance_id */, | 151 int /* instance_id */, |
| 151 std::string /* command */) | 152 std::string /* command */) |
| 152 | 153 |
| 153 // This message must be sent just before sending a key event. | 154 // This message must be sent just before sending a key event. |
| 154 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent, | 155 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent, |
| 155 int /* instance_id */, | 156 int /* instance_id */, |
| 156 std::vector<content::EditCommand> /* edit_commands */) | 157 std::vector<content::EditCommand> /* edit_commands */) |
| 157 | 158 |
| 159 // This message is sent from BrowserPlugin to BrowserPluginGuest whenever IME |
| 160 // composition state is updated. |
| 161 IPC_MESSAGE_ROUTED5( |
| 162 BrowserPluginHostMsg_ImeSetComposition, |
| 163 int /* instance_id */, |
| 164 std::string /* text */, |
| 165 std::vector<blink::WebCompositionUnderline> /* underlines */, |
| 166 int /* selectiont_start */, |
| 167 int /* selection_end */) |
| 168 |
| 169 // This message is sent from BrowserPlugin to BrowserPluginGuest to notify that |
| 170 // confirming the current composition is requested. |
| 171 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ImeConfirmComposition, |
| 172 int /* instance_id */, |
| 173 std::string /* text */, |
| 174 bool /* keep selection */) |
| 175 |
| 176 // Deletes the current selection plus the specified number of characters before |
| 177 // and after the selection or caret. |
| 178 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete, |
| 179 int /* instance_id */, |
| 180 int /* before */, |
| 181 int /* after */) |
| 182 |
| 158 // This message is sent to the browser process to enable or disable autosize | 183 // This message is sent to the browser process to enable or disable autosize |
| 159 // mode. | 184 // mode. |
| 160 IPC_MESSAGE_ROUTED3( | 185 IPC_MESSAGE_ROUTED3( |
| 161 BrowserPluginHostMsg_SetAutoSize, | 186 BrowserPluginHostMsg_SetAutoSize, |
| 162 int /* instance_id */, | 187 int /* instance_id */, |
| 163 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, | 188 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, |
| 164 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) | 189 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) |
| 165 | 190 |
| 166 // This message is sent to the browser process to indicate that a BrowserPlugin | 191 // This message is sent to the browser process to indicate that a BrowserPlugin |
| 167 // has taken ownership of the lifetime of the guest of the given |instance_id|. | 192 // has taken ownership of the lifetime of the guest of the given |instance_id|. |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 int /* instance_id */, | 400 int /* instance_id */, |
| 376 cc::CompositorFrame /* frame */, | 401 cc::CompositorFrame /* frame */, |
| 377 int /* route_id */, | 402 int /* route_id */, |
| 378 uint32 /* output_surface_id */, | 403 uint32 /* output_surface_id */, |
| 379 int /* renderer_host_id */) | 404 int /* renderer_host_id */) |
| 380 | 405 |
| 381 // Forwards a PointerLock Unlock request to the BrowserPlugin. | 406 // Forwards a PointerLock Unlock request to the BrowserPlugin. |
| 382 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, | 407 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, |
| 383 int /* instance_id */, | 408 int /* instance_id */, |
| 384 bool /* enable */) | 409 bool /* enable */) |
| 385 | |
| OLD | NEW |