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

Side by Side Diff: ppapi/c/private/ppb_testing_private.h

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 /* From private/ppb_testing_private.idl modified Mon Jul 28 15:12:12 2014. */ 6 /* From private/ppb_testing_private.idl modified Mon Jul 28 15:12:12 2014. */
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
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 * associated with this plugin instance. Used for detecting leaks. Returns 86 * associated with this plugin instance. Used for detecting leaks. Returns
87 * (uint32_t)-1 on failure. 87 * (uint32_t)-1 on failure.
88 */ 88 */
89 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); 89 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
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.
97 */
98 PP_Bool (*IsPeripheral)(PP_Instance instance);
99 /**
96 * Passes the input event to the browser, which sends it back to the 100 * Passes the input event to the browser, which sends it back to the
97 * plugin. The plugin should implement PPP_InputEvent and register for 101 * plugin. The plugin should implement PPP_InputEvent and register for
98 * the input event type. 102 * the input event type.
99 * 103 *
100 * This method sends an input event through the browser just as if it had 104 * This method sends an input event through the browser just as if it had
101 * come from the user. If the browser determines that it is an event for the 105 * come from the user. If the browser determines that it is an event for the
102 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent 106 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent
103 * interface. When generating mouse events, make sure the position is within 107 * interface. When generating mouse events, make sure the position is within
104 * the plugin's area on the page. When generating a keyboard event, make sure 108 * the plugin's area on the page. When generating a keyboard event, make sure
105 * the plugin is focused. 109 * the plugin is focused.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void (*RunV8GC)(PP_Instance instance); 150 void (*RunV8GC)(PP_Instance instance);
147 }; 151 };
148 152
149 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; 153 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private;
150 /** 154 /**
151 * @} 155 * @}
152 */ 156 */
153 157
154 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ 158 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */
155 159
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698