diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-19 22:18:20 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-19 22:18:20 +0000 |
commit | 24d70dea37088d52da04707efe17421998ec6782 (patch) | |
tree | a721ab9c1844b50041a2bb806ef3968ab463bf25 /ppapi/proxy/ppp_mouse_lock_proxy.cc | |
parent | 58d49cfa428aed9adf68dd123468a4f0c633ec28 (diff) | |
download | chromium_src-24d70dea37088d52da04707efe17421998ec6782.zip chromium_src-24d70dea37088d52da04707efe17421998ec6782.tar.gz chromium_src-24d70dea37088d52da04707efe17421998ec6782.tar.bz2 |
Remove more host-side code from NaCl IPC proxy.
BUG=116317
TEST=browser_tests
Review URL: https://codereview.chromium.org/11416067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168616 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppp_mouse_lock_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppp_mouse_lock_proxy.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ppapi/proxy/ppp_mouse_lock_proxy.cc b/ppapi/proxy/ppp_mouse_lock_proxy.cc index 10aa47f..e4cd039 100644 --- a/ppapi/proxy/ppp_mouse_lock_proxy.cc +++ b/ppapi/proxy/ppp_mouse_lock_proxy.cc @@ -14,6 +14,7 @@ namespace proxy { namespace { +#if !defined(OS_NACL) void MouseLockLost(PP_Instance instance) { HostDispatcher* dispatcher = HostDispatcher::GetForInstance(instance); if (!dispatcher) { @@ -29,6 +30,10 @@ void MouseLockLost(PP_Instance instance) { static const PPP_MouseLock mouse_lock_interface = { &MouseLockLost }; +#else +// The NaCl plugin doesn't need the host side interface - stub it out. +static const PPP_MouseLock mouse_lock_interface = {}; +#endif // !defined(OS_NACL) InterfaceProxy* CreateMouseLockProxy(Dispatcher* dispatcher) { return new PPP_MouseLock_Proxy(dispatcher); |