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 |
| 81 /** |
| 82 * Returns PP_TRUE if the plugin is peripheral, PP_FALSE otherwise. |
| 83 */ |
| 84 PP_Bool IsPeripheral([in] PP_Instance instance); |
80 | 85 |
81 /** | 86 /** |
82 * Passes the input event to the browser, which sends it back to the | 87 * Passes the input event to the browser, which sends it back to the |
83 * plugin. The plugin should implement PPP_InputEvent and register for | 88 * plugin. The plugin should implement PPP_InputEvent and register for |
84 * the input event type. | 89 * the input event type. |
85 * | 90 * |
86 * This method sends an input event through the browser just as if it had | 91 * This method sends an input event through the browser just as if it had |
87 * come from the user. If the browser determines that it is an event for the | 92 * come from the user. If the browser determines that it is an event for the |
88 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent | 93 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent |
89 * interface. When generating mouse events, make sure the position is within | 94 * interface. When generating mouse events, make sure the position is within |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 * to its default. The threshold is in bytes. | 135 * to its default. The threshold is in bytes. |
131 */ | 136 */ |
132 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, | 137 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, |
133 [in] uint32_t threshold); | 138 [in] uint32_t threshold); |
134 | 139 |
135 /** | 140 /** |
136 * Run the V8 garbage collector for tests. | 141 * Run the V8 garbage collector for tests. |
137 */ | 142 */ |
138 void RunV8GC([in] PP_Instance instance); | 143 void RunV8GC([in] PP_Instance instance); |
139 }; | 144 }; |
OLD | NEW |