diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 00:35:33 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 00:35:33 +0000 |
commit | a3929294e9176abc6085d87cb2c6f8f8417b58f3 (patch) | |
tree | 82db7bd5e99b1ddcc4ab0efb9c43decf3698b92c /chrome/plugin/webplugin_proxy.cc | |
parent | 2da90e5f4e6deae2902ea1de2f4a76544885e1d8 (diff) | |
download | chromium_src-a3929294e9176abc6085d87cb2c6f8f8417b58f3.zip chromium_src-a3929294e9176abc6085d87cb2c6f8f8417b58f3.tar.gz chromium_src-a3929294e9176abc6085d87cb2c6f8f8417b58f3.tar.bz2 |
Continue eliminating direct NPN_ function calls that go from Chromium code to WebKit code. The long-term goal is to be able to link WebKit as a DLL.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/160310
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22031 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/webplugin_proxy.cc')
-rw-r--r-- | chrome/plugin/webplugin_proxy.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/plugin/webplugin_proxy.cc b/chrome/plugin/webplugin_proxy.cc index 5b150581..8a27a57 100644 --- a/chrome/plugin/webplugin_proxy.cc +++ b/chrome/plugin/webplugin_proxy.cc @@ -23,12 +23,15 @@ #include "chrome/plugin/plugin_thread.h" #include "chrome/plugin/webplugin_delegate_stub.h" #include "skia/ext/platform_device.h" +#include "webkit/api/public/WebBindings.h" #include "webkit/glue/webplugin_delegate.h" #if defined(OS_WIN) #include "base/gfx/gdi_util.h" #endif +using WebKit::WebBindings; + typedef std::map<CPBrowsingContext, WebPluginProxy*> ContextMap; static ContextMap& GetContextMap() { return *Singleton<ContextMap>::get(); @@ -153,7 +156,7 @@ void WebPluginProxy::InvalidateRect(const gfx::Rect& rect) { NPObject* WebPluginProxy::GetWindowScriptNPObject() { if (window_npobject_) - return NPN_RetainObject(window_npobject_); + return WebBindings::retainObject(window_npobject_); int npobject_route_id = channel_->GenerateRouteID(); bool success = false; @@ -172,7 +175,7 @@ NPObject* WebPluginProxy::GetWindowScriptNPObject() { NPObject* WebPluginProxy::GetPluginElement() { if (plugin_element_) - return NPN_RetainObject(plugin_element_); + return WebBindings::retainObject(plugin_element_); int npobject_route_id = channel_->GenerateRouteID(); bool success = false; |