Chromium Code Reviews| 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 /** | 6 /** |
| 7 * This file contains interface functions used for unit testing. Do not use in | 7 * This file contains interface functions used for unit testing. Do not use in |
| 8 * production code. They are not guaranteed to be available in normal plugin | 8 * production code. They are not guaranteed to be available in normal plugin |
| 9 * environments so you should not depend on them. | 9 * environments so you should not depend on them. |
| 10 */ | 10 */ |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 * associated with this plugin instance. Used for detecting leaks. Returns | 70 * associated with this plugin instance. Used for detecting leaks. Returns |
| 71 * (uint32_t)-1 on failure. | 71 * (uint32_t)-1 on failure. |
| 72 */ | 72 */ |
| 73 uint32_t GetLiveObjectsForInstance([in] PP_Instance instance); | 73 uint32_t GetLiveObjectsForInstance([in] PP_Instance instance); |
| 74 | 74 |
| 75 /** | 75 /** |
| 76 * Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE | 76 * Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE |
| 77 * otherwise. | 77 * otherwise. |
| 78 */ | 78 */ |
| 79 PP_Bool IsOutOfProcess(); | 79 PP_Bool IsOutOfProcess(); |
| 80 | 80 |
| 81 /** | 81 /** |
| 82 * Returns PP_TRUE if the plugin is peripheral, PP_FALSE otherwise. | 82 * Returns PP_TRUE if the plugin is peripheral, PP_FALSE otherwise. |
| 83 */ | 83 */ |
| 84 PP_Bool IsPeripheral([in] PP_Instance instance); | 84 PP_Bool IsPeripheral([in] PP_Instance instance); |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Returns PP_TRUE if the plugin is throttled, PP_FALSE otherwise. | |
| 88 */ | |
| 89 PP_Bool IsThrottled([in] PP_Instance instance); | |
|
tommycli
2015/04/28 18:43:16
I was tempted to combine this with the IsPeriphera
raymes
2015/04/29 00:12:35
Either way but perhaps add comments to both that t
tommycli
2015/04/29 20:25:47
Done.
| |
| 90 | |
| 91 /** | |
| 87 * Passes the input event to the browser, which sends it back to the | 92 * Passes the input event to the browser, which sends it back to the |
| 88 * plugin. The plugin should implement PPP_InputEvent and register for | 93 * plugin. The plugin should implement PPP_InputEvent and register for |
| 89 * the input event type. | 94 * the input event type. |
| 90 * | 95 * |
| 91 * This method sends an input event through the browser just as if it had | 96 * This method sends an input event through the browser just as if it had |
| 92 * come from the user. If the browser determines that it is an event for the | 97 * come from the user. If the browser determines that it is an event for the |
| 93 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent | 98 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent |
| 94 * interface. When generating mouse events, make sure the position is within | 99 * interface. When generating mouse events, make sure the position is within |
| 95 * the plugin's area on the page. When generating a keyboard event, make sure | 100 * the plugin's area on the page. When generating a keyboard event, make sure |
| 96 * the plugin is focused. | 101 * the plugin is focused. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 * to its default. The threshold is in bytes. | 140 * to its default. The threshold is in bytes. |
| 136 */ | 141 */ |
| 137 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, | 142 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, |
| 138 [in] uint32_t threshold); | 143 [in] uint32_t threshold); |
| 139 | 144 |
| 140 /** | 145 /** |
| 141 * Run the V8 garbage collector for tests. | 146 * Run the V8 garbage collector for tests. |
| 142 */ | 147 */ |
| 143 void RunV8GC([in] PP_Instance instance); | 148 void RunV8GC([in] PP_Instance instance); |
| 144 }; | 149 }; |
| OLD | NEW |