| 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. Used to |
| 83 * test the Plugin Power Saver feature. |
| 83 */ | 84 */ |
| 84 PP_Bool IsPeripheral([in] PP_Instance instance); | 85 PP_Bool IsPeripheral([in] PP_Instance instance); |
| 85 | 86 |
| 86 /** | 87 /** |
| 88 * Returns PP_TRUE if the plugin is throttled, PP_FALSE otherwise. Used to |
| 89 * test the Plugin Power Saver feature. |
| 90 */ |
| 91 PP_Bool IsThrottled([in] PP_Instance instance); |
| 92 |
| 93 /** |
| 87 * Passes the input event to the browser, which sends it back to the | 94 * Passes the input event to the browser, which sends it back to the |
| 88 * plugin. The plugin should implement PPP_InputEvent and register for | 95 * plugin. The plugin should implement PPP_InputEvent and register for |
| 89 * the input event type. | 96 * the input event type. |
| 90 * | 97 * |
| 91 * This method sends an input event through the browser just as if it had | 98 * 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 | 99 * 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 | 100 * 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 | 101 * 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 | 102 * the plugin's area on the page. When generating a keyboard event, make sure |
| 96 * the plugin is focused. | 103 * 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. | 142 * to its default. The threshold is in bytes. |
| 136 */ | 143 */ |
| 137 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, | 144 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, |
| 138 [in] uint32_t threshold); | 145 [in] uint32_t threshold); |
| 139 | 146 |
| 140 /** | 147 /** |
| 141 * Run the V8 garbage collector for tests. | 148 * Run the V8 garbage collector for tests. |
| 142 */ | 149 */ |
| 143 void RunV8GC([in] PP_Instance instance); | 150 void RunV8GC([in] PP_Instance instance); |
| 144 }; | 151 }; |
| OLD | NEW |