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

Unified Diff: ppapi/thunk/ppb_font_thunk.cc

Issue 7044012: Support getting the font list in Pepper. This currently only works out of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
Index: ppapi/thunk/ppb_font_thunk.cc
===================================================================
--- ppapi/thunk/ppb_font_thunk.cc (revision 85766)
+++ ppapi/thunk/ppb_font_thunk.cc (working copy)
@@ -12,6 +12,13 @@
namespace {
+PP_Var GetFontFamilies(PP_Instance instance) {
+ EnterFunction<PPB_Font_FunctionAPI> enter(instance, true);
+ if (enter.failed())
+ return PP_MakeUndefined();
+ return enter.functions()->GetFontFamilies(instance);
+}
+
PP_Resource Create(PP_Instance instance,
const PP_FontDescription_Dev* description) {
EnterFunction<ResourceCreationAPI> enter(instance, true);
@@ -74,6 +81,7 @@
}
const PPB_Font_Dev g_ppb_font_thunk = {
+ &GetFontFamilies,
&Create,
&IsFont,
&Describe,

Powered by Google App Engine
This is Rietveld 408576698