| 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 dev/ppb_testing_dev.idl modified Fri Dec 16 16:08:07 2011. */ | 6 /* From dev/ppb_testing_dev.idl modified Thu Dec 22 11:02:53 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_TESTING_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_TESTING_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/dev/ppb_url_util_dev.h" | 11 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| 12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_point.h" | 15 #include "ppapi/c/pp_point.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 * This file contains interface functions used for unit testing. Do not use in | 28 * This file contains interface functions used for unit testing. Do not use in |
| 29 * production code. They are not guaranteed to be available in normal plugin | 29 * production code. They are not guaranteed to be available in normal plugin |
| 30 * environments so you should not depend on them. | 30 * environments so you should not depend on them. |
| 31 */ | 31 */ |
| 32 | 32 |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * @addtogroup Interfaces | 35 * @addtogroup Interfaces |
| 36 * @{ | 36 * @{ |
| 37 */ | 37 */ |
| 38 struct PPB_Testing_Dev { | 38 struct PPB_Testing_Dev_0_91 { |
| 39 /** | 39 /** |
| 40 * Reads the bitmap data out of the backing store for the given | 40 * Reads the bitmap data out of the backing store for the given |
| 41 * DeviceContext2D and into the given image. If the data was successfully | 41 * DeviceContext2D and into the given image. If the data was successfully |
| 42 * read, it will return PP_TRUE. | 42 * read, it will return PP_TRUE. |
| 43 * | 43 * |
| 44 * This function should not generally be necessary for normal plugin | 44 * This function should not generally be necessary for normal plugin |
| 45 * operation. If you want to update portions of a device, the expectation is | 45 * operation. If you want to update portions of a device, the expectation is |
| 46 * that you will either regenerate the data, or maintain a backing store | 46 * that you will either regenerate the data, or maintain a backing store |
| 47 * pushing updates to the device from your backing store via PaintImageData. | 47 * pushing updates to the device from your backing store via PaintImageData. |
| 48 * Using this function will introduce an extra copy which will make your | 48 * Using this function will introduce an extra copy which will make your |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 * Fetches up to |array_size| active PP_Vars in the tracker. Returns the | 129 * Fetches up to |array_size| active PP_Vars in the tracker. Returns the |
| 130 * number of vars in the tracker. The active vars are written to |live_vars| | 130 * number of vars in the tracker. The active vars are written to |live_vars| |
| 131 * contiguously starting at index 0. The vars are not in any particular order. | 131 * contiguously starting at index 0. The vars are not in any particular order. |
| 132 * If the number of live vars is greater than |array_size|, then an arbitrary | 132 * If the number of live vars is greater than |array_size|, then an arbitrary |
| 133 * subset of |array_size| vars is written to |live_vars|. The reference count | 133 * subset of |array_size| vars is written to |live_vars|. The reference count |
| 134 * of the returned PP_Vars will *not* be affected by this call. | 134 * of the returned PP_Vars will *not* be affected by this call. |
| 135 */ | 135 */ |
| 136 uint32_t (*GetLiveVars)(struct PP_Var live_vars[], uint32_t array_size); | 136 uint32_t (*GetLiveVars)(struct PP_Var live_vars[], uint32_t array_size); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 typedef struct PPB_Testing_Dev_0_91 PPB_Testing_Dev; |
| 140 |
| 139 struct PPB_Testing_Dev_0_7 { | 141 struct PPB_Testing_Dev_0_7 { |
| 140 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, | 142 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, |
| 141 PP_Resource image, | 143 PP_Resource image, |
| 142 const struct PP_Point* top_left); | 144 const struct PP_Point* top_left); |
| 143 void (*RunMessageLoop)(PP_Instance instance); | 145 void (*RunMessageLoop)(PP_Instance instance); |
| 144 void (*QuitMessageLoop)(PP_Instance instance); | 146 void (*QuitMessageLoop)(PP_Instance instance); |
| 145 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); | 147 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); |
| 146 PP_Bool (*IsOutOfProcess)(); | 148 PP_Bool (*IsOutOfProcess)(); |
| 147 }; | 149 }; |
| 148 | 150 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 168 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); | 170 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); |
| 169 struct PP_Var (*GetDocumentURL)(PP_Instance instance, | 171 struct PP_Var (*GetDocumentURL)(PP_Instance instance, |
| 170 struct PP_URLComponents_Dev* components); | 172 struct PP_URLComponents_Dev* components); |
| 171 }; | 173 }; |
| 172 /** | 174 /** |
| 173 * @} | 175 * @} |
| 174 */ | 176 */ |
| 175 | 177 |
| 176 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ | 178 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ |
| 177 | 179 |
| OLD | NEW |