Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2011 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 | |
| 6 /* From private/ppp_instance_private.idl modified Tue Oct 2 13:42:46 2012. */ | |
| 7 | |
| 5 #ifndef PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ |
| 6 #define PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ |
| 7 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | |
| 8 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | |
| 14 #include "ppapi/c/pp_stdint.h" | |
| 15 #include "ppapi/c/pp_var.h" | |
| 9 | 16 |
| 10 struct PP_Var; | 17 #define PPP_INSTANCE_PRIVATE_INTERFACE_0_1 "PPP_Instance_Private;0.1" |
| 11 | 18 #define PPP_INSTANCE_PRIVATE_INTERFACE PPP_INSTANCE_PRIVATE_INTERFACE_0_1 |
| 12 #define PPP_INSTANCE_PRIVATE_INTERFACE "PPP_Instance_Private;0.1" | |
| 13 | 19 |
| 14 /** | 20 /** |
| 15 * @file | 21 * @file |
| 16 * This file defines the PPP_InstancePrivate structure; a series of functions | 22 * This file defines the PPP_InstancePrivate structure; a series of functions |
| 17 * that a trusted plugin may implement to provide capabilities only available | 23 * that a trusted plugin may implement to provide capabilities only available |
| 18 * to trusted plugins. | 24 * to trusted plugins. |
| 19 * | |
| 20 */ | 25 */ |
| 21 | 26 |
| 22 /** @addtogroup Interfaces | 27 |
| 28 /** | |
| 29 * @addtogroup Interfaces | |
| 23 * @{ | 30 * @{ |
| 24 */ | 31 */ |
| 25 | |
| 26 /** | 32 /** |
| 27 * The PPP_Instance_Private interface contains pointers to a series of | 33 * The PPP_Instance_Private interface contains pointers to a series of |
| 28 * functions that may be implemented in a trusted plugin to provide capabilities | 34 * functions that may be implemented in a trusted plugin to provide capabilities |
| 29 * that aren't possible in untrusted modules. | 35 * that aren't possible in untrusted modules. |
| 30 */ | 36 */ |
| 31 | 37 struct PPP_Instance_Private_0_1 { |
| 32 struct PPP_Instance_Private { | |
| 33 /** | 38 /** |
| 34 * GetInstanceObject returns a PP_Var representing the scriptable object for | 39 * GetInstanceObject returns a PP_Var representing the scriptable object for |
| 35 * the given instance. Normally this will be a PPP_Class_Deprecated object | 40 * the given instance. Normally this will be a PPP_Class_Deprecated object |
| 36 * that exposes methods and properties to JavaScript. | 41 * that exposes methods and properties to JavaScript. |
| 37 * | 42 * |
| 38 * On Failure, the returned PP_Var should be a "void" var. | 43 * On Failure, the returned PP_Var should be a "void" var. |
| 39 * | 44 * |
| 40 * The returned PP_Var should have a reference added for the caller, which | 45 * The returned PP_Var should have a reference added for the caller, which |
| 41 * will be responsible for Release()ing that reference. | 46 * will be responsible for Release()ing that reference. |
| 42 * | 47 * |
| 43 * @param[in] instance A PP_Instance indentifying the instance from which the | 48 * @param[in] instance A PP_Instance indentifying the instance from which the |
| 44 * instance object is being requested. | 49 * instance object is being requested. |
| 45 * @return A PP_Var containing scriptable object. | 50 * @return A PP_Var containing scriptable object. |
| 46 */ | 51 */ |
| 47 struct PP_Var (*GetInstanceObject)(PP_Instance instance); | 52 struct PP_Var (*GetInstanceObject)(PP_Instance instance); |
| 48 }; | 53 }; |
| 54 | |
| 55 typedef struct PPP_Instance_Private_0_1 PPP_Instance_Private; | |
|
yzshen1
2012/10/02 21:14:43
With this change, ppp_instance_private_proxy.h won
| |
| 49 /** | 56 /** |
| 50 * @} | 57 * @} |
| 51 */ | 58 */ |
| 52 | 59 |
| 53 #endif /* PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ */ | 60 #endif /* PPAPI_C_PRIVATE_PPP_INSTANCE_PRIVATE_H_ */ |
| 54 | 61 |
| OLD | NEW |