Chromium Code Reviews| 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, |