| 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_PPB_VAR_DEPRECATED_H_ | 5 #ifndef PPAPI_C_PPB_VAR_DEPRECATED_H_ |
| 6 #define PPAPI_C_PPB_VAR_DEPRECATED_H_ | 6 #define PPAPI_C_PPB_VAR_DEPRECATED_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/deprecated_bool.h" | 8 #include "ppapi/c/dev/deprecated_bool.h" |
| 9 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
| 10 #include "ppapi/c/pp_stdint.h" | 11 #include "ppapi/c/pp_stdint.h" |
| 11 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
| 12 | 13 |
| 13 struct PPP_Class_Deprecated; | 14 struct PPP_Class_Deprecated; |
| 14 | 15 |
| 15 #define PPB_VAR_DEPRECATED_INTERFACE "PPB_Var(Deprecated);0.2" | 16 #define PPB_VAR_DEPRECATED_INTERFACE "PPB_Var(Deprecated);0.3" |
| 16 | 17 |
| 17 /** | 18 /** |
| 18 * @file | 19 * @file |
| 19 * Defines the PPB_Var_Deprecated struct. | 20 * Defines the PPB_Var_Deprecated struct. |
| 20 * See http://code.google.com/p/ppapi/wiki/InterfacingWithJavaScript | 21 * See http://code.google.com/p/ppapi/wiki/InterfacingWithJavaScript |
| 21 * for general information on using this interface. | 22 * for general information on using this interface. |
| 22 * {PENDING: Should the generated doc really be pointing to methods?} | 23 * {PENDING: Should the generated doc really be pointing to methods?} |
| 23 * | 24 * |
| 24 * @addtogroup PPB | 25 * @addtogroup PPB |
| 25 * @{ | 26 * @{ |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 * | 225 * |
| 225 * * The plugin's internal object associated with the point. | 226 * * The plugin's internal object associated with the point. |
| 226 * class Point { | 227 * class Point { |
| 227 * ... | 228 * ... |
| 228 * }; | 229 * }; |
| 229 * | 230 * |
| 230 * PP_Var MakePoint(int x, int y) { | 231 * PP_Var MakePoint(int x, int y) { |
| 231 * return CreateObject(&point_class, new Point(x, y)); | 232 * return CreateObject(&point_class, new Point(x, y)); |
| 232 * }</pre> | 233 * }</pre> |
| 233 */ | 234 */ |
| 234 struct PP_Var (*CreateObject)(PP_Module module, | 235 struct PP_Var (*CreateObject)(PP_Instance instance, |
| 235 const struct PPP_Class_Deprecated* object_class, | 236 const struct PPP_Class_Deprecated* object_class, |
| 236 void* object_data); | 237 void* object_data); |
| 238 |
| 239 // Like CreateObject but takes a module. This will be deleted when all callers |
| 240 // can be changed to use the PP_Instance CreateObject one. |
| 241 struct PP_Var (*CreateObjectWithModuleDeprecated)( |
| 242 PP_Module module, |
| 243 const struct PPP_Class_Deprecated* object_class, |
| 244 void* object_data); |
| 237 }; | 245 }; |
| 238 | 246 |
| 239 /** | 247 /** |
| 240 * @} | 248 * @} |
| 241 * End addtogroup PPB | 249 * End addtogroup PPB |
| 242 */ | 250 */ |
| 243 #endif /* PPAPI_C_PPB_VAR_DEPRECATED_H_ */ | 251 #endif /* PPAPI_C_PPB_VAR_DEPRECATED_H_ */ |
| 244 | 252 |
| OLD | NEW |