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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/private/ppb_testing_private.h
diff --git a/ppapi/c/private/ppb_testing_private.h b/ppapi/c/private/ppb_testing_private.h
index 5003d754a6c30acbaf8b48973026674ecbf0a500..efe456a59b62bf37ffc306c95e39b1b455b45997 100644
--- a/ppapi/c/private/ppb_testing_private.h
+++ b/ppapi/c/private/ppb_testing_private.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/ppb_testing_private.idl modified Mon Jul 28 15:12:12 2014. */
+/* From private/ppb_testing_private.idl modified Fri May 1 13:14:52 2015. */
#ifndef PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_
#define PPAPI_C_PRIVATE_PPB_TESTING_PRIVATE_H_
@@ -93,9 +93,17 @@ struct PPB_Testing_Private_1_0 {
*/
PP_Bool (*IsOutOfProcess)(void);
/**
- * Returns PP_TRUE if the plugin is peripheral, PP_FALSE otherwise.
+ * Posts the plugin's current Power Saver status to JavaScript. The plugin
+ * itself does not recieve anything. This is not idiomatic for Pepper,
+ * but convenient for testing.
*/
- PP_Bool (*IsPeripheral)(PP_Instance instance);
+ void (*PostPowerSaverStatus)(PP_Instance instance);
+ /**
+ * Subscribes to changes to the plugin's Power Saver status. The status
+ * changes are not forwarded to the plugin itself, but posted to JavaScript.
+ * This is not idiomatic for Pepper, but conveienent for testing.
+ */
+ void (*SubscribeToPowerSaverNotifications)(PP_Instance instance);
/**
* Passes the input event to the browser, which sends it back to the
* plugin. The plugin should implement PPP_InputEvent and register for
« 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