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

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

Issue 1114623002: Plugin Power Saver: Make PPS work well with prerendered pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 Fri May 1 13:14:52 2015. */
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
11 #include "ppapi/c/dev/ppb_url_util_dev.h" 11 #include "ppapi/c/dev/ppb_url_util_dev.h"
12 #include "ppapi/c/pp_bool.h" 12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_point.h" 15 #include "ppapi/c/pp_point.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
(...skipping 69 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. 96 * Posts the plugin's current Power Saver status to JavaScript. The plugin
97 * itself does not recieve anything. This is not idiomatic for Pepper,
98 * but convenient for testing.
97 */ 99 */
98 PP_Bool (*IsPeripheral)(PP_Instance instance); 100 void (*PostPowerSaverStatus)(PP_Instance instance);
101 /**
102 * Subscribes to changes to the plugin's Power Saver status. The status
103 * changes are not forwarded to the plugin itself, but posted to JavaScript.
104 * This is not idiomatic for Pepper, but conveienent for testing.
105 */
106 void (*SubscribeToPowerSaverNotifications)(PP_Instance instance);
99 /** 107 /**
100 * Passes the input event to the browser, which sends it back to the 108 * Passes the input event to the browser, which sends it back to the
101 * plugin. The plugin should implement PPP_InputEvent and register for 109 * plugin. The plugin should implement PPP_InputEvent and register for
102 * the input event type. 110 * the input event type.
103 * 111 *
104 * This method sends an input event through the browser just as if it had 112 * This method sends an input event through the browser just as if it had
105 * come from the user. If the browser determines that it is an event for the 113 * come from the user. If the browser determines that it is an event for the
106 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent 114 * plugin, it will be sent to be handled by the plugin's PPP_InputEvent
107 * interface. When generating mouse events, make sure the position is within 115 * interface. When generating mouse events, make sure the position is within
108 * the plugin's area on the page. When generating a keyboard event, make sure 116 * the plugin's area on the page. When generating a keyboard event, make sure
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void (*RunV8GC)(PP_Instance instance); 158 void (*RunV8GC)(PP_Instance instance);
151 }; 159 };
152 160
153 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private; 161 typedef struct PPB_Testing_Private_1_0 PPB_Testing_Private;
154 /** 162 /**
155 * @} 163 * @}
156 */ 164 */
157 165
158 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */ 166 #endif /* PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_ */
159 167
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_testing_private.idl ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698