Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: ppapi/proxy/ppapi_messages_internal.h

Issue 6686057: Convert ppapi messages to new format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "gpu/command_buffer/common/command_buffer.h"
6 #include "gpu/ipc/gpu_command_buffer_traits.h"
7 #include "ipc/ipc_message_macros.h"
8 #include "ppapi/c/dev/pp_file_info_dev.h"
9 #include "ppapi/c/ppb_var.h"
10
11 #define IPC_MESSAGE_START PpapiMsgStart
12
13 // These are from the plugin to the renderer
14 // Loads the given plugin.
15 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
16
17 // Creates a channel to talk to a renderer. The plugin will respond with
18 // PpapiHostMsg_ChannelCreated.
19 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
20 base::ProcessHandle /* host_process_handle */,
21 int /* renderer_id */);
22
23 // Each plugin may be referenced by multiple renderers. We need the instance
24 // IDs to be unique within a plugin, despite coming from different renderers,
25 // and unique within a renderer, despite going to different plugins. This means
26 // that neither the renderer nor the plugin can generate instance IDs without
27 // consulting the other.
28 //
29 // We resolve this by having the renderer generate a unique instance ID inside
30 // its process. It then asks the plugin to reserve that ID by sending this sync
31 // message. If the plugin has not yet seen this ID, it will remember it as used
32 // (to prevent a race condition if another renderer tries to then use the same
33 // instance), and set usable as true.
34 //
35 // If the plugin has already seen the instance ID, it will set usable as false
36 // and the renderer must retry a new instance ID.
37 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
38 PP_Instance /* instance */,
39 bool /* usable */)
40
41 // Sent in both directions to see if the other side supports the given
42 // interface.
43 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
44 std::string /* interface_name */,
45 bool /* result */)
46
47 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback,
48 uint32 /* serialized_callback */,
49 int32 /* param */)
50
51 // PPB_Audio.
52
53 // Notifies the result of the audio stream create call. This is called in
54 // both error cases and in the normal success case. These cases are
55 // differentiated by the result code, which is one of the standard PPAPI
56 // result codes.
57 //
58 // The handler of this message should always close all of the handles passed
59 // in, since some could be valid even in the error case.
60 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
61 pp::proxy::HostResource /* audio_id */,
62 int32_t /* result_code (will be != PP_OK on failure) */,
63 IPC::PlatformFileForTransit /* socket_handle */,
64 base::SharedMemoryHandle /* handle */,
65 int32_t /* length */)
66
67 // PPB_FileChooser.
68 IPC_MESSAGE_ROUTED3(
69 PpapiMsg_PPBFileChooser_ChooseComplete,
70 pp::proxy::HostResource /* chooser */,
71 int32_t /* result_code (will be != PP_OK on failure */,
72 std::vector<pp::proxy::PPBFileRef_CreateInfo> /* chosen_files */)
73
74 // PPB_FileSystem.
75 IPC_MESSAGE_ROUTED2(
76 PpapiMsg_PPBFileSystem_OpenComplete,
77 pp::proxy::HostResource /* filesystem */,
78 int32_t /* result */)
79
80 // PPB_Graphics2D.
81 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
82 pp::proxy::HostResource /* graphics_2d */,
83 int32_t /* pp_error */)
84
85 // PPB_Surface3D.
86 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBSurface3D_SwapBuffersACK,
87 pp::proxy::HostResource /* surface_3d */,
88 int32_t /* pp_error */)
89
90 // PPP_Class.
91 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
92 int64 /* ppp_class */,
93 int64 /* object */,
94 pp::proxy::SerializedVar /* property */,
95 pp::proxy::SerializedVar /* out_exception */,
96 bool /* result */)
97 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
98 int64 /* ppp_class */,
99 int64 /* object */,
100 pp::proxy::SerializedVar /* method */,
101 pp::proxy::SerializedVar /* out_exception */,
102 bool /* result */)
103 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
104 int64 /* ppp_class */,
105 int64 /* object */,
106 pp::proxy::SerializedVar /* property */,
107 pp::proxy::SerializedVar /* out_exception */,
108 pp::proxy::SerializedVar /* result */)
109 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
110 int64 /* ppp_class */,
111 int64 /* object */,
112 std::vector<pp::proxy::SerializedVar> /* props */,
113 pp::proxy::SerializedVar /* out_exception */)
114 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
115 int64 /* ppp_class */,
116 int64 /* object */,
117 pp::proxy::SerializedVar /* name */,
118 pp::proxy::SerializedVar /* value */,
119 pp::proxy::SerializedVar /* out_exception */)
120 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
121 int64 /* ppp_class */,
122 int64 /* object */,
123 pp::proxy::SerializedVar /* property */,
124 pp::proxy::SerializedVar /* out_exception */)
125 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
126 int64 /* ppp_class */,
127 int64 /* object */,
128 pp::proxy::SerializedVar /* method_name */,
129 std::vector<pp::proxy::SerializedVar> /* args */,
130 pp::proxy::SerializedVar /* out_exception */,
131 pp::proxy::SerializedVar /* result */)
132 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
133 int64 /* ppp_class */,
134 int64 /* object */,
135 std::vector<pp::proxy::SerializedVar> /* args */,
136 pp::proxy::SerializedVar /* out_exception */,
137 pp::proxy::SerializedVar /* result */)
138 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
139 int64 /* ppp_class */,
140 int64 /* object */)
141
142 // PPP_Instance.
143 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
144 PP_Instance /* instance */,
145 std::vector<std::string> /* argn */,
146 std::vector<std::string> /* argv */,
147 PP_Bool /* result */)
148 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy,
149 PP_Instance /* instance */)
150 // TODO(piman): DidChangeView should be async, but doing so causes an issue with
151 // webkit and accelerated compositing. Turn back to async once this is fixed.
152 IPC_SYNC_MESSAGE_ROUTED3_0(PpapiMsg_PPPInstance_DidChangeView,
153 PP_Instance /* instance */,
154 PP_Rect /* position */,
155 PP_Rect /* clip */)
156 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
157 PP_Instance /* instance */,
158 PP_Bool /* has_focus */)
159 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleInputEvent,
160 PP_Instance /* instance */,
161 PP_InputEvent /* event */,
162 PP_Bool /* result */)
163 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
164 PP_Instance /* instance */,
165 pp::proxy::HostResource /* url_loader */,
166 PP_Bool /* result */)
167 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstance_GetInstanceObject,
168 PP_Instance /* instance */,
169 pp::proxy::SerializedVar /* result */)
170
171
172 // PPB_URLLoader
173 // (Messages from browser to plugin to notify it of changes in state.)
174 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress,
175 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
176 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
177 pp::proxy::HostResource /* loader */,
178 int32 /* result */,
179 std::string /* data */)
180
181 // -----------------------------------------------------------------------------
182 // These are from the plugin to the renderer.
183
184 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
185 // could not be established. This could be because the IPC could not be created
186 // for some weird reason, but more likely that the plugin failed to load or
187 // initialize properly.
188 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
189 IPC::ChannelHandle /* handle */)
190
191 // PPB_Audio.
192 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create,
193 PP_Instance /* instance_id */,
194 pp::proxy::HostResource /* config_id */,
195 pp::proxy::HostResource /* result */)
196 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
197 pp::proxy::HostResource /* audio_id */,
198 bool /* play */)
199
200 // PPB_AudioConfig.
201 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioConfig_Create,
202 PP_Instance /* instance */,
203 int32_t /* sample_rate */,
204 uint32_t /* sample_frame_count */,
205 pp::proxy::HostResource /* result */)
206 IPC_SYNC_MESSAGE_ROUTED2_1(
207 PpapiHostMsg_PPBAudioConfig_RecommendSampleFrameCount,
208 int32_t /* sample_rate */,
209 uint32_t /* requested */,
210 uint32_t /* result */)
211
212 // PPB_Buffer.
213 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create,
214 PP_Instance /* instance */,
215 uint32_t /* size */,
216 pp::proxy::HostResource /* result_resource */,
217 int32_t /* result_shm_handle */)
218
219 // PPB_Console.
220 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBConsole_Log,
221 PP_Instance /* instance */,
222 int /* log_level */,
223 pp::proxy::SerializedVar /* value */)
224 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBConsole_LogWithSource,
225 PP_Instance /* instance */,
226 int /* log_level */,
227 pp::proxy::SerializedVar /* soruce */,
228 pp::proxy::SerializedVar /* value */)
229
230 // PPB_Context3D.
231 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBContext3D_Create,
232 PP_Instance /* instance */,
233 int32_t /* config */,
234 std::vector<int32_t> /* attrib_list */,
235 pp::proxy::HostResource /* result */)
236
237 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBContext3D_BindSurfaces,
238 pp::proxy::HostResource /* context */,
239 pp::proxy::HostResource /* draw */,
240 pp::proxy::HostResource /* read */,
241 int32_t /* result */)
242
243 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_Initialize,
244 pp::proxy::HostResource /* context */,
245 int32 /* size */,
246 base::SharedMemoryHandle /* ring_buffer */)
247
248 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBContext3D_GetState,
249 pp::proxy::HostResource /* context */,
250 gpu::CommandBuffer::State /* state */)
251
252 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_Flush,
253 pp::proxy::HostResource /* context */,
254 int32 /* put_offset */,
255 gpu::CommandBuffer::State /* state */)
256
257 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBContext3D_AsyncFlush,
258 pp::proxy::HostResource /* context */,
259 int32 /* put_offset */)
260
261 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_CreateTransferBuffer,
262 pp::proxy::HostResource /* context */,
263 int32 /* size */,
264 int32 /* id */)
265
266 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBContext3D_DestroyTransferBuffer,
267 pp::proxy::HostResource /* context */,
268 int32 /* id */)
269
270 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBContext3D_GetTransferBuffer,
271 pp::proxy::HostResource /* context */,
272 int32 /* id */,
273 base::SharedMemoryHandle /* transfer_buffer */,
274 uint32 /* size */)
275
276 // PPB_Core.
277 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
278 pp::proxy::HostResource)
279 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
280 pp::proxy::HostResource)
281
282 // PPB_CharSet.
283 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_UTF16ToCharSet,
284 PP_Instance /* instance */,
285 string16 /* utf16 */,
286 std::string /* char_set */,
287 int32_t /* on_error */,
288 std::string /* output */,
289 bool /* output_is_success */)
290 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_CharSetToUTF16,
291 PP_Instance /* instance */,
292 std::string /* input */,
293 std::string /* char_set */,
294 int32_t /* on_error */,
295 string16 /* output */,
296 bool /* output_is_success */)
297 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCharSet_GetDefaultCharSet,
298 PP_Instance /* instance */,
299 pp::proxy::SerializedVar /* result */)
300
301 // PPB_CursorControl.
302 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBCursorControl_SetCursor,
303 PP_Instance /* instance */,
304 int32_t /* type */,
305 pp::proxy::HostResource /* custom_image */,
306 PP_Point /* hot_spot */,
307 PP_Bool /* result */)
308 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_LockCursor,
309 PP_Instance /* instance */,
310 PP_Bool /* result */)
311 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_UnlockCursor,
312 PP_Instance /* instance */,
313 PP_Bool /* result */)
314 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock,
315 PP_Instance /* instance */,
316 PP_Bool /* result */)
317 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_CanLockCursor,
318 PP_Instance /* instance */,
319 PP_Bool /* result */)
320
321 // PPB_FileChooser.
322 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create,
323 PP_Instance /* instance */,
324 int /* mode */,
325 std::string /* accept_mime_types */,
326 pp::proxy::HostResource /* result */)
327 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileChooser_Show,
328 pp::proxy::HostResource /* file_chooser */)
329
330
331 // PPB_FileRef.
332 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create,
333 pp::proxy::HostResource /* file_system */,
334 std::string /* path */,
335 pp::proxy::PPBFileRef_CreateInfo /* result */)
336 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
337 pp::proxy::HostResource /* file_ref */,
338 pp::proxy::PPBFileRef_CreateInfo /* result */)
339 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
340 pp::proxy::HostResource /* file_ref */,
341 PP_Bool /* make_ancestors */,
342 uint32_t /* serialized_callback */);
343 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
344 pp::proxy::HostResource /* file_ref */,
345 PP_Time /* last_access */,
346 PP_Time /* last_modified */,
347 uint32_t /* serialized_callback */);
348 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
349 pp::proxy::HostResource /* file_ref */,
350 uint32_t /* serialized_callback */);
351 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
352 pp::proxy::HostResource /* file_ref */,
353 pp::proxy::HostResource /* new_file_ref */,
354 uint32_t /* serialized_callback */);
355
356 // PPB_FileSystem.
357 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
358 PP_Instance /* instance */,
359 int /* type */,
360 pp::proxy::HostResource /* result */)
361 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
362 pp::proxy::HostResource /* result */,
363 int64_t /* expected_size */)
364
365 // PPB_Flash.
366 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
367 PP_Instance /* instance */,
368 PP_Bool /* on_top */)
369 // This has to be synchronous becuase the caller may want to composite on
370 // top of the resulting text after the call is complete.
371 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_DrawGlyphs,
372 pp::proxy::PPBFlash_DrawGlyphs_Params /* params */,
373 PP_Bool /* result */)
374 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL,
375 PP_Instance /* instance */,
376 std::string /* url */,
377 pp::proxy::SerializedVar /* result */)
378 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_NavigateToURL,
379 PP_Instance /* instance */,
380 std::string /* url */,
381 std::string /* target */,
382 PP_Bool /* result */)
383 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop,
384 PP_Instance /* instance */)
385 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop,
386 PP_Instance /* instance */)
387
388 // PPB_Flash_Clipboard.
389 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashClipboard_ReadPlainText,
390 PP_Instance /* instance */,
391 int /* clipboard_type */,
392 pp::proxy::SerializedVar /* result */)
393 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFlashClipboard_WritePlainText,
394 PP_Instance /* instance */,
395 int /* clipboard_type */,
396 pp::proxy::SerializedVar /* text */)
397
398 // PPB_Flash_File_FileRef.
399 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_FileRef_OpenFile,
400 pp::proxy::HostResource /* file_ref */,
401 int32_t /* mode */,
402 IPC::PlatformFileForTransit /* file_handle */,
403 int32_t /* result */)
404 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlashFile_FileRef_QueryFile,
405 pp::proxy::HostResource /* file_ref */,
406 PP_FileInfo_Dev /* info */,
407 int32_t /* result */)
408
409 // PPB_Flash_File_ModuleLocal.
410 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_OpenFile,
411 PP_Instance /* instance */,
412 std::string /* path */,
413 int32_t /* mode */,
414 IPC::PlatformFileForTransit /* file_handle */,
415 int32_t /* result */)
416 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_RenameFile,
417 PP_Instance /* instance */,
418 std::string /* path_from */,
419 std::string /* path_to */,
420 int32_t /* result */)
421 IPC_SYNC_MESSAGE_ROUTED3_1(
422 PpapiHostMsg_PPBFlashFile_ModuleLocal_DeleteFileOrDir,
423 PP_Instance /* instance */,
424 std::string /* path */,
425 PP_Bool /* recursive */,
426 int32_t /* result */)
427 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_CreateDir,
428 PP_Instance /* instance */,
429 std::string /* path */,
430 int32_t /* result */)
431 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_QueryFile,
432 PP_Instance /* instance */,
433 std::string /* path */,
434 PP_FileInfo_Dev /* info */,
435 int32_t /* result */)
436 IPC_SYNC_MESSAGE_ROUTED2_2(
437 PpapiHostMsg_PPBFlashFile_ModuleLocal_GetDirContents,
438 PP_Instance /* instance */,
439 std::string /* path */,
440 std::vector<pp::proxy::SerializedDirEntry> /* entries */,
441 int32_t /* result */)
442
443 // PPB_Flash_Menu
444 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashMenu_Create,
445 PP_Instance /* instance */,
446 pp::proxy::SerializedFlashMenu /* menu_data */,
447 pp::proxy::HostResource /* result */)
448 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashMenu_Show,
449 pp::proxy::HostResource /* menu */,
450 PP_Point /* location */)
451 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFlashMenu_ShowACK,
452 pp::proxy::HostResource /* menu */,
453 int32_t /* selected_id */,
454 int32_t /* result */)
455
456
457 // PPB_Font.
458 IPC_SYNC_MESSAGE_ROUTED2_3(
459 PpapiHostMsg_PPBFont_Create,
460 PP_Instance /* instance */,
461 pp::proxy::SerializedFontDescription /* in_description */,
462 pp::proxy::HostResource /* result */,
463 pp::proxy::SerializedFontDescription /* out_description */,
464 std::string /* out_metrics */)
465 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFont_DrawTextAt,
466 pp::proxy::SerializedVar /* text */,
467 pp::proxy::PPBFont_DrawTextAt_Params /* params */,
468 PP_Bool /* result */)
469 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFont_MeasureText,
470 pp::proxy::HostResource /* font */,
471 pp::proxy::SerializedVar /* text */,
472 PP_Bool /* text_is_rtl */,
473 PP_Bool /* override_direction */,
474 int32_t /* result */)
475 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_CharacterOffsetForPixel,
476 pp::proxy::HostResource /* font */,
477 pp::proxy::SerializedVar /* text */,
478 PP_Bool /* text_is_rtl */,
479 PP_Bool /* override_direction */,
480 int32_t /* pixel_pos */,
481 uint32_t /* result */)
482 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_PixelOffsetForCharacter,
483 pp::proxy::HostResource /* font */,
484 pp::proxy::SerializedVar /* text */,
485 PP_Bool /* text_is_rtl */,
486 PP_Bool /* override_direction */,
487 uint32_t /* char_offset */,
488 int32_t /* result */)
489
490 // PPB_Fullscreen.
491 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFullscreen_IsFullscreen,
492 PP_Instance /* instance */,
493 PP_Bool /* result */)
494 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFullscreen_SetFullscreen,
495 PP_Instance /* instance */,
496 PP_Bool /* fullscreen */,
497 PP_Bool /* result */)
498 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFullscreen_GetScreenSize,
499 PP_Instance /* instance */,
500 PP_Bool /* result */,
501 PP_Size /* size */)
502
503 // PPB_Graphics2D.
504 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
505 PP_Instance /* instance */,
506 PP_Size /* size */,
507 PP_Bool /* is_always_opaque */,
508 pp::proxy::HostResource /* result */)
509 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
510 pp::proxy::HostResource /* graphics_2d */,
511 pp::proxy::HostResource /* image_data */,
512 PP_Point /* top_left */,
513 bool /* src_rect_specified */,
514 PP_Rect /* src_rect */)
515 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
516 pp::proxy::HostResource /* graphics_2d */,
517 bool /* clip_specified */,
518 PP_Rect /* clip */,
519 PP_Point /* amount */)
520 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
521 pp::proxy::HostResource /* graphics_2d */,
522 pp::proxy::HostResource /* image_data */)
523 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
524 pp::proxy::HostResource /* graphics_2d */)
525
526 // PPB_ImageData.
527 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
528 PP_Instance /* instance */,
529 int32 /* format */,
530 PP_Size /* size */,
531 PP_Bool /* init_to_zero */,
532 pp::proxy::HostResource /* result_resource */,
533 std::string /* image_data_desc */,
534 pp::proxy::ImageHandle /* result */)
535
536 // PPB_Instance.
537 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
538 PP_Instance /* instance */,
539 pp::proxy::SerializedVar /* result */)
540 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
541 PP_Instance /* instance */,
542 pp::proxy::SerializedVar /* result */)
543 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
544 PP_Instance /* instance */,
545 pp::proxy::HostResource /* device */,
546 PP_Bool /* result */)
547 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
548 PP_Instance /* instance */,
549 PP_Bool /* result */)
550 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
551 PP_Instance /* instance */,
552 pp::proxy::SerializedVar /* script */,
553 pp::proxy::SerializedVar /* out_exception */,
554 pp::proxy::SerializedVar /* result */)
555
556 IPC_SYNC_MESSAGE_ROUTED3_1(
557 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
558 PP_Instance /* instance */,
559 pp::proxy::SerializedFontDescription /* description */,
560 int32_t /* charset */,
561 pp::proxy::HostResource /* result */)
562 IPC_SYNC_MESSAGE_ROUTED2_1(
563 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
564 pp::proxy::HostResource /* font_file */,
565 uint32_t /* table */,
566 std::string /* result */)
567
568 // PPB_Surface3D.
569 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBSurface3D_Create,
570 PP_Instance /* instance */,
571 int32_t /* config */,
572 std::vector<int32_t> /* attrib_list */,
573 pp::proxy::HostResource /* result */)
574 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBSurface3D_SwapBuffers,
575 pp::proxy::HostResource /* surface_3d */)
576
577 // PPB_Testing.
578 IPC_SYNC_MESSAGE_ROUTED3_1(
579 PpapiHostMsg_PPBTesting_ReadImageData,
580 pp::proxy::HostResource /* device_context_2d */,
581 pp::proxy::HostResource /* image */,
582 PP_Point /* top_left */,
583 PP_Bool /* result */)
584 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBTesting_RunMessageLoop,
585 PP_Instance /* instance */)
586 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBTesting_QuitMessageLoop,
587 PP_Instance /* instance */)
588 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
589 PP_Instance /* instance */,
590 uint32 /* result */)
591
592 // PPB_URLLoader.
593 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
594 PP_Instance /* instance */,
595 pp::proxy::HostResource /* result */)
596 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open,
597 pp::proxy::HostResource /* loader */,
598 pp::proxy::HostResource /*request_info */,
599 uint32_t /* serialized_callback */)
600 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect,
601 pp::proxy::HostResource /* loader */,
602 uint32_t /* serialized_callback */)
603 IPC_SYNC_MESSAGE_ROUTED1_1(
604 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
605 pp::proxy::HostResource /* loader */,
606 pp::proxy::HostResource /* response_info_out */)
607 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
608 pp::proxy::HostResource /* loader */,
609 int32_t /* bytes_to_read */)
610 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
611 pp::proxy::HostResource /* loader */,
612 uint32_t /* serialized_callback */)
613 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
614 pp::proxy::HostResource /* loader */)
615
616 // PPB_URLLoaderTrusted.
617 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoaderTrusted_GrantUniversalAccess,
618 pp::proxy::HostResource /* loader */)
619
620 // PPB_URLRequestInfo.
621 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLRequestInfo_Create,
622 PP_Instance /* instance */,
623 pp::proxy::HostResource /* result */)
624 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLRequestInfo_SetProperty,
625 pp::proxy::HostResource /* request */,
626 int32_t /* property */,
627 pp::proxy::SerializedVar /* value */)
628 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLRequestInfo_AppendDataToBody,
629 pp::proxy::HostResource /* request */,
630 std::string /* data */)
631 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBURLRequestInfo_AppendFileToBody,
632 pp::proxy::HostResource /* request */,
633 pp::proxy::HostResource /* file_ref */,
634 int64_t /* start_offset */,
635 int64_t /* number_of_bytes */,
636 double /* expected_last_modified_time */)
637
638 // PPB_URLResponseInfo.
639 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
640 pp::proxy::HostResource /* response */,
641 int32_t /* property */,
642 pp::proxy::SerializedVar /* result */)
643 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
644 pp::proxy::HostResource /* response */,
645 pp::proxy::PPBFileRef_CreateInfo /* result */)
646
647 // PPB_Var.
648 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_AddRefObject,
649 int64 /* object_id */)
650 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
651 int64 /* object_id */)
652 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
653 PP_Instance /* instance */,
654 pp::proxy::SerializedVar /* var */,
655 int /* new_type */,
656 pp::proxy::SerializedVar /* exception */,
657 pp::proxy::SerializedVar /* result */)
658 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVar_DefineProperty,
659 pp::proxy::SerializedVar /* object */,
660 PP_ObjectProperty /* property */,
661 pp::proxy::SerializedVar /* out_exception */)
662 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
663 pp::proxy::SerializedVar /* object */,
664 pp::proxy::SerializedVar /* property */,
665 pp::proxy::SerializedVar /* out_exception */,
666 PP_Bool /* result */)
667 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
668 pp::proxy::SerializedVar /* object */,
669 pp::proxy::SerializedVar /* method */,
670 pp::proxy::SerializedVar /* out_exception */,
671 PP_Bool /* result */)
672 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
673 pp::proxy::SerializedVar /* object */,
674 pp::proxy::SerializedVar /* property */,
675 pp::proxy::SerializedVar /* out_exception */,
676 pp::proxy::SerializedVar /* result */)
677 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
678 pp::proxy::SerializedVar /* object */,
679 pp::proxy::SerializedVar /* property */,
680 pp::proxy::SerializedVar /* out_exception */,
681 PP_Bool /* result */)
682 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
683 pp::proxy::SerializedVar /* object */,
684 std::vector<pp::proxy::SerializedVar> /* props */,
685 pp::proxy::SerializedVar /* out_exception */)
686 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
687 pp::proxy::SerializedVar /* object */,
688 pp::proxy::SerializedVar /* name */,
689 pp::proxy::SerializedVar /* value */,
690 pp::proxy::SerializedVar /* out_exception */)
691 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_IsCallable,
692 pp::proxy::SerializedVar /* object */,
693 PP_Bool /* result */)
694 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBVar_Call,
695 pp::proxy::SerializedVar /* object */,
696 pp::proxy::SerializedVar /* this_object */,
697 pp::proxy::SerializedVar /* method_name */,
698 std::vector<pp::proxy::SerializedVar> /* args */,
699 pp::proxy::SerializedVar /* out_exception */,
700 pp::proxy::SerializedVar /* result */)
701 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
702 pp::proxy::SerializedVar /* object */,
703 pp::proxy::SerializedVar /* method_name */,
704 std::vector<pp::proxy::SerializedVar> /* args */,
705 pp::proxy::SerializedVar /* out_exception */,
706 pp::proxy::SerializedVar /* result */)
707 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
708 pp::proxy::SerializedVar /* object */,
709 std::vector<pp::proxy::SerializedVar> /* args */,
710 pp::proxy::SerializedVar /* out_exception */,
711 pp::proxy::SerializedVar /* result */)
712 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
713 pp::proxy::SerializedVar /* var */,
714 int64 /* object_class */,
715 int64 /* object-data */,
716 PP_Bool /* result */)
717 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
718 PP_Instance /* instance */,
719 int64 /* object_class */,
720 int64 /* object_data */,
721 pp::proxy::SerializedVar /* result */)
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698