diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-09 17:06:09 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-09 17:06:09 +0000 |
commit | cb65f13f1259423dee5bd48536b31319c9c176fd (patch) | |
tree | c11b94c5363d0cba9a9b2b4d2edd15dd82c5a98f /ppapi/proxy/resource_creation_proxy.cc | |
parent | d11682d50a1dff1d0e4eac87b2c62e0ad5aa4449 (diff) | |
download | chromium_src-cb65f13f1259423dee5bd48536b31319c9c176fd.zip chromium_src-cb65f13f1259423dee5bd48536b31319c9c176fd.tar.gz chromium_src-cb65f13f1259423dee5bd48536b31319c9c176fd.tar.bz2 |
Introduce PPB_Flash_Font.
It is a subset of PPB_PDF and shares the implementation with some PPB_PDF methods. With this interface, Pepper Flash doesn't need to depend on PPB_PDF.
BUG=None
TEST=None
Review URL: https://codereview.chromium.org/10905227
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/resource_creation_proxy.cc')
-rw-r--r-- | ppapi/proxy/resource_creation_proxy.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ppapi/proxy/resource_creation_proxy.cc b/ppapi/proxy/resource_creation_proxy.cc index 78123a6..cb260d9 100644 --- a/ppapi/proxy/resource_creation_proxy.cc +++ b/ppapi/proxy/resource_creation_proxy.cc @@ -10,6 +10,7 @@ #include "ppapi/proxy/connection.h" #include "ppapi/proxy/file_chooser_resource.h" #include "ppapi/proxy/flash_device_id_resource.h" +#include "ppapi/proxy/flash_font_file_resource.h" #include "ppapi/proxy/plugin_dispatcher.h" #include "ppapi/proxy/plugin_globals.h" #include "ppapi/proxy/plugin_proxy_delegate.h" @@ -319,6 +320,14 @@ PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) { return (new FlashDeviceIDResource(GetConnection(), instance))->GetReference(); } +PP_Resource ResourceCreationProxy::CreateFlashFontFile( + PP_Instance instance, + const PP_FontDescription_Dev* description, + PP_PrivateFontCharset charset) { + return (new FlashFontFileResource( + GetConnection(), instance, description, charset))->GetReference(); +} + PP_Resource ResourceCreationProxy::CreateFlashMenu( PP_Instance instance, const PP_Flash_Menu* menu_data) { |