Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_var_deprecated.h
Go to the documentation of this file.
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
3  * found in the LICENSE file.
4  */
5 #ifndef PPAPI_C_PPB_VAR_DEPRECATED_H_
6 #define PPAPI_C_PPB_VAR_DEPRECATED_H_
7 
9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_module.h"
11 #include "ppapi/c/pp_stdint.h"
12 #include "ppapi/c/pp_var.h"
13 
15 
16 #define PPB_VAR_DEPRECATED_INTERFACE_0_3 "PPB_Var(Deprecated);0.3"
17 #define PPB_VAR_DEPRECATED_INTERFACE PPB_VAR_DEPRECATED_INTERFACE_0_3
18 
36  void (*AddRef)(struct PP_Var var);
37 
43  void (*Release)(struct PP_Var var);
44 
62  struct PP_Var (*VarFromUtf8)(PP_Module module,
63  const char* data, uint32_t len);
64 
78  const char* (*VarToUtf8)(struct PP_Var var, uint32_t* len);
79 
90  bool (*HasProperty)(struct PP_Var object,
91  struct PP_Var name,
92  struct PP_Var* exception);
93 
98  bool (*HasMethod)(struct PP_Var object,
99  struct PP_Var name,
100  struct PP_Var* exception);
101 
106  struct PP_Var (*GetProperty)(struct PP_Var object,
107  struct PP_Var name,
108  struct PP_Var* exception);
109 
138  void (*GetAllPropertyNames)(struct PP_Var object,
139  uint32_t* property_count,
140  struct PP_Var** properties,
141  struct PP_Var* exception);
142 
147  void (*SetProperty)(struct PP_Var object,
148  struct PP_Var name,
149  struct PP_Var value,
150  struct PP_Var* exception);
151 
157  void (*RemoveProperty)(struct PP_Var object,
158  struct PP_Var name,
159  struct PP_Var* exception);
160 
161  // TODO(brettw) need native array access here.
162 
180  struct PP_Var (*Call)(struct PP_Var object,
181  struct PP_Var method_name,
182  uint32_t argc,
183  struct PP_Var* argv,
184  struct PP_Var* exception);
185 
192  struct PP_Var (*Construct)(struct PP_Var object,
193  uint32_t argc,
194  struct PP_Var* argv,
195  struct PP_Var* exception);
196 
202  bool (*IsInstanceOf)(struct PP_Var var,
203  const struct PPP_Class_Deprecated* object_class,
204  void** object_data);
205 
237  struct PP_Var (*CreateObject)(PP_Instance instance,
238  const struct PPP_Class_Deprecated* object_class,
239  void* object_data);
240 
241  // Like CreateObject but takes a module. This will be deleted when all callers
242  // can be changed to use the PP_Instance CreateObject one.
243  struct PP_Var (*CreateObjectWithModuleDeprecated)(
244  PP_Module module,
245  const struct PPP_Class_Deprecated* object_class,
246  void* object_data);
247 };
248 
253 #endif /* PPAPI_C_PPB_VAR_DEPRECATED_H_ */
254 
void(* RemoveProperty)(struct PP_Var object, struct PP_Var name, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:157
int32_t PP_Module
Definition: pp_module.h:32
bool(* IsInstanceOf)(struct PP_Var var, const struct PPP_Class_Deprecated *object_class, void **object_data)
Definition: ppb_var_deprecated.h:202
bool(* HasProperty)(struct PP_Var object, struct PP_Var name, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:90
bool(* HasMethod)(struct PP_Var object, struct PP_Var name, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:98
struct PP_Var(* CreateObject)(PP_Instance instance, const struct PPP_Class_Deprecated *object_class, void *object_data)
Definition: ppb_var_deprecated.h:237
Definition: ppb_var_deprecated.h:30
struct PP_Var(* GetProperty)(struct PP_Var object, struct PP_Var name, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:106
void(* GetAllPropertyNames)(struct PP_Var object, uint32_t *property_count, struct PP_Var **properties, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:138
void(* AddRef)(struct PP_Var var)
Definition: ppb_var_deprecated.h:36
struct PP_Var(* VarFromUtf8)(PP_Module module, const char *data, uint32_t len)
Definition: ppb_var_deprecated.h:62
union PP_VarValue value
Definition: pp_var.h:180
Definition: pp_var.h:166
void(* SetProperty)(struct PP_Var object, struct PP_Var name, struct PP_Var value, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:147
int32_t PP_Instance
Definition: pp_instance.h:34
void(* Release)(struct PP_Var var)
Definition: ppb_var_deprecated.h:43
Definition: ppp_class_deprecated.h:37
struct PP_Var(* Call)(struct PP_Var object, struct PP_Var method_name, uint32_t argc, struct PP_Var *argv, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:180
struct PP_Var(* Construct)(struct PP_Var object, uint32_t argc, struct PP_Var *argv, struct PP_Var *exception)
Definition: ppb_var_deprecated.h:192