| OLD | NEW |
| 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 | 5 |
| 6 /* From trusted/ppb_image_data_trusted.idl modified Sat Jul 16 16:51:03 2011. */ | 6 /* From trusted/ppb_image_data_trusted.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ | 8 #ifndef PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ |
| 9 #define PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ | 9 #define PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/pp_stdint.h" | 13 #include "ppapi/c/pp_stdint.h" |
| 14 | 14 |
| 15 #define PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4 "PPB_ImageDataTrusted;0.4" | 15 #define PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4 "PPB_ImageDataTrusted;0.4" |
| 16 #define PPB_IMAGEDATA_TRUSTED_INTERFACE PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4 | 16 #define PPB_IMAGEDATA_TRUSTED_INTERFACE PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4 |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * @file | 19 * @file |
| 20 * This file defines the trusted ImageData interface. | 20 * This file defines the trusted ImageData interface. |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @addtogroup Interfaces | 25 * @addtogroup Interfaces |
| 26 * @{ | 26 * @{ |
| 27 */ | 27 */ |
| 28 /** Trusted interface */ | 28 /** Trusted interface */ |
| 29 struct PPB_ImageDataTrusted { | 29 struct PPB_ImageDataTrusted_0_4 { |
| 30 /** | 30 /** |
| 31 * Returns the internal shared memory pointer associated with the given | 31 * Returns the internal shared memory pointer associated with the given |
| 32 * ImageData resource. Used for proxying. Returns PP_OK on success, or | 32 * ImageData resource. Used for proxying. Returns PP_OK on success, or |
| 33 * PP_ERROR_* on failure. On success, the size in bytes of the shared | 33 * PP_ERROR_* on failure. On success, the size in bytes of the shared |
| 34 * memory region will be placed into |*byte_count|, and the handle for | 34 * memory region will be placed into |*byte_count|, and the handle for |
| 35 * the shared memory in |*handle|. | 35 * the shared memory in |*handle|. |
| 36 */ | 36 */ |
| 37 int32_t (*GetSharedMemory)(PP_Resource image_data, | 37 int32_t (*GetSharedMemory)(PP_Resource image_data, |
| 38 int* handle, | 38 int* handle, |
| 39 uint32_t* byte_count); | 39 uint32_t* byte_count); |
| 40 }; | 40 }; |
| 41 |
| 42 typedef struct PPB_ImageDataTrusted_0_4 PPB_ImageDataTrusted; |
| 41 /** | 43 /** |
| 42 * @} | 44 * @} |
| 43 */ | 45 */ |
| 44 | 46 |
| 45 #endif /* PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ */ | 47 #endif /* PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ */ |
| 46 | 48 |
| OLD | NEW |