Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: ppapi/api/private/ppb_testing_private.idl

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698