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

Side by Side Diff: ppapi/cpp/private/flash_font.h

Issue 10905227: Introduce PPB_Flash_Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698