OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
6 /* From ppp_instance.idl modified Wed Jul 20 11:17:15 2011. */ | 6 /* From ppp_instance.idl modified Mon Aug 8 06:46:25 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPP_INSTANCE_H_ | 8 #ifndef PPAPI_C_PPP_INSTANCE_H_ |
9 #define PPAPI_C_PPP_INSTANCE_H_ | 9 #define PPAPI_C_PPP_INSTANCE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_point.h" | 14 #include "ppapi/c/pp_point.h" |
15 #include "ppapi/c/pp_rect.h" | 15 #include "ppapi/c/pp_rect.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 * DidDestroy() is an instance destruction handler. This function is called | 86 * DidDestroy() is an instance destruction handler. This function is called |
87 * in many cases (see below) when a module instance is destroyed. It will be | 87 * in many cases (see below) when a module instance is destroyed. It will be |
88 * called even if DidCreate() returned failure. | 88 * called even if DidCreate() returned failure. |
89 * | 89 * |
90 * Generally you will handle this call by deallocating the tracking | 90 * Generally you will handle this call by deallocating the tracking |
91 * information and the <code>PP_Instance</code> mapping you created in the | 91 * information and the <code>PP_Instance</code> mapping you created in the |
92 * DidCreate() call. You can also free resources associated with this | 92 * DidCreate() call. You can also free resources associated with this |
93 * instance but this isn't required; all resources associated with the deleted | 93 * instance but this isn't required; all resources associated with the deleted |
94 * instance will be automatically freed when this function returns. | 94 * instance will be automatically freed when this function returns. |
95 * | 95 * |
96 * The instance identifier will still be valid during this call so the module | 96 * The instance identifier will still be valid during this call, so the module |
97 * can perform cleanup-related tasks. Once this function returns, the | 97 * can perform cleanup-related tasks. Once this function returns, the |
98 * <code>PP_Instance</code> handle will be invalid. This means that you can't | 98 * <code>PP_Instance</code> handle will be invalid. This means that you can't |
99 * do any asynchronous operations like network requests or file writes from | 99 * do any asynchronous operations like network requests, file writes or |
100 * this function since they will be immediately canceled. | 100 * messaging from this function since they will be immediately canceled. |
101 * | 101 * |
102 * <strong>Note:</strong> This function may be skipped in certain | 102 * <strong>Note:</strong> This function will always be skipped on untrusted |
103 * circumstances when Chrome does "fast shutdown". Fast shutdown will happen | 103 * (Native Client) implementations. This function may be skipped on trusted |
104 * in some cases when all module instances are being deleted, and no cleanup | 104 * implementations in certain circumstances when Chrome does "fast shutdown" |
105 * functions will be called. The module will just be unloaded and the process | 105 * of a web page. Fast shutdown will happen in some cases when all module |
106 * terminated. | 106 * instances are being deleted, and no cleanup functions will be called. |
| 107 * The module will just be unloaded and the process terminated. |
107 * | 108 * |
108 * @param[in] instance A <code>PP_Instance</code> indentifying one instance | 109 * @param[in] instance A <code>PP_Instance</code> indentifying one instance |
109 * of a module. | 110 * of a module. |
110 */ | 111 */ |
111 void (*DidDestroy)(PP_Instance instance); | 112 void (*DidDestroy)(PP_Instance instance); |
112 /** | 113 /** |
113 * DidChangeView() is called when the position, the size, of the clip | 114 * DidChangeView() is called when the position, the size, of the clip |
114 * rectangle of the element in the browser that corresponds to this | 115 * rectangle of the element in the browser that corresponds to this |
115 * instance has changed. | 116 * instance has changed. |
116 * | 117 * |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 }; | 197 }; |
197 /** | 198 /** |
198 * @} | 199 * @} |
199 */ | 200 */ |
200 | 201 |
201 | 202 |
202 typedef struct PPP_Instance PPP_Instance_1_0; | 203 typedef struct PPP_Instance PPP_Instance_1_0; |
203 | 204 |
204 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ | 205 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ |
205 | 206 |
OLD | NEW |