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

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

Issue 7292033: First pass at freezing stable pepper interfaces to 1.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 5 months 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
« no previous file with comments | « ppapi/c/ppb_image_data.h ('k') | ppapi/c/ppb_messaging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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_0_4 "PPB_Instance;0.4" 13 #define PPB_INSTANCE_INTERFACE_0_4 "PPB_Instance;0.4"
14 #define PPB_INSTANCE_INTERFACE_0_5 "PPB_Instance;0.5" 14 #define PPB_INSTANCE_INTERFACE_0_5 "PPB_Instance;0.5"
15 #define PPB_INSTANCE_INTERFACE_1_0 "PPB_Instance;1.0"
15 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING 16 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING
16 #define PPB_INSTANCE_INTERFACE PPB_INSTANCE_INTERFACE_0_5 17 #define PPB_INSTANCE_INTERFACE PPB_INSTANCE_INTERFACE_1_0
17 #else 18 #else
18 #define PPB_INSTANCE_INTERFACE PPB_INSTANCE_INTERFACE_0_4 19 #define PPB_INSTANCE_INTERFACE PPB_INSTANCE_INTERFACE_0_4
19 #endif 20 #endif
20 21
21 /** 22 /**
22 * @file 23 * @file
23 * This file defines the PPB_Instance interface implemented by the 24 * This file defines the PPB_Instance interface implemented by the
24 * browser and containing pointers to functions related to 25 * browser and containing pointers to functions related to
25 * the module instance on a web page. 26 * the module instance on a web page.
26 * 27 *
27 * @addtogroup Interfaces 28 * @addtogroup Interfaces
28 * @{ 29 * @{
29 */ 30 */
30 31
31 /** 32 /**
32 * The PPB_Instance interface contains pointers to functions 33 * The PPB_Instance interface contains pointers to functions
33 * related to the module instance on a web page. 34 * related to the module instance on a web page.
34 * 35 *
35 */ 36 */
36 37
37 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING 38 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING
38 struct PPB_Instance { 39 struct PPB_Instance {
39 #else 40 #else
40 struct PPB_Instance_0_5 { 41 struct PPB_Instance_1_0 {
41 #endif 42 #endif
42 /** 43 /**
43 * BindGraphics() binds the given graphics as the current drawing surface. 44 * BindGraphics() binds the given graphics as the current drawing surface.
44 * The contents of this device is what will be displayed in the module's 45 * The contents of this device is what will be displayed in the module's
45 * area on the web page. The device must be a 2D or a 3D device. 46 * area on the web page. The device must be a 2D or a 3D device.
46 * 47 *
47 * You can pass a <code>NULL</code> resource as the device parameter to 48 * You can pass a <code>NULL</code> resource as the device parameter to
48 * unbind all devices from the given instance. The instance will then appear 49 * unbind all devices from the given instance. The instance will then appear
49 * transparent. Re-binding the same device will return <code>PP_TRUE</code> 50 * transparent. Re-binding the same device will return <code>PP_TRUE</code>
50 * and will do nothing. Unbinding a device will drop any pending flush 51 * and will do nothing. Unbinding a device will drop any pending flush
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 struct PP_Var (*GetWindowObject)(PP_Instance instance); 94 struct PP_Var (*GetWindowObject)(PP_Instance instance);
94 struct PP_Var (*GetOwnerElementObject)(PP_Instance instance); 95 struct PP_Var (*GetOwnerElementObject)(PP_Instance instance);
95 PP_Bool (*BindGraphics)(PP_Instance instance, PP_Resource device); 96 PP_Bool (*BindGraphics)(PP_Instance instance, PP_Resource device);
96 PP_Bool (*IsFullFrame)(PP_Instance instance); 97 PP_Bool (*IsFullFrame)(PP_Instance instance);
97 struct PP_Var (*ExecuteScript)(PP_Instance instance, 98 struct PP_Var (*ExecuteScript)(PP_Instance instance,
98 struct PP_Var script, 99 struct PP_Var script,
99 struct PP_Var* exception); 100 struct PP_Var* exception);
100 }; 101 };
101 102
102 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING 103 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING
103 typedef struct PPB_Instance PPB_Instance_0_5; 104 typedef struct PPB_Instance PPB_Instance_1_0;
104 #else 105 #else
105 typedef struct PPB_Instance PPB_Instance_0_4; 106 typedef struct PPB_Instance PPB_Instance_0_4;
106 #endif 107 #endif
107 108
108 /** 109 /**
109 * @} 110 * @}
110 */ 111 */
111 112
112 #endif /* PPAPI_C_PPB_INSTANCE_H_ */ 113 #endif /* PPAPI_C_PPB_INSTANCE_H_ */
113 114
OLDNEW
« no previous file with comments | « ppapi/c/ppb_image_data.h ('k') | ppapi/c/ppb_messaging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698