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_INSTANCE_H_ | 5 #ifndef PPAPI_C_PPB_INSTANCE_H_ |
6 #define PPAPI_C_PPB_INSTANCE_H_ | 6 #define PPAPI_C_PPB_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_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 | 12 |
13 #define PPB_INSTANCE_INTERFACE "PPB_Instance;0.4" | 13 #define PPB_INSTANCE_INTERFACE "PPB_Instance;0.4" |
14 | 14 |
15 /** | 15 /** |
16 * @file | 16 * @file |
17 * Defines the API ... | 17 * Defines the API ... |
18 * | 18 * |
19 * @addtogroup PPB | 19 * @addtogroup Interfaces |
20 * @{ | 20 * @{ |
21 */ | 21 */ |
22 | 22 |
23 struct PPB_Instance { | 23 struct PPB_Instance { |
24 /** Returns a reference to the DOM window containing this instance. */ | 24 /** Returns a reference to the DOM window containing this instance. */ |
25 struct PP_Var (*GetWindowObject)(PP_Instance instance); | 25 struct PP_Var (*GetWindowObject)(PP_Instance instance); |
26 | 26 |
27 /** Returns a reference to the DOM element containing this instance. */ | 27 /** Returns a reference to the DOM element containing this instance. */ |
28 struct PP_Var (*GetOwnerElementObject)(PP_Instance instance); | 28 struct PP_Var (*GetOwnerElementObject)(PP_Instance instance); |
29 | 29 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 * initialize this to a void exception if you do. | 76 * initialize this to a void exception if you do. |
77 * See the function description for details. | 77 * See the function description for details. |
78 * | 78 * |
79 * @return The result of the script execution, | 79 * @return The result of the script execution, |
80 * or a "void" var if execution failed. | 80 * or a "void" var if execution failed. |
81 */ | 81 */ |
82 struct PP_Var (*ExecuteScript)(PP_Instance instance, | 82 struct PP_Var (*ExecuteScript)(PP_Instance instance, |
83 struct PP_Var script, | 83 struct PP_Var script, |
84 struct PP_Var* exception); | 84 struct PP_Var* exception); |
85 }; | 85 }; |
86 | |
87 /** | 86 /** |
88 * @} | 87 * @} |
89 * End addtogroup PPB | |
90 */ | 88 */ |
| 89 |
91 #endif /* PPAPI_C_PPB_INSTANCE_H_ */ | 90 #endif /* PPAPI_C_PPB_INSTANCE_H_ */ |
92 | 91 |
OLD | NEW |