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

Unified Diff: components/plugins/renderer/webview_plugin.h

Issue 1124343002: Plugin Power Saver: Enable JS access to throttled plugins. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/plugins/renderer/plugin_placeholder.cc ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.h
diff --git a/components/plugins/renderer/webview_plugin.h b/components/plugins/renderer/webview_plugin.h
index b4cd1ec1b2022d9c82e091355c7d4fe27416aa39..6094cda73e5b47591904e1bf9f16c48abb97d6f9 100644
--- a/components/plugins/renderer/webview_plugin.h
+++ b/components/plugins/renderer/webview_plugin.h
@@ -48,6 +48,9 @@ class WebViewPlugin : public blink::WebPlugin,
// Called when the WebViewPlugin is destroyed.
virtual void PluginDestroyed() = 0;
+
+ // Called to enable JavaScript pass-through to an underlying plugin object.
Bernhard Bauer 2015/05/07 10:07:13 Can you add a comment to state that this only work
tommycli 2015/05/07 17:22:59 Done.
+ virtual v8::Local<v8::Object> GetV8ScriptableObject(v8::Isolate*) const = 0;
};
// Convenience method to set up a new WebViewPlugin using |preferences|
@@ -72,10 +75,7 @@ class WebViewPlugin : public blink::WebPlugin,
virtual bool initialize(blink::WebPluginContainer*);
virtual void destroy();
- virtual NPObject* scriptableObject();
- virtual struct _NPP* pluginNPP();
-
- virtual bool getFormValue(blink::WebString& value);
+ virtual v8::Local<v8::Object> v8ScriptableObject(v8::Isolate* isolate);
virtual void layoutIfNeeded() override;
virtual void paint(blink::WebCanvas* canvas,
« no previous file with comments | « components/plugins/renderer/plugin_placeholder.cc ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698