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

Side by Side Diff: ppapi/c/private/ppb_instance_private.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 #ifndef PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_ 5 #ifndef PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_
6 #define PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_ 6 #define PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_var.h" 9 #include "ppapi/c/pp_var.h"
10 10
11 #define PPB_INSTANCE_PRIVATE_INTERFACE "PPB_Instance_Private;0.1" 11 #define PPB_INSTANCE_PRIVATE_INTERFACE_0_1 "PPB_Instance_Private;0.1"
12 #define PPB_INSTANCE_PRIVATE_INTERFACE PPB_INSTANCE_PRIVATE_INTERFACE_0_1
12 13
13 /** 14 /**
14 * @file 15 * @file
15 * This file defines the PPB_Instance_Private interface implemented by the 16 * This file defines the PPB_Instance_Private interface implemented by the
16 * browser and containing pointers to functions available only to trusted plugin 17 * browser and containing pointers to functions available only to trusted plugin
17 * instances. 18 * instances.
18 * 19 *
19 * @addtogroup Interfaces 20 * @addtogroup Interfaces
20 * @{ 21 * @{
21 */ 22 */
22 23
23 /** 24 /**
24 * The PPB_Instance_Private interface contains functions available only to 25 * The PPB_Instance_Private interface contains functions available only to
25 * trusted plugin instances. 26 * trusted plugin instances.
26 * 27 *
27 */ 28 */
28 struct PPB_Instance_Private { 29 struct PPB_Instance_Private_0_1 {
29 /** 30 /**
30 * GetWindowObject is a pointer to a function that determines 31 * GetWindowObject is a pointer to a function that determines
31 * the DOM window containing this module instance. 32 * the DOM window containing this module instance.
32 * 33 *
33 * @param[in] instance A PP_Instance whose WindowObject should be retrieved. 34 * @param[in] instance A PP_Instance whose WindowObject should be retrieved.
34 * @return A PP_Var containing window object on success. 35 * @return A PP_Var containing window object on success.
35 */ 36 */
36 struct PP_Var (*GetWindowObject)(PP_Instance instance); 37 struct PP_Var (*GetWindowObject)(PP_Instance instance);
37 38
38 /** 39 /**
(...skipping 20 matching lines...) Expand all
59 * this to NULL if you don't want exception info; initialize this to a void 60 * this to NULL if you don't want exception info; initialize this to a void
60 * exception if want exception info. 61 * exception if want exception info.
61 * 62 *
62 * @return The result of the script execution, or a "void" var 63 * @return The result of the script execution, or a "void" var
63 * if execution failed. 64 * if execution failed.
64 */ 65 */
65 struct PP_Var (*ExecuteScript)(PP_Instance instance, 66 struct PP_Var (*ExecuteScript)(PP_Instance instance,
66 struct PP_Var script, 67 struct PP_Var script,
67 struct PP_Var* exception); 68 struct PP_Var* exception);
68 }; 69 };
70
71 typedef struct PPB_Instance_Private_0_1 PPB_Instance_Private;
69 /** 72 /**
70 * @} 73 * @}
71 */ 74 */
72 75
73 #endif /* PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_ */ 76 #endif /* PPAPI_C_PRIVATE_PPB_INSTANCE_PRIVATE_H_ */
noelallen1 2011/12/20 22:33:32 Missing blank line at EoF.
Wez 2011/12/21 01:15:52 Done.
74
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698