| 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 ppb_instance.idl modified Tue Aug 23 11:25:50 2011. */ | 6 /* From ppb_instance.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_INSTANCE_H_ | 8 #ifndef PPAPI_C_PPB_INSTANCE_H_ |
| 9 #define PPAPI_C_PPB_INSTANCE_H_ | 9 #define PPAPI_C_PPB_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_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * @addtogroup Interfaces | 31 * @addtogroup Interfaces |
| 32 * @{ | 32 * @{ |
| 33 */ | 33 */ |
| 34 /** | 34 /** |
| 35 * The PPB_Instance interface contains pointers to functions | 35 * The PPB_Instance interface contains pointers to functions |
| 36 * related to the module instance on a web page. | 36 * related to the module instance on a web page. |
| 37 */ | 37 */ |
| 38 struct PPB_Instance { | 38 struct PPB_Instance_1_0 { |
| 39 /** | 39 /** |
| 40 * BindGraphics() binds the given graphics as the current display surface. | 40 * BindGraphics() binds the given graphics as the current display surface. |
| 41 * The contents of this device is what will be displayed in the instance's | 41 * The contents of this device is what will be displayed in the instance's |
| 42 * area on the web page. The device must be a 2D or a 3D device. | 42 * area on the web page. The device must be a 2D or a 3D device. |
| 43 * | 43 * |
| 44 * You can pass a <code>NULL</code> resource as the device parameter to | 44 * You can pass a <code>NULL</code> resource as the device parameter to |
| 45 * unbind all devices from the given instance. The instance will then appear | 45 * unbind all devices from the given instance. The instance will then appear |
| 46 * transparent. Re-binding the same device will return <code>PP_TRUE</code> | 46 * transparent. Re-binding the same device will return <code>PP_TRUE</code> |
| 47 * and will do nothing. | 47 * and will do nothing. |
| 48 * | 48 * |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 * | 72 * |
| 73 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 73 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 74 * of a module. | 74 * of a module. |
| 75 * | 75 * |
| 76 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the | 76 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the |
| 77 * instance is full-frame. | 77 * instance is full-frame. |
| 78 */ | 78 */ |
| 79 PP_Bool (*IsFullFrame)(PP_Instance instance); | 79 PP_Bool (*IsFullFrame)(PP_Instance instance); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 typedef struct PPB_Instance_1_0 PPB_Instance; |
| 83 |
| 82 struct PPB_Instance_0_5 { | 84 struct PPB_Instance_0_5 { |
| 83 struct PP_Var (*GetWindowObject)(PP_Instance instance); | 85 struct PP_Var (*GetWindowObject)(PP_Instance instance); |
| 84 struct PP_Var (*GetOwnerElementObject)(PP_Instance instance); | 86 struct PP_Var (*GetOwnerElementObject)(PP_Instance instance); |
| 85 PP_Bool (*BindGraphics)(PP_Instance instance, PP_Resource device); | 87 PP_Bool (*BindGraphics)(PP_Instance instance, PP_Resource device); |
| 86 PP_Bool (*IsFullFrame)(PP_Instance instance); | 88 PP_Bool (*IsFullFrame)(PP_Instance instance); |
| 87 }; | 89 }; |
| 88 /** | 90 /** |
| 89 * @} | 91 * @} |
| 90 */ | 92 */ |
| 91 | 93 |
| 92 #endif /* PPAPI_C_PPB_INSTANCE_H_ */ | 94 #endif /* PPAPI_C_PPB_INSTANCE_H_ */ |
| 93 | 95 |
| OLD | NEW |