Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: webkit/glue/plugins/npapi_extension_thunk.cc

Issue 2794004: Add a font API to Pepper and implement on Linux based on agl's ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/npapi/bindings/npapi_extensions.h ('k') | webkit/glue/plugins/webplugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/npapi_extension_thunk.cc
===================================================================
--- webkit/glue/plugins/npapi_extension_thunk.cc (revision 49461)
+++ webkit/glue/plugins/npapi_extension_thunk.cc (working copy)
@@ -526,6 +526,14 @@
NPERR_NO_ERROR : NPERR_GENERIC_ERROR;
}
+static NPFontExtensions* GetFontExtensions(NPP id) {
+ scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id);
+ if (!plugin)
+ return NULL;
+
+ return plugin->webplugin()->delegate()->GetFontExtensions();
+}
+
namespace NPAPI {
NPError GetPepperExtensionsFunctions(void* value) {
@@ -537,6 +545,7 @@
&ChooseFile,
&GetWidgetExtensions,
&NPSetCursor,
+ &GetFontExtensions,
};
// Return a pointer to the canonical function table.
« no previous file with comments | « third_party/npapi/bindings/npapi_extensions.h ('k') | webkit/glue/plugins/webplugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698