Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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_CPP_PRIVATE_FLASH_FONT_H_ | |
| 6 #define PPAPI_CPP_PRIVATE_FLASH_FONT_H_ | |
| 7 | |
| 8 #include "ppapi/c/private/ppb_flash_font.h" | |
| 9 #include "ppapi/cpp/resource.h" | |
| 10 | |
| 11 namespace pp { | |
| 12 | |
| 13 class InstanceHandle; | |
| 14 | |
| 15 namespace flash { | |
| 16 | |
| 17 class Font { | |
|
brettw
2012/09/13 23:10:41
Can you just make this a regular resource called F
yzshen1
2012/10/08 18:38:00
Done.
| |
| 18 public: | |
| 19 // Returns true if the required interface is available. | |
| 20 static bool IsAvailable(); | |
| 21 | |
| 22 static Resource GetFontFileWithFallback( | |
| 23 const InstanceHandle& instance, | |
| 24 const PP_FontDescription_Dev* description, | |
| 25 PP_PrivateFontCharset charset); | |
| 26 | |
| 27 // |font_file| is a resource previously returned by GetFontFileWithFallback(). | |
| 28 static bool GetFontTableForPrivateFontFile(const Resource& font_file, | |
| 29 uint32_t table, | |
| 30 void* output, | |
| 31 uint32_t* output_length); | |
| 32 }; | |
| 33 | |
| 34 } // namespace flash | |
| 35 } // namespace pp | |
| 36 | |
| 37 #endif // PPAPI_CPP_PRIVATE_FLASH_FONT_H_ | |
| OLD | NEW |