Index: ppapi/proxy/ppb_cursor_control_proxy.cc |
=================================================================== |
--- ppapi/proxy/ppb_cursor_control_proxy.cc (revision 74021) |
+++ ppapi/proxy/ppb_cursor_control_proxy.cc (working copy) |
@@ -98,6 +98,11 @@ |
&CanLockCursor |
}; |
+InterfaceProxy* CreateCursorControlProxy(Dispatcher* dispatcher, |
+ const void* target_interface) { |
+ return new PPB_CursorControl_Proxy(dispatcher, target_interface); |
+} |
+ |
} // namespace |
PPB_CursorControl_Proxy::PPB_CursorControl_Proxy(Dispatcher* dispatcher, |
@@ -108,14 +113,18 @@ |
PPB_CursorControl_Proxy::~PPB_CursorControl_Proxy() { |
} |
-const void* PPB_CursorControl_Proxy::GetSourceInterface() const { |
- return &cursor_control_interface; |
+// static |
+const InterfaceProxy::Info* PPB_CursorControl_Proxy::GetInfo() { |
+ static const Info info = { |
+ &cursor_control_interface, |
+ PPB_CURSOR_CONTROL_DEV_INTERFACE, |
+ INTERFACE_ID_PPB_CURSORCONTROL, |
+ false, |
+ &CreateCursorControlProxy, |
+ }; |
+ return &info; |
} |
-InterfaceID PPB_CursorControl_Proxy::GetInterfaceId() const { |
- return INTERFACE_ID_PPB_CURSORCONTROL; |
-} |
- |
bool PPB_CursorControl_Proxy::OnMessageReceived(const IPC::Message& msg) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(PPB_CursorControl_Proxy, msg) |