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

Side by Side Diff: ppapi/c/pp_resource.h

Issue 7399016: More trivial cleanupi of ppapi/c 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
« no previous file with comments | « ppapi/c/pp_rect.h ('k') | ppapi/c/pp_size.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) 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
6 /* From pp_resource.idl modified Sat Jul 16 16:50:26 2011. */
7
5 #ifndef PPAPI_C_PP_RESOURCE_H_ 8 #ifndef PPAPI_C_PP_RESOURCE_H_
6 #define PPAPI_C_PP_RESOURCE_H_ 9 #define PPAPI_C_PP_RESOURCE_H_
7 10
8 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
9 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
10 13
11 /** 14 /**
12 * @file 15 * @file
13 * This file defines the <code>PP_Resource</code> type which represents data 16 * This file defines the <code>PP_Resource</code> type which represents data
14 * associated with the module. 17 * associated with the module.
15 */ 18 */
16 19
20
17 /** 21 /**
18 * @addtogroup Typedefs 22 * @addtogroup Typedefs
19 * @{ 23 * @{
20 */ 24 */
21
22 /** 25 /**
23 * This typdef represents an opaque handle assigned by the browser to the 26 * This typdef represents an opaque handle assigned by the browser to the
24 * resource. The handle is guaranteed never to be 0 for a valid resource, so a 27 * resource. The handle is guaranteed never to be 0 for a valid resource, so a
25 * module can initialize it to 0 to indicate a "NULL handle." Some interfaces 28 * module can initialize it to 0 to indicate a "NULL handle." Some interfaces
26 * may return a NULL resource to indicate failure. 29 * may return a NULL resource to indicate failure.
27 * 30 *
28 * While a Var represents something callable to JS or from the module to 31 * While a Var represents something callable to JS or from the module to
29 * the DOM, a resource has no meaning or visibility outside of the module 32 * the DOM, a resource has no meaning or visibility outside of the module
30 * interface. 33 * interface.
31 * 34 *
32 * Resources are reference counted. Use <code>AddRefResource()</code> 35 * Resources are reference counted. Use <code>AddRefResource()</code>
33 * and <code>ReleaseResource()</code> in <code>ppb_core.h</code> to manage the 36 * and <code>ReleaseResource()</code> in <code>ppb_core.h</code> to manage the
34 * reference count of a resource. The data will be automatically destroyed when 37 * reference count of a resource. The data will be automatically destroyed when
35 * the internal reference count reaches 0. 38 * the internal reference count reaches 0.
36 */ 39 */
37 typedef int32_t PP_Resource; 40 typedef int32_t PP_Resource;
38 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Resource, 4); 41 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Resource, 4);
39 /** 42 /**
40 * @} 43 * @}
41 */ 44 */
42 45
43 #endif /* PPAPI_C_PP_RESOURCE_H_ */ 46 #endif /* PPAPI_C_PP_RESOURCE_H_ */
44 47
OLDNEW
« no previous file with comments | « ppapi/c/pp_rect.h ('k') | ppapi/c/pp_size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698