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

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

Issue 331123003: Revert 277208 "[PPAPI] Compositor API implementation." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/compositor_resource.cc ('k') | ppapi/proxy/ppapi_param_traits.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 <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 #include "ppapi/c/pp_codecs.h" 30 #include "ppapi/c/pp_codecs.h"
31 #include "ppapi/c/pp_file_info.h" 31 #include "ppapi/c/pp_file_info.h"
32 #include "ppapi/c/pp_instance.h" 32 #include "ppapi/c/pp_instance.h"
33 #include "ppapi/c/pp_module.h" 33 #include "ppapi/c/pp_module.h"
34 #include "ppapi/c/pp_point.h" 34 #include "ppapi/c/pp_point.h"
35 #include "ppapi/c/pp_rect.h" 35 #include "ppapi/c/pp_rect.h"
36 #include "ppapi/c/pp_resource.h" 36 #include "ppapi/c/pp_resource.h"
37 #include "ppapi/c/pp_size.h" 37 #include "ppapi/c/pp_size.h"
38 #include "ppapi/c/pp_time.h" 38 #include "ppapi/c/pp_time.h"
39 #include "ppapi/c/ppb_audio_config.h" 39 #include "ppapi/c/ppb_audio_config.h"
40 #include "ppapi/c/ppb_compositor_layer.h"
41 #include "ppapi/c/ppb_image_data.h" 40 #include "ppapi/c/ppb_image_data.h"
42 #include "ppapi/c/ppb_tcp_socket.h" 41 #include "ppapi/c/ppb_tcp_socket.h"
43 #include "ppapi/c/ppb_text_input_controller.h" 42 #include "ppapi/c/ppb_text_input_controller.h"
44 #include "ppapi/c/ppb_udp_socket.h" 43 #include "ppapi/c/ppb_udp_socket.h"
45 #include "ppapi/c/private/pp_content_decryptor.h" 44 #include "ppapi/c/private/pp_content_decryptor.h"
46 #include "ppapi/c/private/pp_private_font_charset.h" 45 #include "ppapi/c/private/pp_private_font_charset.h"
47 #include "ppapi/c/private/ppb_flash.h" 46 #include "ppapi/c/private/ppb_flash.h"
48 #include "ppapi/c/private/ppb_host_resolver_private.h" 47 #include "ppapi/c/private/ppb_host_resolver_private.h"
49 #include "ppapi/c/private/ppb_isolated_file_system_private.h" 48 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
50 #include "ppapi/c/private/ppb_net_address_private.h" 49 #include "ppapi/c/private/ppb_net_address_private.h"
51 #include "ppapi/c/private/ppb_pdf.h" 50 #include "ppapi/c/private/ppb_pdf.h"
52 #include "ppapi/c/private/ppb_talk_private.h" 51 #include "ppapi/c/private/ppb_talk_private.h"
53 #include "ppapi/c/private/ppp_flash_browser_operations.h" 52 #include "ppapi/c/private/ppp_flash_browser_operations.h"
54 #include "ppapi/proxy/host_resolver_private_resource.h" 53 #include "ppapi/proxy/host_resolver_private_resource.h"
55 #include "ppapi/proxy/network_list_resource.h" 54 #include "ppapi/proxy/network_list_resource.h"
56 #include "ppapi/proxy/ppapi_param_traits.h" 55 #include "ppapi/proxy/ppapi_param_traits.h"
57 #include "ppapi/proxy/ppapi_proxy_export.h" 56 #include "ppapi/proxy/ppapi_proxy_export.h"
58 #include "ppapi/proxy/resource_message_params.h" 57 #include "ppapi/proxy/resource_message_params.h"
59 #include "ppapi/proxy/serialized_flash_menu.h" 58 #include "ppapi/proxy/serialized_flash_menu.h"
60 #include "ppapi/proxy/serialized_handle.h" 59 #include "ppapi/proxy/serialized_handle.h"
61 #include "ppapi/proxy/serialized_structs.h" 60 #include "ppapi/proxy/serialized_structs.h"
62 #include "ppapi/proxy/serialized_var.h" 61 #include "ppapi/proxy/serialized_var.h"
63 #include "ppapi/shared_impl/compositor_layer_data.h"
64 #include "ppapi/shared_impl/dir_contents.h" 62 #include "ppapi/shared_impl/dir_contents.h"
65 #include "ppapi/shared_impl/file_growth.h" 63 #include "ppapi/shared_impl/file_growth.h"
66 #include "ppapi/shared_impl/file_path.h" 64 #include "ppapi/shared_impl/file_path.h"
67 #include "ppapi/shared_impl/file_ref_create_info.h" 65 #include "ppapi/shared_impl/file_ref_create_info.h"
68 #include "ppapi/shared_impl/media_stream_audio_track_shared.h" 66 #include "ppapi/shared_impl/media_stream_audio_track_shared.h"
69 #include "ppapi/shared_impl/media_stream_video_track_shared.h" 67 #include "ppapi/shared_impl/media_stream_video_track_shared.h"
70 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" 68 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h"
71 #include "ppapi/shared_impl/ppapi_preferences.h" 69 #include "ppapi/shared_impl/ppapi_preferences.h"
72 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 70 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
73 #include "ppapi/shared_impl/ppb_input_event_shared.h" 71 #include "ppapi/shared_impl/ppb_input_event_shared.h"
74 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" 72 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h"
75 #include "ppapi/shared_impl/ppb_view_shared.h" 73 #include "ppapi/shared_impl/ppb_view_shared.h"
76 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 74 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
77 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" 75 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
78 #include "ppapi/shared_impl/socket_option_data.h" 76 #include "ppapi/shared_impl/socket_option_data.h"
79 #include "ppapi/shared_impl/url_request_info_data.h" 77 #include "ppapi/shared_impl/url_request_info_data.h"
80 #include "ppapi/shared_impl/url_response_info_data.h" 78 #include "ppapi/shared_impl/url_response_info_data.h"
81 #include "ui/events/ipc/latency_info_param_traits.h" 79 #include "ui/events/ipc/latency_info_param_traits.h"
82 80
83 #undef IPC_MESSAGE_EXPORT 81 #undef IPC_MESSAGE_EXPORT
84 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 82 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
85 83
86 #define IPC_MESSAGE_START PpapiMsgStart 84 #define IPC_MESSAGE_START PpapiMsgStart
87 85
88 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, 86 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
89 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) 87 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
90 IPC_ENUM_TRAITS(PP_AudioSampleRate) 88 IPC_ENUM_TRAITS(PP_AudioSampleRate)
91 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST)
92 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 89 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
93 IPC_ENUM_TRAITS(PP_DecryptorStreamType) 90 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
94 IPC_ENUM_TRAITS(PP_SessionType) 91 IPC_ENUM_TRAITS(PP_SessionType)
95 IPC_ENUM_TRAITS(PP_CdmExceptionCode) 92 IPC_ENUM_TRAITS(PP_CdmExceptionCode)
96 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) 93 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED)
97 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) 94 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER)
98 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) 95 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
99 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) 96 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
100 IPC_ENUM_TRAITS(PP_FlashSetting) 97 IPC_ENUM_TRAITS(PP_FlashSetting)
101 IPC_ENUM_TRAITS(PP_ImageDataFormat) 98 IPC_ENUM_TRAITS(PP_ImageDataFormat)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 136 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
140 IPC_STRUCT_TRAITS_MEMBER(x) 137 IPC_STRUCT_TRAITS_MEMBER(x)
141 IPC_STRUCT_TRAITS_MEMBER(y) 138 IPC_STRUCT_TRAITS_MEMBER(y)
142 IPC_STRUCT_TRAITS_END() 139 IPC_STRUCT_TRAITS_END()
143 140
144 IPC_STRUCT_TRAITS_BEGIN(PP_Size) 141 IPC_STRUCT_TRAITS_BEGIN(PP_Size)
145 IPC_STRUCT_TRAITS_MEMBER(height) 142 IPC_STRUCT_TRAITS_MEMBER(height)
146 IPC_STRUCT_TRAITS_MEMBER(width) 143 IPC_STRUCT_TRAITS_MEMBER(width)
147 IPC_STRUCT_TRAITS_END() 144 IPC_STRUCT_TRAITS_END()
148 145
149 IPC_STRUCT_TRAITS_BEGIN(PP_FloatSize)
150 IPC_STRUCT_TRAITS_MEMBER(height)
151 IPC_STRUCT_TRAITS_MEMBER(width)
152 IPC_STRUCT_TRAITS_END()
153
154 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) 146 IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
155 IPC_STRUCT_TRAITS_MEMBER(point) 147 IPC_STRUCT_TRAITS_MEMBER(point)
156 IPC_STRUCT_TRAITS_MEMBER(size) 148 IPC_STRUCT_TRAITS_MEMBER(size)
157 IPC_STRUCT_TRAITS_END() 149 IPC_STRUCT_TRAITS_END()
158 150
159 IPC_STRUCT_TRAITS_BEGIN(PP_FloatRect)
160 IPC_STRUCT_TRAITS_MEMBER(point)
161 IPC_STRUCT_TRAITS_MEMBER(size)
162 IPC_STRUCT_TRAITS_END()
163
164 IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc) 151 IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc)
165 IPC_STRUCT_TRAITS_MEMBER(format) 152 IPC_STRUCT_TRAITS_MEMBER(format)
166 IPC_STRUCT_TRAITS_MEMBER(size) 153 IPC_STRUCT_TRAITS_MEMBER(size)
167 IPC_STRUCT_TRAITS_MEMBER(stride) 154 IPC_STRUCT_TRAITS_MEMBER(stride)
168 IPC_STRUCT_TRAITS_END() 155 IPC_STRUCT_TRAITS_END()
169 156
170 IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) 157 IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
171 IPC_STRUCT_TRAITS_MEMBER(id) 158 IPC_STRUCT_TRAITS_MEMBER(id)
172 IPC_STRUCT_TRAITS_MEMBER(size) 159 IPC_STRUCT_TRAITS_MEMBER(size)
173 IPC_STRUCT_TRAITS_MEMBER(texture_id) 160 IPC_STRUCT_TRAITS_MEMBER(texture_id)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 IPC_STRUCT_TRAITS_MEMBER(creation_time) 215 IPC_STRUCT_TRAITS_MEMBER(creation_time)
229 IPC_STRUCT_TRAITS_MEMBER(last_access_time) 216 IPC_STRUCT_TRAITS_MEMBER(last_access_time)
230 IPC_STRUCT_TRAITS_MEMBER(last_modified_time) 217 IPC_STRUCT_TRAITS_MEMBER(last_modified_time)
231 IPC_STRUCT_TRAITS_END() 218 IPC_STRUCT_TRAITS_END()
232 219
233 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth) 220 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth)
234 IPC_STRUCT_TRAITS_MEMBER(max_written_offset) 221 IPC_STRUCT_TRAITS_MEMBER(max_written_offset)
235 IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount) 222 IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount)
236 IPC_STRUCT_TRAITS_END() 223 IPC_STRUCT_TRAITS_END()
237 224
238 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData)
239 IPC_STRUCT_TRAITS_MEMBER(common)
240 IPC_STRUCT_TRAITS_MEMBER(color)
241 IPC_STRUCT_TRAITS_MEMBER(texture)
242 IPC_STRUCT_TRAITS_MEMBER(image)
243 IPC_STRUCT_TRAITS_END()
244
245 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::LayerCommon)
246 IPC_STRUCT_TRAITS_MEMBER(size)
247 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
248 IPC_STRUCT_TRAITS_MEMBER(transform)
249 IPC_STRUCT_TRAITS_MEMBER(blend_mode)
250 IPC_STRUCT_TRAITS_MEMBER(opacity)
251 IPC_STRUCT_TRAITS_MEMBER(resource_id)
252 IPC_STRUCT_TRAITS_END()
253
254 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ColorLayer)
255 IPC_STRUCT_TRAITS_MEMBER(red)
256 IPC_STRUCT_TRAITS_MEMBER(green)
257 IPC_STRUCT_TRAITS_MEMBER(blue)
258 IPC_STRUCT_TRAITS_MEMBER(alpha)
259 IPC_STRUCT_TRAITS_END()
260
261 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ImageLayer)
262 IPC_STRUCT_TRAITS_MEMBER(resource)
263 IPC_STRUCT_TRAITS_MEMBER(source_rect)
264 IPC_STRUCT_TRAITS_END()
265
266 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::TextureLayer)
267 IPC_STRUCT_TRAITS_MEMBER(mailbox)
268 IPC_STRUCT_TRAITS_MEMBER(sync_point)
269 IPC_STRUCT_TRAITS_MEMBER(source_rect)
270 IPC_STRUCT_TRAITS_MEMBER(premult_alpha)
271 IPC_STRUCT_TRAITS_END()
272
273 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) 225 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
274 IPC_STRUCT_TRAITS_MEMBER(type) 226 IPC_STRUCT_TRAITS_MEMBER(type)
275 IPC_STRUCT_TRAITS_MEMBER(name) 227 IPC_STRUCT_TRAITS_MEMBER(name)
276 IPC_STRUCT_TRAITS_MEMBER(id) 228 IPC_STRUCT_TRAITS_MEMBER(id)
277 IPC_STRUCT_TRAITS_END() 229 IPC_STRUCT_TRAITS_END()
278 230
279 IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry) 231 IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry)
280 IPC_STRUCT_TRAITS_MEMBER(name) 232 IPC_STRUCT_TRAITS_MEMBER(name)
281 IPC_STRUCT_TRAITS_MEMBER(is_dir) 233 IPC_STRUCT_TRAITS_MEMBER(is_dir)
282 IPC_STRUCT_TRAITS_END() 234 IPC_STRUCT_TRAITS_END()
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 int32_t /* min */, 1292 int32_t /* min */,
1341 int32_t /* max */, 1293 int32_t /* max */,
1342 uint32_t /* bucket_count */) 1294 uint32_t /* bucket_count */)
1343 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration, 1295 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration,
1344 std::string /* name */, 1296 std::string /* name */,
1345 int32_t /* sample */, 1297 int32_t /* sample */,
1346 int32_t /* boundary_value */) 1298 int32_t /* boundary_value */)
1347 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled); 1299 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled);
1348 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply); 1300 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply);
1349 1301
1350 // Compositor
1351 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create)
1352 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers,
1353 std::vector<ppapi::CompositorLayerData> /* layers */,
1354 bool /* reset */)
1355 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply)
1356 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource,
1357 int32_t /* id */,
1358 uint32_t /* sync_point */,
1359 bool /* is_lost */)
1360
1361 // File chooser. 1302 // File chooser.
1362 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) 1303 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1363 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, 1304 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1364 bool /* save_as */, 1305 bool /* save_as */,
1365 bool /* open_multiple */, 1306 bool /* open_multiple */,
1366 std::string /* suggested_file_name */, 1307 std::string /* suggested_file_name */,
1367 std::vector<std::string> /* accept_mime_types */) 1308 std::vector<std::string> /* accept_mime_types */)
1368 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, 1309 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1369 std::vector<ppapi::FileRefCreateInfo> /* files */) 1310 std::vector<ppapi::FileRefCreateInfo> /* files */)
1370 1311
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
2246 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2187 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2247 PP_TalkPermission /* permission */) 2188 PP_TalkPermission /* permission */)
2248 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2189 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2249 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2190 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2250 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2191 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2251 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2192 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2252 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2193 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2253 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2194 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2254 2195
2255 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2196 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/compositor_resource.cc ('k') | ppapi/proxy/ppapi_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698