| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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_PPP_INSTANCE_H_ | 5 #ifndef PPAPI_C_PPP_INSTANCE_H_ |
| 6 #define PPAPI_C_PPP_INSTANCE_H_ | 6 #define PPAPI_C_PPP_INSTANCE_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_rect.h" | 10 #include "ppapi/c/pp_rect.h" |
| 11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
| 12 | 12 |
| 13 struct PP_InputEvent; | 13 struct PP_InputEvent; |
| 14 struct PP_Var; | 14 struct PP_Var; |
| 15 | 15 |
| 16 #define PPP_INSTANCE_INTERFACE "PPP_Instance;0.4" | 16 #define PPP_INSTANCE_INTERFACE "PPP_Instance;0.4" |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * @file | 19 * @file |
| 20 * Defines the API ... | 20 * Defines the API ... |
| 21 * | 21 * |
| 22 * @addtogroup PPP | 22 * @addtogroup Interfaces |
| 23 * @{ | 23 * @{ |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 struct PPP_Instance { | 26 struct PPP_Instance { |
| 27 /** | 27 /** |
| 28 * Called when a new plugin is instantiated on the web page. The identifier | 28 * Called when a new plugin is instantiated on the web page. The identifier |
| 29 * of the new instance will be passed in as the first argument (this value is | 29 * of the new instance will be passed in as the first argument (this value is |
| 30 * generated by the browser and is an opaque handle). | 30 * generated by the browser and is an opaque handle). |
| 31 * | 31 * |
| 32 * It's possible for more than one plugin instance to be created within the | 32 * It's possible for more than one plugin instance to be created within the |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 * this will be a PPP_Class object that exposes certain methods the page | 119 * this will be a PPP_Class object that exposes certain methods the page |
| 120 * may want to call. | 120 * may want to call. |
| 121 * | 121 * |
| 122 * On Failure, the returned var should be a "void" var. | 122 * On Failure, the returned var should be a "void" var. |
| 123 * | 123 * |
| 124 * The returned PP_Var should have a reference added for the caller, which | 124 * The returned PP_Var should have a reference added for the caller, which |
| 125 * will be responsible for Release()ing that reference. | 125 * will be responsible for Release()ing that reference. |
| 126 */ | 126 */ |
| 127 struct PP_Var (*GetInstanceObject)(PP_Instance instance); | 127 struct PP_Var (*GetInstanceObject)(PP_Instance instance); |
| 128 }; | 128 }; |
| 129 | |
| 130 /** | 129 /** |
| 131 * @} | 130 * @} |
| 132 * End addtogroup PPP | |
| 133 */ | 131 */ |
| 132 |
| 134 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ | 133 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ |
| 135 | 134 |
| OLD | NEW |