summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorvictorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 08:39:31 +0000
committervictorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 08:39:31 +0000
commitd437530bf98d8c62820a38d6e7ed643431326aa7 (patch)
tree48ec2f6feda8c0ad6a80c710029eaeddb610e304 /webkit
parente7bce03f29b3a8d470ebbc49f3fe0c674bc826a0 (diff)
downloadchromium_src-d437530bf98d8c62820a38d6e7ed643431326aa7.zip
chromium_src-d437530bf98d8c62820a38d6e7ed643431326aa7.tar.gz
chromium_src-d437530bf98d8c62820a38d6e7ed643431326aa7.tar.bz2
Refactor BrowserFont to new design
TEST=browser_tests,ppapi/example/font BUG= Review URL: https://chromiumcodereview.appspot.com/11316161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/plugins/ppapi/resource_creation_impl.cc13
-rw-r--r--webkit/plugins/ppapi/resource_creation_impl.h3
2 files changed, 0 insertions, 16 deletions
diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
index 1f6d904..e1f883e 100644
--- a/webkit/plugins/ppapi/resource_creation_impl.cc
+++ b/webkit/plugins/ppapi/resource_creation_impl.cc
@@ -6,7 +6,6 @@
#include "ppapi/c/pp_size.h"
#include "ppapi/shared_impl/ppb_audio_config_shared.h"
-#include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
#include "ppapi/shared_impl/ppb_input_event_shared.h"
#include "ppapi/shared_impl/ppb_resource_array_shared.h"
#include "ppapi/shared_impl/var.h"
@@ -77,18 +76,6 @@ PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) {
return (new PPB_Broker_Impl(instance))->GetReference();
}
-PP_Resource ResourceCreationImpl::CreateBrowserFont(
- PP_Instance instance,
- const PP_BrowserFont_Trusted_Description* description) {
- PluginInstance* plugin_instance =
- ResourceHelper::PPInstanceToPluginInstance(instance);
- if (!plugin_instance)
- return 0;
- return ::ppapi::PPB_BrowserFont_Trusted_Shared::Create(
- ::ppapi::OBJECT_IS_IMPL, instance, *description,
- plugin_instance->delegate()->GetPreferences());
-}
-
PP_Resource ResourceCreationImpl::CreateBuffer(PP_Instance instance,
uint32_t size) {
return PPB_Buffer_Impl::Create(instance, size);
diff --git a/webkit/plugins/ppapi/resource_creation_impl.h b/webkit/plugins/ppapi/resource_creation_impl.h
index 8805929..5a6c0c4 100644
--- a/webkit/plugins/ppapi/resource_creation_impl.h
+++ b/webkit/plugins/ppapi/resource_creation_impl.h
@@ -32,9 +32,6 @@ class WEBKIT_PLUGINS_EXPORT ResourceCreationImpl
uint32_t sample_frame_count) OVERRIDE;
virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE;
virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE;
- virtual PP_Resource CreateBrowserFont(
- PP_Instance instance,
- const PP_BrowserFont_Trusted_Description* description) OVERRIDE;
virtual PP_Resource CreateBuffer(PP_Instance instance,
uint32_t size) OVERRIDE;
virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE;