diff options
author | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 09:26:58 +0000 |
---|---|---|
committer | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 09:26:58 +0000 |
commit | bc296f37929b762850ce2c3b317f8542bdace2a1 (patch) | |
tree | 7ae61fc12388c1c2cc8ae20974d1e78ecb94b45f /chrome/plugin/npobject_proxy.h | |
parent | 9c5e417def0fef57d5dc79b0348dab9b0d354d42 (diff) | |
download | chromium_src-bc296f37929b762850ce2c3b317f8542bdace2a1.zip chromium_src-bc296f37929b762850ce2c3b317f8542bdace2a1.tar.gz chromium_src-bc296f37929b762850ce2c3b317f8542bdace2a1.tar.bz2 |
Added support for constructor calls in the NPAPI.
The LiveConnect test cases at http://java.sun.com/javase/6/webnotes/6u10/plugin2/liveconnect/LiveConnectTests/ now pass for Chromium.
Parts of this change is rather mechanical, and leaves room for some refactoring afterwards.
Merged the implementation of testConstruct and the "objectPointer" property from WebKit\WebKitTools\DumpRenderTree\TestNetscapePlugIn.subproj\TestObject.cpp to the Chromium TestObject.cpp for the layout test LayoutTests\plugins\netscape-construct.html pass.
BUG=http://crbug.com/3285
BUG=http://crbug.com/10354
TEST=http://java.sun.com/javase/6/webnotes/6u10/plugin2/liveconnect/LiveConnectTests/
TEST=LayoutTests\plugins\netscape-construct.html
Review URL: http://codereview.chromium.org/113823
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/npobject_proxy.h')
-rw-r--r-- | chrome/plugin/npobject_proxy.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/plugin/npobject_proxy.h b/chrome/plugin/npobject_proxy.h index d4a22d4..3cdae9e 100644 --- a/chrome/plugin/npobject_proxy.h +++ b/chrome/plugin/npobject_proxy.h @@ -47,7 +47,7 @@ class NPObjectProxy : public IPC::Channel::Listener, // process). intptr_t npobject_ptr() { return npobject_ptr_; } - // The next 8 functions are called on NPObjects from the plugin and browser. + // The next 9 functions are called on NPObjects from the plugin and browser. static bool NPHasMethod(NPObject *obj, NPIdentifier name); static bool NPInvoke(NPObject *obj, @@ -72,6 +72,10 @@ class NPObjectProxy : public IPC::Channel::Listener, static bool NPNEnumerate(NPObject *obj, NPIdentifier **value, uint32_t *count); + static bool NPNConstruct(NPObject *npobj, + const NPVariant *args, + uint32_t arg_count, + NPVariant *result); // The next two functions are only called on NPObjects from the browser. static bool NPNEvaluate(NPP npp, |