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 Fri May 1 13:14:52 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 * Posts the plugin's current Power Saver status to JavaScript. The plugin |
| 97 * itself does not recieve anything. This is not idiomatic for Pepper, |
| 98 * but convenient for testing. |
97 */ | 99 */ |
98 PP_Bool (*IsPeripheral)(PP_Instance instance); | 100 void (*PostPowerSaverStatus)(PP_Instance instance); |
| 101 /** |
| 102 * Subscribes to changes to the plugin's Power Saver status. The status |
| 103 * changes are not forwarded to the plugin itself, but posted to JavaScript. |
| 104 * This is not idiomatic for Pepper, but conveienent for testing. |
| 105 */ |
| 106 void (*SubscribeToPowerSaverNotifications)(PP_Instance instance); |
99 /** | 107 /** |
100 * Passes the input event to the browser, which sends it back to the | 108 * Passes the input event to the browser, which sends it back to the |
101 * plugin. The plugin should implement PPP_InputEvent and register for | 109 * plugin. The plugin should implement PPP_InputEvent and register for |
102 * the input event type. | 110 * the input event type. |
103 * | 111 * |
104 * This method sends an input event through the browser just as if it had | 112 * 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 | 113 * 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 | 114 * 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 | 115 * 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 | 116 * the plugin's area on the page. When generating a keyboard event, make sure |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void (*RunV8GC)(PP_Instance instance); | 158 void (*RunV8GC)(PP_Instance instance); |
151 }; | 159 }; |
152 | 160 |
153 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; | 161 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; |
154 /** | 162 /** |
155 * @} | 163 * @} |
156 */ | 164 */ |
157 | 165 |
158 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ | 166 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ |
159 | 167 |
OLD | NEW |