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

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

Issue 7779001: Replace the use of an int32* with a proper struct for decoder configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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
OLDNEW
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 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"
(...skipping 26 matching lines...) Expand all
37 #include "ppapi/shared_impl/ppapi_preferences.h" 37 #include "ppapi/shared_impl/ppapi_preferences.h"
38 #include "ppapi/shared_impl/url_request_info_impl.h" 38 #include "ppapi/shared_impl/url_request_info_impl.h"
39 39
40 #undef IPC_MESSAGE_EXPORT 40 #undef IPC_MESSAGE_EXPORT
41 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 41 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
42 42
43 #define IPC_MESSAGE_START PpapiMsgStart 43 #define IPC_MESSAGE_START PpapiMsgStart
44 44
45 IPC_ENUM_TRAITS(PP_InputEvent_Type) 45 IPC_ENUM_TRAITS(PP_InputEvent_Type)
46 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 46 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
47 IPC_ENUM_TRAITS(PP_VideoDecoderConfig_Dev::Format)
48 IPC_ENUM_TRAITS(PP_VideoDecoderConfig_Dev::H264Profile)
47 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) 49 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
48 50
49 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 51 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
50 IPC_STRUCT_TRAITS_MEMBER(x) 52 IPC_STRUCT_TRAITS_MEMBER(x)
51 IPC_STRUCT_TRAITS_MEMBER(y) 53 IPC_STRUCT_TRAITS_MEMBER(y)
52 IPC_STRUCT_TRAITS_END() 54 IPC_STRUCT_TRAITS_END()
53 55
54 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 56 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
55 IPC_STRUCT_TRAITS_MEMBER(x) 57 IPC_STRUCT_TRAITS_MEMBER(x)
56 IPC_STRUCT_TRAITS_MEMBER(y) 58 IPC_STRUCT_TRAITS_MEMBER(y)
(...skipping 25 matching lines...) Expand all
82 IPC_STRUCT_TRAITS_MEMBER(height) 84 IPC_STRUCT_TRAITS_MEMBER(height)
83 IPC_STRUCT_TRAITS_MEMBER(frames_per_second) 85 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
84 IPC_STRUCT_TRAITS_END() 86 IPC_STRUCT_TRAITS_END()
85 87
86 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) 88 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer)
87 IPC_STRUCT_TRAITS_MEMBER(resource) 89 IPC_STRUCT_TRAITS_MEMBER(resource)
88 IPC_STRUCT_TRAITS_MEMBER(handle) 90 IPC_STRUCT_TRAITS_MEMBER(handle)
89 IPC_STRUCT_TRAITS_MEMBER(size) 91 IPC_STRUCT_TRAITS_MEMBER(size)
90 IPC_STRUCT_TRAITS_END() 92 IPC_STRUCT_TRAITS_END()
91 93
94 IPC_STRUCT_TRAITS_BEGIN(PP_VideoDecoderConfig_Dev)
95 IPC_STRUCT_TRAITS_MEMBER(format)
96 IPC_STRUCT_TRAITS_MEMBER(h264_profile)
97 IPC_STRUCT_TRAITS_END()
98
92 IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences) 99 IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
93 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) 100 IPC_STRUCT_TRAITS_MEMBER(standard_font_family)
94 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) 101 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family)
95 IPC_STRUCT_TRAITS_MEMBER(serif_font_family) 102 IPC_STRUCT_TRAITS_MEMBER(serif_font_family)
96 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family) 103 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family)
97 IPC_STRUCT_TRAITS_MEMBER(default_font_size) 104 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
98 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) 105 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
99 IPC_STRUCT_TRAITS_END() 106 IPC_STRUCT_TRAITS_END()
100 107
101 IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData) 108 IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer, 1019 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer,
1013 ppapi::HostResource /* video_capture */, 1020 ppapi::HostResource /* video_capture */,
1014 uint32_t /* buffer */) 1021 uint32_t /* buffer */)
1015 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture, 1022 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture,
1016 ppapi::HostResource /* video_capture */) 1023 ppapi::HostResource /* video_capture */)
1017 1024
1018 // PPB_VideoDecoder. 1025 // PPB_VideoDecoder.
1019 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, 1026 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1020 PP_Instance /* instance */, 1027 PP_Instance /* instance */,
1021 ppapi::HostResource /* context */, 1028 ppapi::HostResource /* context */,
1022 std::vector<PP_VideoConfigElement> /* config */, 1029 PP_VideoDecoderConfig_Dev /* config */,
1023 ppapi::HostResource /* result */) 1030 ppapi::HostResource /* result */)
1024 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, 1031 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
1025 ppapi::HostResource /* video_decoder */, 1032 ppapi::HostResource /* video_decoder */,
1026 ppapi::HostResource /* bitstream buffer */, 1033 ppapi::HostResource /* bitstream buffer */,
1027 int32 /* bitstream buffer id */, 1034 int32 /* bitstream buffer id */,
1028 int32 /* size of buffer */) 1035 int32 /* size of buffer */)
1029 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers, 1036 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
1030 ppapi::HostResource /* video_decoder */, 1037 ppapi::HostResource /* video_decoder */,
1031 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) 1038 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1032 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, 1039 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
1033 ppapi::HostResource /* video_decoder */, 1040 ppapi::HostResource /* video_decoder */,
1034 int32_t /* picture buffer id */) 1041 int32_t /* picture buffer id */)
1035 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, 1042 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1036 ppapi::HostResource /* video_decoder */) 1043 ppapi::HostResource /* video_decoder */)
1037 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, 1044 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1038 ppapi::HostResource /* video_decoder */) 1045 ppapi::HostResource /* video_decoder */)
1039 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, 1046 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1040 ppapi::HostResource /* video_decoder */) 1047 ppapi::HostResource /* video_decoder */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698