diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-16 18:15:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-16 18:15:52 +0000 |
commit | 0bd753681a82634f322d4867b19148474c25566b (patch) | |
tree | 2f96cb4494c075ddee5a3e42e6b41c096a5357a9 /ppapi/proxy/ppb_pdf_proxy.cc | |
parent | d1d0afe664ff43825a4585f88ee8ce412eab0194 (diff) | |
download | chromium_src-0bd753681a82634f322d4867b19148474c25566b.zip chromium_src-0bd753681a82634f322d4867b19148474c25566b.tar.gz chromium_src-0bd753681a82634f322d4867b19148474c25566b.tar.bz2 |
Move the Pepper implementation from webkit/glue/plugins/pepper_* to
webkit/plugins/ppapi/*. This renamed the files and interface implementation
classes from foo.cc/Foo to ppb_foo_impl/PPB_Foo_Impl to match the proxy
ppb_foo_proxy/PPB_Foo_Proxy.
This moves plugin_switches.* from webkit/glue/plugins to webkit/plugins.
Review URL: http://codereview.chromium.org/5828003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_pdf_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_pdf_proxy.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ppapi/proxy/ppb_pdf_proxy.cc b/ppapi/proxy/ppb_pdf_proxy.cc index 580c6b0..0ba638e 100644 --- a/ppapi/proxy/ppb_pdf_proxy.cc +++ b/ppapi/proxy/ppb_pdf_proxy.cc @@ -14,7 +14,7 @@ #include "ppapi/proxy/plugin_dispatcher.h" #include "ppapi/proxy/plugin_resource.h" #include "ppapi/proxy/ppapi_messages.h" -#include "webkit/glue/plugins/ppb_private.h" +#include "webkit/plugins/ppapi/ppb_pdf.h" namespace pp { namespace proxy { @@ -65,7 +65,7 @@ PP_Resource GetFontFileWithFallback( desc.SetFromPPFontDescription(dispatcher, *description, true); PP_Resource result = 0; - dispatcher->Send(new PpapiHostMsg_PPBPdf_GetFontFileWithFallback( + dispatcher->Send(new PpapiHostMsg_PPBPDF_GetFontFileWithFallback( INTERFACE_ID_PPB_PDF, module_id, desc, charset, &result)); if (!result) return 0; @@ -87,7 +87,7 @@ bool GetFontTableForPrivateFontFile(PP_Resource font_file, if (!contents) { std::string deserialized; PluginDispatcher::Get()->Send( - new PpapiHostMsg_PPBPdf_GetFontTableForPrivateFontFile( + new PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile( INTERFACE_ID_PPB_PDF, font_file, table, &deserialized)); if (deserialized.empty()) return false; @@ -100,7 +100,7 @@ bool GetFontTableForPrivateFontFile(PP_Resource font_file, return true; } -const PPB_Private ppb_private = { +const PPB_PDF ppb_pdf = { NULL, // &GetLocalizedString, NULL, // &GetResourceImage, &GetFontFileWithFallback, @@ -109,33 +109,33 @@ const PPB_Private ppb_private = { } // namespace -PPB_Pdf_Proxy::PPB_Pdf_Proxy(Dispatcher* dispatcher, +PPB_PDF_Proxy::PPB_PDF_Proxy(Dispatcher* dispatcher, const void* target_interface) : InterfaceProxy(dispatcher, target_interface) { } -PPB_Pdf_Proxy::~PPB_Pdf_Proxy() { +PPB_PDF_Proxy::~PPB_PDF_Proxy() { } -const void* PPB_Pdf_Proxy::GetSourceInterface() const { - return &ppb_private; +const void* PPB_PDF_Proxy::GetSourceInterface() const { + return &ppb_pdf; } -InterfaceID PPB_Pdf_Proxy::GetInterfaceId() const { +InterfaceID PPB_PDF_Proxy::GetInterfaceId() const { return INTERFACE_ID_PPB_PDF; } -void PPB_Pdf_Proxy::OnMessageReceived(const IPC::Message& msg) { - IPC_BEGIN_MESSAGE_MAP(PPB_Pdf_Proxy, msg) - IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBPdf_GetFontFileWithFallback, +void PPB_PDF_Proxy::OnMessageReceived(const IPC::Message& msg) { + IPC_BEGIN_MESSAGE_MAP(PPB_PDF_Proxy, msg) + IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBPDF_GetFontFileWithFallback, OnMsgGetFontFileWithFallback) - IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBPdf_GetFontTableForPrivateFontFile, + IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, OnMsgGetFontTableForPrivateFontFile) IPC_END_MESSAGE_MAP() // TODO(brettw): handle bad messages! } -void PPB_Pdf_Proxy::OnMsgGetFontFileWithFallback( +void PPB_PDF_Proxy::OnMsgGetFontFileWithFallback( PP_Module module, const SerializedFontDescription& in_desc, int32_t charset, @@ -146,7 +146,7 @@ void PPB_Pdf_Proxy::OnMsgGetFontFileWithFallback( static_cast<PP_PrivateFontCharset>(charset)); } -void PPB_Pdf_Proxy::OnMsgGetFontTableForPrivateFontFile(PP_Resource font_file, +void PPB_PDF_Proxy::OnMsgGetFontTableForPrivateFontFile(PP_Resource font_file, uint32_t table, std::string* result) { // TODO(brettw): It would be nice not to copy here. At least on Linux, |