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

Unified Diff: ppapi/api/private/ppb_testing_private.idl

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
« no previous file with comments | « content/renderer/pepper/plugin_module.cc ('k') | ppapi/c/private/ppb_testing_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_testing_private.idl
diff --git a/ppapi/api/private/ppb_testing_private.idl b/ppapi/api/private/ppb_testing_private.idl
index 8de73f73f34f091b2ab6fc18e4ef5cf107eb9946..c2aed41761501d404e9e23129555eef18d37fdad 100644
--- a/ppapi/api/private/ppb_testing_private.idl
+++ b/ppapi/api/private/ppb_testing_private.idl
@@ -77,11 +77,20 @@ interface PPB_Testing_Private {
* otherwise.
*/
PP_Bool IsOutOfProcess();
-
+
+ /**
+ * 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.
+ */
+ void PostPowerSaverStatus([in] PP_Instance instance);
+
/**
- * Returns PP_TRUE if the plugin is peripheral, PP_FALSE otherwise.
+ * 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.
*/
- PP_Bool IsPeripheral([in] PP_Instance instance);
+ void SubscribeToPowerSaverNotifications([in] PP_Instance instance);
/**
* Passes the input event to the browser, which sends it back to the
« no previous file with comments | « content/renderer/pepper/plugin_module.cc ('k') | ppapi/c/private/ppb_testing_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698