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 Mon Apr 27 13:18:07 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
97 */ | 97 */ |
98 PP_Bool (*IsPeripheral)(PP_Instance instance); | 98 PP_Bool (*IsPeripheral)(PP_Instance instance); |
99 /** | 99 /** |
| 100 * Returns PP_TRUE if the plugin is throttled, PP_FALSE otherwise. |
| 101 */ |
| 102 PP_Bool (*IsThrottled)(PP_Instance instance); |
| 103 /** |
100 * Passes the input event to the browser, which sends it back to the | 104 * Passes the input event to the browser, which sends it back to the |
101 * plugin. The plugin should implement PPP_InputEvent and register for | 105 * plugin. The plugin should implement PPP_InputEvent and register for |
102 * the input event type. | 106 * the input event type. |
103 * | 107 * |
104 * This method sends an input event through the browser just as if it had | 108 * 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 | 109 * 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 | 110 * 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 | 111 * 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 | 112 * the plugin's area on the page. When generating a keyboard event, make sure |
109 * the plugin is focused. | 113 * the plugin is focused. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void (*RunV8GC)(PP_Instance instance); | 154 void (*RunV8GC)(PP_Instance instance); |
151 }; | 155 }; |
152 | 156 |
153 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; | 157 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; |
154 /** | 158 /** |
155 * @} | 159 * @} |
156 */ | 160 */ |
157 | 161 |
158 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ | 162 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ |
159 | 163 |
OLD | NEW |