diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 20:30:38 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 20:30:38 +0000 |
commit | e2faa004dae6837589803b8e0c6b896aa56e64bb (patch) | |
tree | 466f6c29b28351b1022690c07e0501d8aa633738 /webkit/glue/plugins/ppb_private.h | |
parent | 4b3c9a8281c37fc267e5aaef316d4155db118f4e (diff) | |
download | chromium_src-e2faa004dae6837589803b8e0c6b896aa56e64bb.zip chromium_src-e2faa004dae6837589803b8e0c6b896aa56e64bb.tar.gz chromium_src-e2faa004dae6837589803b8e0c6b896aa56e64bb.tar.bz2 |
Revert 54173 - Hook up the new font API to WebKit. This moves the existing GetFontTable API to
the private font interface.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3044029
TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/3052024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/ppb_private.h')
-rw-r--r-- | webkit/glue/plugins/ppb_private.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/webkit/glue/plugins/ppb_private.h b/webkit/glue/plugins/ppb_private.h index 24831c1..a0956f0 100644 --- a/webkit/glue/plugins/ppb_private.h +++ b/webkit/glue/plugins/ppb_private.h @@ -5,7 +5,6 @@ #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ -#include "third_party/ppapi/c/pp_module.h" #include "third_party/ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB_Private;1" @@ -14,64 +13,9 @@ typedef enum _pp_ResourceString { PP_RESOURCESTRING_PDFGETPASSWORD = 0, } PP_ResourceString; -typedef enum _pp_PrivateFontPitch { - PP_PRIVATEFONTPITCH_DEFAULT = 0, - PP_PRIVATEFONTPITCH_FIXED = 1 -} PP_PrivateFontPitch; - -typedef enum _pp_PrivateFontFamily { - PP_PRIVATEFONTFAMILY_DEFAULT = 0, - PP_PRIVATEFONTFAMILY_ROMAN = 1, - PP_PRIVATEFONTFAMILY_SCRIPT = 2 -} PP_PrivateFontFamily; - -typedef enum _pp_PrivateFontCharset { - PP_PRIVATEFONTCHARSET_ANSI = 0, - PP_PRIVATEFONTCHARSET_DEFAULT = 1, - PP_PRIVATEFONTCHARSET_SYMBOL = 2, - PP_PRIVATEFONTCHARSET_MAC = 77, - PP_PRIVATEFONTCHARSET_SHIFTJIS = 128, - PP_PRIVATEFONTCHARSET_HANGUL = 129, - PP_PRIVATEFONTCHARSET_JOHAB = 130, - PP_PRIVATEFONTCHARSET_GB2312 =134, - PP_PRIVATEFONTCHARSET_CHINESEBIG5 = 136, - PP_PRIVATEFONTCHARSET_GREEK = 161, - PP_PRIVATEFONTCHARSET_TURKISH = 162, - PP_PRIVATEFONTCHARSET_VIETNAMESE = 163, - PP_PRIVATEFONTCHARSET_HEBREW = 177, - PP_PRIVATEFONTCHARSET_ARABIC = 178, - PP_PRIVATEFONTCHARSET_BALTIC = 186, - PP_PRIVATEFONTCHARSET_RUSSIAN = 204, - PP_PRIVATEFONTCHARSET_THAI = 222, - PP_PRIVATEFONTCHARSET_EASTEUROPE = 238, - PP_PRIVATEFONTCHARSET_OEM = 255 -} PP_PrivateFontCharset; - -typedef struct _pp_PrivateFontFileDescription { - const char* face; - uint32_t weight; - bool italic; - PP_PrivateFontPitch pitch; - PP_PrivateFontFamily family; - PP_PrivateFontCharset charset; -} PP_PrivateFontFileDescription; - typedef struct _ppb_Private { // Returns a localized string. PP_Var (*GetLocalizedString)(PP_ResourceString string_id); - - // Returns a resource identifying a font file corresponding to the given font - // request after applying the browser-specific fallback. Linux only. - PP_Resource (*GetFontFileWithFallback)( - PP_Module module, - const PP_PrivateFontFileDescription* description); - - // Given a resource previously returned by GetFontFileWithFallback, returns - // a pointer to the requested font table. Linux only. - bool (*GetFontTableForPrivateFontFile)(PP_Resource font_file, - uint32_t table, - void* output, - uint32_t* output_length); } PPB_Private; #endif // WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ |