| OLD | NEW |
| 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 pp_instance.idl modified Sat Jul 16 16:50:26 2011. */ |
| 7 |
| 5 #ifndef PPAPI_C_PP_INSTANCE_H_ | 8 #ifndef PPAPI_C_PP_INSTANCE_H_ |
| 6 #define PPAPI_C_PP_INSTANCE_H_ | 9 #define PPAPI_C_PP_INSTANCE_H_ |
| 7 | 10 |
| 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_stdint.h" |
| 13 |
| 8 /** | 14 /** |
| 9 * @file | 15 * @file |
| 10 * This file defines the PP_Instance type which uniquely identifies one module | 16 * This file defines the PP_Instance type which uniquely identifies one module |
| 11 * instance. | 17 * instance. |
| 12 */ | 18 */ |
| 13 | 19 |
| 14 #include "ppapi/c/pp_macros.h" | |
| 15 #include "ppapi/c/pp_stdint.h" | |
| 16 | 20 |
| 17 /** | 21 /** |
| 18 * @addtogroup Typedefs | 22 * @addtogroup Typedefs |
| 19 * @{ | 23 * @{ |
| 20 */ | 24 */ |
| 21 | |
| 22 /** | 25 /** |
| 23 * The <code>PP_Instance</code> value uniquely identifies one instance of a | 26 * The <code>PP_Instance</code> value uniquely identifies one instance of a |
| 24 * module (.nexe/PP_Module). There will be one module instance for every | 27 * module (.nexe/PP_Module). There will be one module instance for every |
| 25 * \<embed> tag on a page. | 28 * \<embed> tag on a page. |
| 26 * | 29 * |
| 27 * This identifier is an opaque handle assigned by the browser to the module. | 30 * This identifier is an opaque handle assigned by the browser to the module. |
| 28 * It is guaranteed never to be 0, so a module can initialize it to 0 to | 31 * It is guaranteed never to be 0, so a module can initialize it to 0 to |
| 29 * indicate a "NULL handle." | 32 * indicate a "NULL handle." |
| 30 */ | 33 */ |
| 31 typedef int32_t PP_Instance; | 34 typedef int32_t PP_Instance; |
| 32 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Instance, 4); | 35 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Instance, 4); |
| 33 /** | 36 /** |
| 34 * @} | 37 * @} |
| 35 */ | 38 */ |
| 36 | 39 |
| 37 #endif /* PPAPI_C_PP_INSTANCE_H_ */ | 40 #endif /* PPAPI_C_PP_INSTANCE_H_ */ |
| 38 | 41 |
| OLD | NEW |