Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: ppapi/c/ppp_instance.h

Issue 8989006: Update PPAPI IDL generator to define versioned structs, and unversioned typedef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ppapi/tests/ forward declares to includes. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 Tue Aug 23 11:29:06 2011. */ 6 /* From ppp_instance.idl modified Sat Dec 17 10:13:27 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 14 matching lines...) Expand all
31 * @addtogroup Interfaces 31 * @addtogroup Interfaces
32 * @{ 32 * @{
33 */ 33 */
34 /** 34 /**
35 * The <code>PPP_Instance</code> interface contains pointers to a series of 35 * The <code>PPP_Instance</code> interface contains pointers to a series of
36 * functions that you must implement in your module. These functions can be 36 * functions that you must implement in your module. These functions can be
37 * trivial (simply return the default return value) unless you want your module 37 * trivial (simply return the default return value) unless you want your module
38 * to handle events such as change of focus or input events (keyboard/mouse) 38 * to handle events such as change of focus or input events (keyboard/mouse)
39 * events. 39 * events.
40 */ 40 */
41 struct PPP_Instance { 41 struct PPP_Instance_1_0 {
42 /** 42 /**
43 * DidCreate() is a creation handler that is called when a new instance is 43 * DidCreate() is a creation handler that is called when a new instance is
44 * created. This function is called for each instantiation on the page, 44 * created. This function is called for each instantiation on the page,
45 * corresponding to one \<embed\> tag on the page. 45 * corresponding to one \<embed\> tag on the page.
46 * 46 *
47 * Generally you would handle this call by initializing the information 47 * Generally you would handle this call by initializing the information
48 * your module associates with an instance and creating a mapping from the 48 * your module associates with an instance and creating a mapping from the
49 * given <code>PP_Instance</code> handle to this data. The 49 * given <code>PP_Instance</code> handle to this data. The
50 * <code>PP_Instance</code> handle will be used in subsequent calls to 50 * <code>PP_Instance</code> handle will be used in subsequent calls to
51 * identify which instance the call pertains to. 51 * identify which instance the call pertains to.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 * @param[in] instance A <code>PP_Instance</code> identifying the instance 188 * @param[in] instance A <code>PP_Instance</code> identifying the instance
189 * that should do the load. 189 * that should do the load.
190 * 190 *
191 * @param[in] url_loader An open <code>PPB_URLLoader</code> instance. 191 * @param[in] url_loader An open <code>PPB_URLLoader</code> instance.
192 * 192 *
193 * @return <code>PP_TRUE</code> if the data was handled, 193 * @return <code>PP_TRUE</code> if the data was handled,
194 * <code>PP_FALSE</code> otherwise. 194 * <code>PP_FALSE</code> otherwise.
195 */ 195 */
196 PP_Bool (*HandleDocumentLoad)(PP_Instance instance, PP_Resource url_loader); 196 PP_Bool (*HandleDocumentLoad)(PP_Instance instance, PP_Resource url_loader);
197 }; 197 };
198
199 typedef struct PPP_Instance_1_0 PPP_Instance;
198 /** 200 /**
199 * @} 201 * @}
200 */ 202 */
201 203
202
203 typedef struct PPP_Instance PPP_Instance_1_0;
204
205 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ 204 #endif /* PPAPI_C_PPP_INSTANCE_H_ */
206 205
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698