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