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

Side by Side Diff: ppapi/c/trusted/ppb_image_data_trusted.h

Issue 7396002: More trivial cleanupi of ppapi/c/trusted headers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2010 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
6 /* From trusted/ppb_image_data_trusted.idl modified Sat Jul 16 16:51:03 2011. */
7
5 #ifndef PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ 8 #ifndef PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_
6 #define PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ 9 #define PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_
7 10
11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_resource.h"
8 #include "ppapi/c/pp_stdint.h" 13 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/pp_resource.h"
10 14
11 #define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.4" 15 /**
16 * @file
17 * This file defines the trusted ImageData interface.
18 */
19
20
21 /**
22 * @addtogroup Interfaces
23 * @{
24 */
25 /** Trusted interface */
26 #define PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4 "PPB_ImageDataTrusted;0.4"
27 #define PPB_IMAGEDATA_TRUSTED_INTERFACE PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4
12 28
13 struct PPB_ImageDataTrusted { 29 struct PPB_ImageDataTrusted {
14 /** 30 /**
15 * Returns the internal shared memory pointer associated with the given 31 * Returns the internal shared memory pointer associated with the given
16 * ImageData resource. Used for proxying. Returns PP_OK on success, or 32 * ImageData resource. Used for proxying. Returns PP_OK on success, or
17 * 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
18 * 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
19 * the shared memory in |*handle|. 35 * the shared memory in |*handle|.
20 */ 36 */
21 int32_t (*GetSharedMemory)(PP_Resource image_data, 37 int32_t (*GetSharedMemory)(PP_Resource image_data,
22 int* handle, 38 int* handle,
23 uint32_t* byte_count); 39 uint32_t* byte_count);
24 }; 40 };
41 /**
42 * @}
43 */
25 44
26 #endif // PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ 45 #endif /* PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ */
27 46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698