OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "ipc/ipc_message_macros.h" | 5 #include "ipc/ipc_message_macros.h" |
6 #include "ppapi/c/dev/pp_file_info_dev.h" | 6 #include "ppapi/c/dev/pp_file_info_dev.h" |
7 #include "ppapi/c/ppb_var.h" | 7 #include "ppapi/c/ppb_var.h" |
8 | 8 |
9 #define IPC_MESSAGE_START PpapiMsgStart | 9 #define IPC_MESSAGE_START PpapiMsgStart |
10 | 10 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock, | 223 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock, |
224 PP_Instance /* instance */, | 224 PP_Instance /* instance */, |
225 PP_Bool /* result */) | 225 PP_Bool /* result */) |
226 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_CanLockCursor, | 226 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_CanLockCursor, |
227 PP_Instance /* instance */, | 227 PP_Instance /* instance */, |
228 PP_Bool /* result */) | 228 PP_Bool /* result */) |
229 | 229 |
230 // PPB_Flash. | 230 // PPB_Flash. |
231 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, | 231 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, |
232 PP_Instance /* instance */, | 232 PP_Instance /* instance */, |
233 bool /* on_top */) | 233 PP_Bool /* on_top */) |
234 // This has to be synchronous becuase the caller may want to composite on | 234 // This has to be synchronous becuase the caller may want to composite on |
235 // top of the resulting text after the call is complete. | 235 // top of the resulting text after the call is complete. |
236 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_DrawGlyphs, | 236 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_DrawGlyphs, |
237 pp::proxy::PPBFlash_DrawGlyphs_Params /* params */, | 237 pp::proxy::PPBFlash_DrawGlyphs_Params /* params */, |
238 bool /* result */) | 238 PP_Bool /* result */) |
239 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL, | 239 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL, |
240 PP_Instance /* instance */, | 240 PP_Instance /* instance */, |
241 std::string /* url */, | 241 std::string /* url */, |
242 pp::proxy::SerializedVar /* result */) | 242 pp::proxy::SerializedVar /* result */) |
243 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenModuleLocalFile, | 243 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenModuleLocalFile, |
244 PP_Instance /* instance */, | 244 PP_Instance /* instance */, |
245 std::string /* path */, | 245 std::string /* path */, |
246 int32_t /* mode */, | 246 int32_t /* mode */, |
247 IPC::PlatformFileForTransit /* file_handle */, | 247 IPC::PlatformFileForTransit /* file_handle */, |
248 int32_t /* result */) | 248 int32_t /* result */) |
249 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_RenameModuleLocalFile, | 249 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_RenameModuleLocalFile, |
250 PP_Instance /* instance */, | 250 PP_Instance /* instance */, |
251 std::string /* path_from */, | 251 std::string /* path_from */, |
252 std::string /* path_to */, | 252 std::string /* path_to */, |
253 int32_t /* result */) | 253 int32_t /* result */) |
254 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_DeleteModuleLocalFileOrDir, | 254 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_DeleteModuleLocalFileOrDir, |
255 PP_Instance /* instance */, | 255 PP_Instance /* instance */, |
256 std::string /* path */, | 256 std::string /* path */, |
257 bool /* recursive */, | 257 PP_Bool /* recursive */, |
258 int32_t /* result */) | 258 int32_t /* result */) |
259 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_CreateModuleLocalDir, | 259 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_CreateModuleLocalDir, |
260 PP_Instance /* instance */, | 260 PP_Instance /* instance */, |
261 std::string /* path */, | 261 std::string /* path */, |
262 int32_t /* result */) | 262 int32_t /* result */) |
263 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryModuleLocalFile, | 263 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryModuleLocalFile, |
264 PP_Instance /* instance */, | 264 PP_Instance /* instance */, |
265 std::string /* path */, | 265 std::string /* path */, |
266 PP_FileInfo_Dev /* info */, | 266 PP_FileInfo_Dev /* info */, |
267 int32_t /* result */) | 267 int32_t /* result */) |
268 IPC_SYNC_MESSAGE_ROUTED2_2( | 268 IPC_SYNC_MESSAGE_ROUTED2_2( |
269 PpapiHostMsg_PPBFlash_GetModuleLocalDirContents, | 269 PpapiHostMsg_PPBFlash_GetModuleLocalDirContents, |
270 PP_Instance /* instance */, | 270 PP_Instance /* instance */, |
271 std::string /* path */, | 271 std::string /* path */, |
272 std::vector<pp::proxy::SerializedDirEntry> /* entries */, | 272 std::vector<pp::proxy::SerializedDirEntry> /* entries */, |
273 int32_t /* result */) | 273 int32_t /* result */) |
274 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_NavigateToURL, | 274 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_NavigateToURL, |
275 PP_Instance /* instance */, | 275 PP_Instance /* instance */, |
276 std::string /* url */, | 276 std::string /* url */, |
277 std::string /* target */, | 277 std::string /* target */, |
278 bool /* result */) | 278 PP_Bool /* result */) |
279 | 279 |
280 // PPB_Font. | 280 // PPB_Font. |
281 IPC_SYNC_MESSAGE_ROUTED2_3( | 281 IPC_SYNC_MESSAGE_ROUTED2_3( |
282 PpapiHostMsg_PPBFont_Create, | 282 PpapiHostMsg_PPBFont_Create, |
283 PP_Instance /* instance */, | 283 PP_Instance /* instance */, |
284 pp::proxy::SerializedFontDescription /* in_description */, | 284 pp::proxy::SerializedFontDescription /* in_description */, |
285 PP_Resource /* result */, | 285 PP_Resource /* result */, |
286 pp::proxy::SerializedFontDescription /* out_description */, | 286 pp::proxy::SerializedFontDescription /* out_description */, |
287 std::string /* out_metrics */) | 287 std::string /* out_metrics */) |
288 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFont_DrawTextAt, | 288 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFont_DrawTextAt, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 bool /* clip_specified */, | 336 bool /* clip_specified */, |
337 PP_Rect /* clip */, | 337 PP_Rect /* clip */, |
338 PP_Point /* amount */) | 338 PP_Point /* amount */) |
339 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents, | 339 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents, |
340 PP_Resource /* graphics_2d */, | 340 PP_Resource /* graphics_2d */, |
341 PP_Resource /* image_data */) | 341 PP_Resource /* image_data */) |
342 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush, | 342 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush, |
343 PP_Resource /* graphics_2d */) | 343 PP_Resource /* graphics_2d */) |
344 | 344 |
345 // PPB_ImageData. | 345 // PPB_ImageData. |
346 IPC_SYNC_MESSAGE_ROUTED0_1( | |
347 PpapiHostMsg_PPBImageData_GetNativeImageDataFormat, | |
348 int32 /* result_format */) | |
349 IPC_SYNC_MESSAGE_ROUTED1_1( | |
350 PpapiHostMsg_PPBImageData_IsImageDataFormatSupported, | |
351 int32 /* format */, | |
352 PP_Bool /* result */) | |
353 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, | 346 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, |
354 PP_Instance /* instance */, | 347 PP_Instance /* instance */, |
355 int32 /* format */, | 348 int32 /* format */, |
356 PP_Size /* size */, | 349 PP_Size /* size */, |
357 PP_Bool /* init_to_zero */, | 350 PP_Bool /* init_to_zero */, |
358 PP_Resource /* result_resource */, | 351 PP_Resource /* result_resource */, |
359 std::string /* image_data_desc */, | 352 std::string /* image_data_desc */, |
360 pp::proxy::ImageHandle /* result */) | 353 pp::proxy::ImageHandle /* result */) |
361 | 354 |
362 // PPB_Instance. | 355 // PPB_Instance. |
(...skipping 30 matching lines...) Expand all Loading... |
393 | 386 |
394 // PPB_Testing. | 387 // PPB_Testing. |
395 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBTesting_ReadImageData, | 388 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBTesting_ReadImageData, |
396 PP_Resource /* device_context_2d */, | 389 PP_Resource /* device_context_2d */, |
397 PP_Resource /* image */, | 390 PP_Resource /* image */, |
398 PP_Point /* top_left */, | 391 PP_Point /* top_left */, |
399 PP_Bool /* result */) | 392 PP_Bool /* result */) |
400 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBTesting_RunMessageLoop, | 393 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBTesting_RunMessageLoop, |
401 bool /* dummy since there's no 0_0 variant */) | 394 bool /* dummy since there's no 0_0 variant */) |
402 IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBTesting_QuitMessageLoop) | 395 IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBTesting_QuitMessageLoop) |
403 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectCount, | 396 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
404 PP_Module /* module */, | 397 PP_Instance /* instance */, |
405 uint32 /* result */) | 398 uint32 /* result */) |
406 | 399 |
407 // PPB_URLLoader. | 400 // PPB_URLLoader. |
408 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, | 401 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, |
409 PP_Instance /* instance */, | 402 PP_Instance /* instance */, |
410 PP_Resource /* result */) | 403 PP_Resource /* result */) |
411 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open, | 404 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open, |
412 PP_Resource /* loader */, | 405 PP_Resource /* loader */, |
413 PP_Resource /*request_info */, | 406 PP_Resource /*request_info */, |
414 uint32_t /* serialized_callback */) | 407 uint32_t /* serialized_callback */) |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, | 519 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, |
527 pp::proxy::SerializedVar /* var */, | 520 pp::proxy::SerializedVar /* var */, |
528 int64 /* object_class */, | 521 int64 /* object_class */, |
529 int64 /* object-data */, | 522 int64 /* object-data */, |
530 PP_Bool /* result */) | 523 PP_Bool /* result */) |
531 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, | 524 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
532 PP_Instance /* instance */, | 525 PP_Instance /* instance */, |
533 int64 /* object_class */, | 526 int64 /* object_class */, |
534 int64 /* object_data */, | 527 int64 /* object_data */, |
535 pp::proxy::SerializedVar /* result */) | 528 pp::proxy::SerializedVar /* result */) |
OLD | NEW |