| OLD | NEW |
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 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 private/ppb_testing_private.idl modified Mon Jul 28 15:12:12 2014. */ | 6 /* From private/ppb_testing_private.idl modified Tue Apr 28 18:18:26 2015. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ |
| 9 #define PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 * associated with this plugin instance. Used for detecting leaks. Returns | 86 * associated with this plugin instance. Used for detecting leaks. Returns |
| 87 * (uint32_t)-1 on failure. | 87 * (uint32_t)-1 on failure. |
| 88 */ | 88 */ |
| 89 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); | 89 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); |
| 90 /** | 90 /** |
| 91 * Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE | 91 * Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE |
| 92 * otherwise. | 92 * otherwise. |
| 93 */ | 93 */ |
| 94 PP_Bool (*IsOutOfProcess)(void); | 94 PP_Bool (*IsOutOfProcess)(void); |
| 95 /** | 95 /** |
| 96 * Returns PP_TRUE if the plugin is peripheral, PP_FALSE otherwise. | 96 * Returns PP_TRUE if the plugin is peripheral, PP_FALSE otherwise. Used to |
| 97 * test the Plugin Power Saver feature. |
| 97 */ | 98 */ |
| 98 PP_Bool (*IsPeripheral)(PP_Instance instance); | 99 PP_Bool (*IsPeripheral)(PP_Instance instance); |
| 99 /** | 100 /** |
| 101 * Returns PP_TRUE if the plugin is throttled, PP_FALSE otherwise. Used to |
| 102 * test the Plugin Power Saver feature. |
| 103 */ |
| 104 PP_Bool (*IsThrottled)(PP_Instance instance); |
| 105 /** |
| 100 * Passes the input event to the browser, which sends it back to the | 106 * Passes the input event to the browser, which sends it back to the |
| 101 * plugin. The plugin should implement PPP_InputEvent and register for | 107 * plugin. The plugin should implement PPP_InputEvent and register for |
| 102 * the input event type. | 108 * the input event type. |
| 103 * | 109 * |
| 104 * This method sends an input event through the browser just as if it had | 110 * This method sends an input event through the browser just as if it had |
| 105 * come from the user. If the browser determines that it is an event for the | 111 * come from the user. If the browser determines that it is an event for the |
| 106 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent | 112 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent |
| 107 * interface. When generating mouse events, make sure the position is within | 113 * interface. When generating mouse events, make sure the position is within |
| 108 * the plugin's area on the page. When generating a keyboard event, make sure | 114 * the plugin's area on the page. When generating a keyboard event, make sure |
| 109 * the plugin is focused. | 115 * the plugin is focused. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 void (*RunV8GC)(PP_Instance instance); | 156 void (*RunV8GC)(PP_Instance instance); |
| 151 }; | 157 }; |
| 152 | 158 |
| 153 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; | 159 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; |
| 154 /** | 160 /** |
| 155 * @} | 161 * @} |
| 156 */ | 162 */ |
| 157 | 163 |
| 158 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ | 164 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ |
| 159 | 165 |
| OLD | NEW |