| Index: ppapi/thunk/ppb_truetype_font_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_truetype_font_thunk.cc b/ppapi/thunk/ppb_truetype_font_thunk.cc
|
| index 4b47afbe5a3f3e496706c944a1923b2fe77cdb67..ef3cdbd6bc2ed5b24328807b99a93052287899e9 100644
|
| --- a/ppapi/thunk/ppb_truetype_font_thunk.cc
|
| +++ b/ppapi/thunk/ppb_truetype_font_thunk.cc
|
| @@ -28,6 +28,18 @@ int32_t GetFontFamilies(PP_Instance instance,
|
| enter.functions()->GetFontFamilies(instance, output, enter.callback()));
|
| }
|
|
|
| +int32_t GetFontsInFamily(PP_Instance instance,
|
| + PP_Var family,
|
| + PP_ArrayOutput output,
|
| + PP_CompletionCallback callback) {
|
| + EnterInstanceAPI<PPB_TrueTypeFont_Singleton_API> enter(instance, callback);
|
| + if (enter.failed())
|
| + return PP_ERROR_FAILED;
|
| + return enter.SetResult(
|
| + enter.functions()->GetFontsInFamily(instance, family, output,
|
| + enter.callback()));
|
| +}
|
| +
|
| PP_Resource Create(PP_Instance instance,
|
| const PP_TrueTypeFontDesc_Dev* desc) {
|
| EnterResourceCreation enter(instance);
|
| @@ -36,7 +48,7 @@ PP_Resource Create(PP_Instance instance,
|
| return enter.functions()->CreateTrueTypeFont(instance, *desc);
|
| }
|
|
|
| -PP_Bool IsFont(PP_Resource resource) {
|
| +PP_Bool IsTrueTypeFont(PP_Resource resource) {
|
| EnterResource<PPB_TrueTypeFont_API> enter(resource, false);
|
| return PP_FromBool(enter.succeeded());
|
| }
|
| @@ -78,8 +90,9 @@ int32_t GetTable(PP_Resource font,
|
|
|
| const PPB_TrueTypeFont_Dev_0_1 g_ppb_truetypefont_thunk_0_1 = {
|
| &GetFontFamilies,
|
| + &GetFontsInFamily,
|
| &Create,
|
| - &IsFont,
|
| + &IsTrueTypeFont,
|
| &Describe,
|
| &GetTableTags,
|
| &GetTable
|
|
|