| 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "content/common/common_param_traits.h" | 8 #include "content/common/common_param_traits.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/webkit_param_traits.h" | 10 #include "content/common/webkit_param_traits.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 bool /* focused */) | 196 bool /* focused */) |
| 197 | 197 |
| 198 IPC_SYNC_MESSAGE_ROUTED1_2(PluginMsg_HandleInputEvent, | 198 IPC_SYNC_MESSAGE_ROUTED1_2(PluginMsg_HandleInputEvent, |
| 199 IPC::WebInputEventPointer /* event */, | 199 IPC::WebInputEventPointer /* event */, |
| 200 bool /* handled */, | 200 bool /* handled */, |
| 201 WebCursor /* cursor type*/) | 201 WebCursor /* cursor type*/) |
| 202 | 202 |
| 203 IPC_MESSAGE_ROUTED1(PluginMsg_SetContentAreaFocus, | 203 IPC_MESSAGE_ROUTED1(PluginMsg_SetContentAreaFocus, |
| 204 bool /* has_focus */) | 204 bool /* has_focus */) |
| 205 | 205 |
| 206 #if defined(OS_WIN) |
| 207 IPC_MESSAGE_ROUTED4(PluginMsg_ImeCompositionUpdated, |
| 208 string16 /* text */, |
| 209 std::vector<int> /* clauses */, |
| 210 std::vector<int>, /* target */ |
| 211 int /* cursor_position */) |
| 212 |
| 213 IPC_MESSAGE_ROUTED1(PluginMsg_ImeCompositionCompleted, |
| 214 string16 /* text */) |
| 215 #endif |
| 216 |
| 206 #if defined(OS_MACOSX) | 217 #if defined(OS_MACOSX) |
| 207 IPC_MESSAGE_ROUTED1(PluginMsg_SetWindowFocus, | 218 IPC_MESSAGE_ROUTED1(PluginMsg_SetWindowFocus, |
| 208 bool /* has_focus */) | 219 bool /* has_focus */) |
| 209 | 220 |
| 210 IPC_MESSAGE_ROUTED0(PluginMsg_ContainerHidden) | 221 IPC_MESSAGE_ROUTED0(PluginMsg_ContainerHidden) |
| 211 | 222 |
| 212 IPC_MESSAGE_ROUTED3(PluginMsg_ContainerShown, | 223 IPC_MESSAGE_ROUTED3(PluginMsg_ContainerShown, |
| 213 gfx::Rect /* window_frame */, | 224 gfx::Rect /* window_frame */, |
| 214 gfx::Rect /* view_frame */, | 225 gfx::Rect /* view_frame */, |
| 215 bool /* has_focus */) | 226 bool /* has_focus */) |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow, | 308 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow, |
| 298 gfx::PluginWindowHandle /* window */) | 309 gfx::PluginWindowHandle /* window */) |
| 299 | 310 |
| 300 #if defined(OS_WIN) | 311 #if defined(OS_WIN) |
| 301 // The modal_loop_pump_messages_event parameter is an event handle which is | 312 // The modal_loop_pump_messages_event parameter is an event handle which is |
| 302 // passed in for windowless plugins and is used to indicate if messages | 313 // passed in for windowless plugins and is used to indicate if messages |
| 303 // are to be pumped in sync calls to the plugin process. Currently used | 314 // are to be pumped in sync calls to the plugin process. Currently used |
| 304 // in HandleEvent calls. | 315 // in HandleEvent calls. |
| 305 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindowlessPumpEvent, | 316 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindowlessPumpEvent, |
| 306 HANDLE /* modal_loop_pump_messages_event */) | 317 HANDLE /* modal_loop_pump_messages_event */) |
| 318 |
| 319 // Send the IME status retrieved from a windowless plug-in. A windowless plug-in |
| 320 // uses the IME attached to a browser process as a renderer does. A plug-in |
| 321 // sends this message to control the IME status of a browser process. I would |
| 322 // note that a plug-in sends this message to a renderer process that hosts this |
| 323 // plug-in (not directly to a browser process) so the renderer process can |
| 324 // update its IME status. |
| 325 IPC_MESSAGE_ROUTED2(PluginHostMsg_NotifyIMEStatus, |
| 326 int /* input_type */, |
| 327 gfx::Rect /* caret_rect */) |
| 307 #endif | 328 #endif |
| 308 | 329 |
| 309 IPC_MESSAGE_ROUTED1(PluginHostMsg_URLRequest, | 330 IPC_MESSAGE_ROUTED1(PluginHostMsg_URLRequest, |
| 310 PluginHostMsg_URLRequest_Params) | 331 PluginHostMsg_URLRequest_Params) |
| 311 | 332 |
| 312 IPC_MESSAGE_ROUTED1(PluginHostMsg_CancelResource, | 333 IPC_MESSAGE_ROUTED1(PluginHostMsg_CancelResource, |
| 313 int /* id */) | 334 int /* id */) |
| 314 | 335 |
| 315 IPC_MESSAGE_ROUTED2(PluginHostMsg_InvalidateRect, | 336 IPC_MESSAGE_ROUTED2(PluginHostMsg_InvalidateRect, |
| 316 gfx::Rect /* rect */, | 337 gfx::Rect /* rect */, |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, | 489 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, |
| 469 std::vector<NPVariant_Param> /* args */, | 490 std::vector<NPVariant_Param> /* args */, |
| 470 NPVariant_Param /* result_param */, | 491 NPVariant_Param /* result_param */, |
| 471 bool /* result */) | 492 bool /* result */) |
| 472 | 493 |
| 473 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 494 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
| 474 std::string /* script */, | 495 std::string /* script */, |
| 475 bool /* popups_allowed */, | 496 bool /* popups_allowed */, |
| 476 NPVariant_Param /* result_param */, | 497 NPVariant_Param /* result_param */, |
| 477 bool /* result */) | 498 bool /* result */) |
| OLD | NEW |