Home | History | Annotate | Download | only in thunk
      1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef PPAPI_THUNK_PPB_TRUETYPE_FONT_SINGLETON_API_H_
      6 #define PPAPI_THUNK_PPB_TRUETYPE_FONT_SINGLETON_API_H_
      7 
      8 #include "ppapi/c/pp_array_output.h"
      9 #include "ppapi/c/pp_completion_callback.h"
     10 #include "ppapi/c/pp_instance.h"
     11 #include "ppapi/c/pp_var.h"
     12 #include "ppapi/shared_impl/singleton_resource_id.h"
     13 #include "ppapi/shared_impl/tracked_callback.h"
     14 
     15 namespace ppapi {
     16 namespace thunk {
     17 
     18 class PPB_TrueTypeFont_Singleton_API {
     19  public:
     20   virtual ~PPB_TrueTypeFont_Singleton_API() {}
     21 
     22   virtual int32_t GetFontFamilies(
     23       PP_Instance instance,
     24       const PP_ArrayOutput& output,
     25       const scoped_refptr<TrackedCallback>& callback) = 0;
     26 
     27   virtual int32_t GetFontsInFamily(
     28       PP_Instance instance,
     29       PP_Var family,
     30       const PP_ArrayOutput& output,
     31       const scoped_refptr<TrackedCallback>& callback) = 0;
     32 
     33   static const SingletonResourceID kSingletonResourceID =
     34       TRUETYPE_FONT_SINGLETON_ID;
     35 };
     36 
     37 }  // namespace thunk
     38 }  // namespace ppapi
     39 
     40 #endif  // PPAPI_THUNK_PPB_TRUETYPE_FONT_SINGLETON_API_H_
     41