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

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

Issue 9455083: Proxy the PPP_Printing interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/interface_list.cc ('k') | ppapi/proxy/ppp_printing_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/process.h" 11 #include "base/process.h"
12 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/sync_socket.h" 14 #include "base/sync_socket.h"
15 #include "gpu/command_buffer/common/command_buffer.h" 15 #include "gpu/command_buffer/common/command_buffer.h"
16 #include "gpu/ipc/gpu_command_buffer_traits.h" 16 #include "gpu/ipc/gpu_command_buffer_traits.h"
17 #include "ipc/ipc_channel_handle.h" 17 #include "ipc/ipc_channel_handle.h"
18 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
19 #include "ipc/ipc_message_utils.h" 19 #include "ipc/ipc_message_utils.h"
20 #include "ipc/ipc_platform_file.h" 20 #include "ipc/ipc_platform_file.h"
21 #include "ppapi/c/dev/pp_video_capture_dev.h" 21 #include "ppapi/c/dev/pp_video_capture_dev.h"
22 #include "ppapi/c/dev/pp_video_dev.h" 22 #include "ppapi/c/dev/pp_video_dev.h"
23 #include "ppapi/c/dev/ppb_text_input_dev.h" 23 #include "ppapi/c/dev/ppb_text_input_dev.h"
24 #include "ppapi/c/dev/ppp_printing_dev.h"
24 #include "ppapi/c/pp_bool.h" 25 #include "ppapi/c/pp_bool.h"
25 #include "ppapi/c/pp_file_info.h" 26 #include "ppapi/c/pp_file_info.h"
26 #include "ppapi/c/pp_instance.h" 27 #include "ppapi/c/pp_instance.h"
27 #include "ppapi/c/pp_module.h" 28 #include "ppapi/c/pp_module.h"
28 #include "ppapi/c/pp_point.h" 29 #include "ppapi/c/pp_point.h"
29 #include "ppapi/c/pp_rect.h" 30 #include "ppapi/c/pp_rect.h"
30 #include "ppapi/c/pp_resource.h" 31 #include "ppapi/c/pp_resource.h"
31 #include "ppapi/c/pp_size.h" 32 #include "ppapi/c/pp_size.h"
32 #include "ppapi/c/private/ppb_tcp_socket_private.h" 33 #include "ppapi/c/private/ppb_tcp_socket_private.h"
33 #include "ppapi/proxy/ppapi_param_traits.h" 34 #include "ppapi/proxy/ppapi_param_traits.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 IPC_STRUCT_TRAITS_MEMBER(id) 77 IPC_STRUCT_TRAITS_MEMBER(id)
77 IPC_STRUCT_TRAITS_MEMBER(size) 78 IPC_STRUCT_TRAITS_MEMBER(size)
78 IPC_STRUCT_TRAITS_MEMBER(texture_id) 79 IPC_STRUCT_TRAITS_MEMBER(texture_id)
79 IPC_STRUCT_TRAITS_END() 80 IPC_STRUCT_TRAITS_END()
80 81
81 IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev) 82 IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
82 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id) 83 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
83 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id) 84 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
84 IPC_STRUCT_TRAITS_END() 85 IPC_STRUCT_TRAITS_END()
85 86
87 IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev)
88 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
89 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
90 IPC_STRUCT_TRAITS_END()
91
86 IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev) 92 IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
87 IPC_STRUCT_TRAITS_MEMBER(width) 93 IPC_STRUCT_TRAITS_MEMBER(width)
88 IPC_STRUCT_TRAITS_MEMBER(height) 94 IPC_STRUCT_TRAITS_MEMBER(height)
89 IPC_STRUCT_TRAITS_MEMBER(frames_per_second) 95 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
90 IPC_STRUCT_TRAITS_END() 96 IPC_STRUCT_TRAITS_END()
91 97
92 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) 98 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
93 IPC_STRUCT_TRAITS_MEMBER(type) 99 IPC_STRUCT_TRAITS_MEMBER(type)
94 IPC_STRUCT_TRAITS_MEMBER(name) 100 IPC_STRUCT_TRAITS_MEMBER(name)
95 IPC_STRUCT_TRAITS_MEMBER(id) 101 IPC_STRUCT_TRAITS_MEMBER(id)
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 465
460 // PPP_Messaging. 466 // PPP_Messaging.
461 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, 467 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
462 PP_Instance /* instance */, 468 PP_Instance /* instance */,
463 ppapi::proxy::SerializedVar /* message */) 469 ppapi::proxy::SerializedVar /* message */)
464 470
465 // PPP_MouseLock. 471 // PPP_MouseLock.
466 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, 472 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
467 PP_Instance /* instance */) 473 PP_Instance /* instance */)
468 474
475 // PPP_Printing
476 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
477 PP_Instance /* instance */,
478 uint32_t /* result */)
479 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
480 PP_Instance /* instance */,
481 std::string /* settings_string */,
482 int32_t /* result */)
483 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
484 PP_Instance /* instance */,
485 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
486 ppapi::HostResource /* result */)
487 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
488 PP_Instance /* instance */)
489 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
490 PP_Instance /* instance */,
491 bool /* result */)
492
469 // PPB_URLLoader 493 // PPB_URLLoader
470 // (Messages from browser to plugin to notify it of changes in state.) 494 // (Messages from browser to plugin to notify it of changes in state.)
471 IPC_MESSAGE_ROUTED1( 495 IPC_MESSAGE_ROUTED1(
472 PpapiMsg_PPBURLLoader_UpdateProgress, 496 PpapiMsg_PPBURLLoader_UpdateProgress,
473 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) 497 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
474 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, 498 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
475 ppapi::HostResource /* loader */, 499 ppapi::HostResource /* loader */,
476 int32 /* result */, 500 int32 /* result */,
477 std::string /* data */) 501 std::string /* data */)
478 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete, 502 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete,
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) 1234 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1211 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, 1235 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
1212 ppapi::HostResource /* video_decoder */, 1236 ppapi::HostResource /* video_decoder */,
1213 int32_t /* picture buffer id */) 1237 int32_t /* picture buffer id */)
1214 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, 1238 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1215 ppapi::HostResource /* video_decoder */) 1239 ppapi::HostResource /* video_decoder */)
1216 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, 1240 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1217 ppapi::HostResource /* video_decoder */) 1241 ppapi::HostResource /* video_decoder */)
1218 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, 1242 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1219 ppapi::HostResource /* video_decoder */) 1243 ppapi::HostResource /* video_decoder */)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppp_printing_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698