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 #include "base/shared_memory.h" | 5 #include "base/shared_memory.h" |
6 #include "chrome/common/ipc_message_macros.h" | 6 #include "chrome/common/ipc_message_macros.h" |
7 #include "webkit/glue/webcursor.h" | 7 #include "webkit/glue/webcursor.h" |
8 | 8 |
9 //----------------------------------------------------------------------------- | 9 //----------------------------------------------------------------------------- |
10 // PluginProcess messages | 10 // PluginProcess messages |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 int /* instance_id */) | 95 int /* instance_id */) |
96 | 96 |
97 IPC_SYNC_MESSAGE_CONTROL0_1(PluginMsg_GenerateRouteID, | 97 IPC_SYNC_MESSAGE_CONTROL0_1(PluginMsg_GenerateRouteID, |
98 int /* id */) | 98 int /* id */) |
99 | 99 |
100 // The messages below all map to WebPluginDelegate methods. | 100 // The messages below all map to WebPluginDelegate methods. |
101 IPC_SYNC_MESSAGE_ROUTED1_1(PluginMsg_Init, | 101 IPC_SYNC_MESSAGE_ROUTED1_1(PluginMsg_Init, |
102 PluginMsg_Init_Params, | 102 PluginMsg_Init_Params, |
103 bool /* result */) | 103 bool /* result */) |
104 | 104 |
| 105 // Used to synchronously request a paint for windowless plugins. |
| 106 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_Paint, |
| 107 gfx::Rect /* damaged_rect */) |
| 108 |
| 109 // Sent by the renderer after it paints from its backing store so that the |
| 110 // plugin knows it can send more invalidates. |
| 111 IPC_MESSAGE_ROUTED0(PluginMsg_DidPaint) |
| 112 |
105 IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_Print, | 113 IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_Print, |
106 PluginMsg_PrintResponse_Params /* params */) | 114 PluginMsg_PrintResponse_Params /* params */) |
107 | 115 |
108 IPC_SYNC_MESSAGE_ROUTED0_2(PluginMsg_GetPluginScriptableObject, | 116 IPC_SYNC_MESSAGE_ROUTED0_2(PluginMsg_GetPluginScriptableObject, |
109 int /* route_id */, | 117 int /* route_id */, |
110 void* /* npobject_ptr */) | 118 void* /* npobject_ptr */) |
111 | 119 |
112 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_DidFinishLoadWithReason, | 120 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_DidFinishLoadWithReason, |
113 int /* reason */) | 121 int /* reason */) |
114 | 122 |
| 123 // Updates the plugin location. For windowless plugins, windowless_buffer |
| 124 // contains a buffer that the plugin draws into. background_buffer is used |
| 125 // for transparent windowless plugins, and holds the background of the plugin |
| 126 // rectangle. |
115 IPC_MESSAGE_ROUTED5(PluginMsg_UpdateGeometry, | 127 IPC_MESSAGE_ROUTED5(PluginMsg_UpdateGeometry, |
116 gfx::Rect /* window_rect */, | 128 gfx::Rect /* window_rect */, |
117 gfx::Rect /* clip_rect */, | 129 gfx::Rect /* clip_rect */, |
118 bool /* visible */, | 130 bool /* visible */, |
119 SharedMemoryHandle /* windowless_buffer */, | 131 SharedMemoryHandle /* windowless_buffer */, |
120 SharedMemoryLock /* windowless_buffer_lock */) | 132 SharedMemoryHandle /* background_buffer */) |
121 | 133 |
122 IPC_SYNC_MESSAGE_ROUTED0_0(PluginMsg_SetFocus) | 134 IPC_SYNC_MESSAGE_ROUTED0_0(PluginMsg_SetFocus) |
123 | 135 |
124 IPC_SYNC_MESSAGE_ROUTED1_2(PluginMsg_HandleEvent, | 136 IPC_SYNC_MESSAGE_ROUTED1_2(PluginMsg_HandleEvent, |
125 NPEvent /* event */, | 137 NPEvent /* event */, |
126 bool /* handled */, | 138 bool /* handled */, |
127 WebCursor /* cursor type*/) | 139 WebCursor /* cursor type*/) |
128 | 140 |
129 IPC_SYNC_MESSAGE_ROUTED2_0(PluginMsg_WillSendRequest, | 141 IPC_SYNC_MESSAGE_ROUTED2_0(PluginMsg_WillSendRequest, |
130 int /* id */, | 142 int /* id */, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 IPC_SYNC_MESSAGE_ROUTED2_0(PluginHostMsg_SetWindow, | 202 IPC_SYNC_MESSAGE_ROUTED2_0(PluginHostMsg_SetWindow, |
191 HWND /* window */, | 203 HWND /* window */, |
192 HANDLE /* modal_loop_pump_messages_event */) | 204 HANDLE /* modal_loop_pump_messages_event */) |
193 | 205 |
194 IPC_MESSAGE_ROUTED1(PluginHostMsg_URLRequest, | 206 IPC_MESSAGE_ROUTED1(PluginHostMsg_URLRequest, |
195 PluginHostMsg_URLRequest_Params) | 207 PluginHostMsg_URLRequest_Params) |
196 | 208 |
197 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_CancelResource, | 209 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_CancelResource, |
198 int /* id */) | 210 int /* id */) |
199 | 211 |
200 IPC_MESSAGE_ROUTED0(PluginHostMsg_Invalidate) | |
201 | |
202 IPC_MESSAGE_ROUTED1(PluginHostMsg_InvalidateRect, | 212 IPC_MESSAGE_ROUTED1(PluginHostMsg_InvalidateRect, |
203 gfx::Rect /* rect */) | 213 gfx::Rect /* rect */) |
204 | 214 |
205 IPC_SYNC_MESSAGE_ROUTED1_2(PluginHostMsg_GetWindowScriptNPObject, | 215 IPC_SYNC_MESSAGE_ROUTED1_2(PluginHostMsg_GetWindowScriptNPObject, |
206 int /* route id */, | 216 int /* route id */, |
207 bool /* success */, | 217 bool /* success */, |
208 void* /* npobject_ptr */) | 218 void* /* npobject_ptr */) |
209 | 219 |
210 IPC_SYNC_MESSAGE_ROUTED1_2(PluginHostMsg_GetPluginElement, | 220 IPC_SYNC_MESSAGE_ROUTED1_2(PluginHostMsg_GetPluginElement, |
211 int /* route id */, | 221 int /* route id */, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Evaluate, | 304 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Evaluate, |
295 std::string /* script */, | 305 std::string /* script */, |
296 NPVariant_Param /* result_param */, | 306 NPVariant_Param /* result_param */, |
297 bool /* result */) | 307 bool /* result */) |
298 | 308 |
299 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, | 309 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, |
300 std::string /* message */) | 310 std::string /* message */) |
301 | 311 |
302 IPC_END_MESSAGES(NPObject) | 312 IPC_END_MESSAGES(NPObject) |
303 | 313 |
OLD | NEW |