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

Unified Diff: ppapi/proxy/ppp_mouse_lock_proxy.cc

Issue 113263003: Pepper: More interface_list cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « ppapi/proxy/ppp_mouse_lock_proxy.h ('k') | ppapi/proxy/ppp_video_decoder_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_mouse_lock_proxy.cc
diff --git a/ppapi/proxy/ppp_mouse_lock_proxy.cc b/ppapi/proxy/ppp_mouse_lock_proxy.cc
index 6fd746dc01fcbbf1549103d853dbc73585e8ab27..66dc1304c51ae87741fe2a4b390e33c723be3d84 100644
--- a/ppapi/proxy/ppp_mouse_lock_proxy.cc
+++ b/ppapi/proxy/ppp_mouse_lock_proxy.cc
@@ -35,10 +35,6 @@ static const PPP_MouseLock mouse_lock_interface = {
static const PPP_MouseLock mouse_lock_interface = {};
#endif // !defined(OS_NACL)
-InterfaceProxy* CreateMouseLockProxy(Dispatcher* dispatcher) {
- return new PPP_MouseLock_Proxy(dispatcher);
-}
-
} // namespace
PPP_MouseLock_Proxy::PPP_MouseLock_Proxy(Dispatcher* dispatcher)
@@ -54,15 +50,8 @@ PPP_MouseLock_Proxy::~PPP_MouseLock_Proxy() {
}
// static
-const InterfaceProxy::Info* PPP_MouseLock_Proxy::GetInfo() {
- static const Info info = {
- &mouse_lock_interface,
- PPP_MOUSELOCK_INTERFACE,
- API_ID_PPP_MOUSE_LOCK,
- false,
- &CreateMouseLockProxy,
- };
- return &info;
+const PPP_MouseLock* PPP_MouseLock_Proxy::GetProxyInterface() {
+ return &mouse_lock_interface;
}
bool PPP_MouseLock_Proxy::OnMessageReceived(const IPC::Message& msg) {
« no previous file with comments | « ppapi/proxy/ppp_mouse_lock_proxy.h ('k') | ppapi/proxy/ppp_video_decoder_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698