| 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 Wed Dec 14 12:58:12 2011. */ | 6 /* From dev/ppb_testing_dev.idl modified Fri Dec 16 17:34:59 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 10 matching lines...) Expand all Loading... |
| 27 * This file contains interface functions used for unit testing. Do not use in | 27 * This file contains interface functions used for unit testing. Do not use in |
| 28 * production code. They are not guaranteed to be available in normal plugin | 28 * production code. They are not guaranteed to be available in normal plugin |
| 29 * environments so you should not depend on them. | 29 * environments so you should not depend on them. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * @addtogroup Interfaces | 34 * @addtogroup Interfaces |
| 35 * @{ | 35 * @{ |
| 36 */ | 36 */ |
| 37 struct PPB_Testing_Dev { | 37 struct PPB_Testing_Dev_0_9 { |
| 38 /** | 38 /** |
| 39 * Reads the bitmap data out of the backing store for the given | 39 * Reads the bitmap data out of the backing store for the given |
| 40 * DeviceContext2D and into the given image. If the data was successfully | 40 * DeviceContext2D and into the given image. If the data was successfully |
| 41 * read, it will return PP_TRUE. | 41 * read, it will return PP_TRUE. |
| 42 * | 42 * |
| 43 * This function should not generally be necessary for normal plugin | 43 * This function should not generally be necessary for normal plugin |
| 44 * operation. If you want to update portions of a device, the expectation is | 44 * operation. If you want to update portions of a device, the expectation is |
| 45 * that you will either regenerate the data, or maintain a backing store | 45 * that you will either regenerate the data, or maintain a backing store |
| 46 * pushing updates to the device from your backing store via PaintImageData. | 46 * pushing updates to the device from your backing store via PaintImageData. |
| 47 * Using this function will introduce an extra copy which will make your | 47 * Using this function will introduce an extra copy which will make your |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 * Returns the URL for the document. This is a safe way to retrieve | 119 * Returns the URL for the document. This is a safe way to retrieve |
| 120 * window.location.href. | 120 * window.location.href. |
| 121 * If the canonicalized URL is valid, the method will parse the URL | 121 * If the canonicalized URL is valid, the method will parse the URL |
| 122 * and fill in the components structure. This pointer may be NULL | 122 * and fill in the components structure. This pointer may be NULL |
| 123 * to specify that no component information is necessary. | 123 * to specify that no component information is necessary. |
| 124 */ | 124 */ |
| 125 struct PP_Var (*GetDocumentURL)(PP_Instance instance, | 125 struct PP_Var (*GetDocumentURL)(PP_Instance instance, |
| 126 struct PP_URLComponents_Dev* components); | 126 struct PP_URLComponents_Dev* components); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 typedef struct PPB_Testing_Dev_0_9 PPB_Testing_Dev; |
| 130 |
| 129 struct PPB_Testing_Dev_0_7 { | 131 struct PPB_Testing_Dev_0_7 { |
| 130 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, | 132 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, |
| 131 PP_Resource image, | 133 PP_Resource image, |
| 132 const struct PP_Point* top_left); | 134 const struct PP_Point* top_left); |
| 133 void (*RunMessageLoop)(PP_Instance instance); | 135 void (*RunMessageLoop)(PP_Instance instance); |
| 134 void (*QuitMessageLoop)(PP_Instance instance); | 136 void (*QuitMessageLoop)(PP_Instance instance); |
| 135 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); | 137 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); |
| 136 PP_Bool (*IsOutOfProcess)(); | 138 PP_Bool (*IsOutOfProcess)(); |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 struct PPB_Testing_Dev_0_8 { | 141 struct PPB_Testing_Dev_0_8 { |
| 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 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); | 149 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); |
| 148 }; | 150 }; |
| 149 /** | 151 /** |
| 150 * @} | 152 * @} |
| 151 */ | 153 */ |
| 152 | 154 |
| 153 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ | 155 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ |
| 154 | 156 |
| OLD | NEW |