Index: ppapi/proxy/ppb_font_proxy.cc |
=================================================================== |
--- ppapi/proxy/ppb_font_proxy.cc (revision 74021) |
+++ ppapi/proxy/ppb_font_proxy.cc (working copy) |
@@ -185,7 +185,7 @@ |
return result; |
} |
-const PPB_Font_Dev ppb_font_interface = { |
+const PPB_Font_Dev font_interface = { |
&Create, |
&IsFont, |
&Describe, |
@@ -195,6 +195,11 @@ |
&PixelOffsetForCharacter |
}; |
+InterfaceProxy* CreateFontProxy(Dispatcher* dispatcher, |
+ const void* target_interface) { |
+ return new PPB_Font_Proxy(dispatcher, target_interface); |
+} |
+ |
} // namespace |
PPB_Font_Proxy::PPB_Font_Proxy(Dispatcher* dispatcher, |
@@ -205,14 +210,18 @@ |
PPB_Font_Proxy::~PPB_Font_Proxy() { |
} |
-const void* PPB_Font_Proxy::GetSourceInterface() const { |
- return &ppb_font_interface; |
+// static |
+const InterfaceProxy::Info* PPB_Font_Proxy::GetInfo() { |
+ static const Info info = { |
+ &font_interface, |
+ PPB_FONT_DEV_INTERFACE, |
+ INTERFACE_ID_PPB_FONT, |
+ false, |
+ &CreateFontProxy, |
+ }; |
+ return &info; |
} |
-InterfaceID PPB_Font_Proxy::GetInterfaceId() const { |
- return INTERFACE_ID_PPB_FONT; |
-} |
- |
bool PPB_Font_Proxy::OnMessageReceived(const IPC::Message& msg) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(PPB_Font_Proxy, msg) |