| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 Thu Dec 22 11:02:53 2011. */ | 6 /* From dev/ppb_testing_dev.idl modified Mon Mar 19 12:02:10 2012. */ |
| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 /** | 87 /** |
| 88 * Returns the number of live objects (resources + strings + objects) | 88 * Returns the number of live objects (resources + strings + objects) |
| 89 * associated with this plugin instance. Used for detecting leaks. Returns | 89 * associated with this plugin instance. Used for detecting leaks. Returns |
| 90 * (uint32_t)-1 on failure. | 90 * (uint32_t)-1 on failure. |
| 91 */ | 91 */ |
| 92 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); | 92 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); |
| 93 /** | 93 /** |
| 94 * Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE | 94 * Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE |
| 95 * otherwise. | 95 * otherwise. |
| 96 */ | 96 */ |
| 97 PP_Bool (*IsOutOfProcess)(); | 97 PP_Bool (*IsOutOfProcess)(void); |
| 98 /** | 98 /** |
| 99 * Passes the input event to the browser, which sends it back to the | 99 * Passes the input event to the browser, which sends it back to the |
| 100 * plugin. The plugin should implement PPP_InputEvent and register for | 100 * plugin. The plugin should implement PPP_InputEvent and register for |
| 101 * the input event type. | 101 * the input event type. |
| 102 * | 102 * |
| 103 * This method sends an input event through the browser just as if it had | 103 * This method sends an input event through the browser just as if it had |
| 104 * come from the user. If the browser determines that it is an event for the | 104 * come from the user. If the browser determines that it is an event for the |
| 105 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent | 105 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent |
| 106 * interface. When generating mouse events, make sure the position is within | 106 * interface. When generating mouse events, make sure the position is within |
| 107 * the plugin's area on the page. When generating a keyboard event, make sure | 107 * the plugin's area on the page. When generating a keyboard event, make sure |
| (...skipping 30 matching lines...) Expand all Loading... |
| 138 | 138 |
| 139 typedef struct PPB_Testing_Dev_0_91 PPB_Testing_Dev; | 139 typedef struct PPB_Testing_Dev_0_91 PPB_Testing_Dev; |
| 140 | 140 |
| 141 struct PPB_Testing_Dev_0_7 { | 141 struct PPB_Testing_Dev_0_7 { |
| 142 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, | 142 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, |
| 143 PP_Resource image, | 143 PP_Resource image, |
| 144 const struct PP_Point* top_left); | 144 const struct PP_Point* top_left); |
| 145 void (*RunMessageLoop)(PP_Instance instance); | 145 void (*RunMessageLoop)(PP_Instance instance); |
| 146 void (*QuitMessageLoop)(PP_Instance instance); | 146 void (*QuitMessageLoop)(PP_Instance instance); |
| 147 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); | 147 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); |
| 148 PP_Bool (*IsOutOfProcess)(); | 148 PP_Bool (*IsOutOfProcess)(void); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 struct PPB_Testing_Dev_0_8 { | 151 struct PPB_Testing_Dev_0_8 { |
| 152 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, | 152 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, |
| 153 PP_Resource image, | 153 PP_Resource image, |
| 154 const struct PP_Point* top_left); | 154 const struct PP_Point* top_left); |
| 155 void (*RunMessageLoop)(PP_Instance instance); | 155 void (*RunMessageLoop)(PP_Instance instance); |
| 156 void (*QuitMessageLoop)(PP_Instance instance); | 156 void (*QuitMessageLoop)(PP_Instance instance); |
| 157 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); | 157 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); |
| 158 PP_Bool (*IsOutOfProcess)(); | 158 PP_Bool (*IsOutOfProcess)(void); |
| 159 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); | 159 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 struct PPB_Testing_Dev_0_9 { | 162 struct PPB_Testing_Dev_0_9 { |
| 163 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, | 163 PP_Bool (*ReadImageData)(PP_Resource device_context_2d, |
| 164 PP_Resource image, | 164 PP_Resource image, |
| 165 const struct PP_Point* top_left); | 165 const struct PP_Point* top_left); |
| 166 void (*RunMessageLoop)(PP_Instance instance); | 166 void (*RunMessageLoop)(PP_Instance instance); |
| 167 void (*QuitMessageLoop)(PP_Instance instance); | 167 void (*QuitMessageLoop)(PP_Instance instance); |
| 168 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); | 168 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); |
| 169 PP_Bool (*IsOutOfProcess)(); | 169 PP_Bool (*IsOutOfProcess)(void); |
| 170 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); | 170 void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event); |
| 171 struct PP_Var (*GetDocumentURL)(PP_Instance instance, | 171 struct PP_Var (*GetDocumentURL)(PP_Instance instance, |
| 172 struct PP_URLComponents_Dev* components); | 172 struct PP_URLComponents_Dev* components); |
| 173 }; | 173 }; |
| 174 /** | 174 /** |
| 175 * @} | 175 * @} |
| 176 */ | 176 */ |
| 177 | 177 |
| 178 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ | 178 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ |
| 179 | 179 |
| OLD | NEW |