| Index: ppapi/proxy/serialized_structs.h
|
| diff --git a/ppapi/proxy/serialized_structs.h b/ppapi/proxy/serialized_structs.h
|
| index dcb99817193ae1d850fdc02747fbbe4ffc3fb856..4844d6b979d447b4a46170d8c15a545f456536e1 100644
|
| --- a/ppapi/proxy/serialized_structs.h
|
| +++ b/ppapi/proxy/serialized_structs.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/logging.h"
|
| #include "base/shared_memory.h"
|
| #include "build/build_config.h"
|
| +#include "ppapi/c/dev/ppb_truetype_font_dev.h"
|
| #include "ppapi/c/pp_bool.h"
|
| #include "ppapi/c/pp_instance.h"
|
| #include "ppapi/c/pp_point.h"
|
| @@ -56,6 +57,30 @@ struct PPAPI_PROXY_EXPORT SerializedFontDescription {
|
| int32_t word_spacing;
|
| };
|
|
|
| +struct PPAPI_PROXY_EXPORT SerializedTrueTypeFontDesc {
|
| + SerializedTrueTypeFontDesc();
|
| + ~SerializedTrueTypeFontDesc();
|
| +
|
| + // Sets this to correspond to the contents of a PP_TrueTypeFontDesc_Dev.
|
| + //
|
| + // The reference count of the desc.family PP_Var will be unchanged and the
|
| + // caller is responsible for releasing it.
|
| + void SetFromPPTrueTypeFontDesc(const PP_TrueTypeFontDesc_Dev& desc);
|
| +
|
| + // Converts this to a PP_FontDescription_Dev.
|
| + //
|
| + // The desc.family PP_Var will have one reference assigned to it. The caller
|
| + // is responsible for releasing it.
|
| + void CopyToPPTrueTypeFontDesc(PP_TrueTypeFontDesc_Dev* desc) const;
|
| +
|
| + std::string family;
|
| + PP_TrueTypeFontFamily_Dev generic_family;
|
| + PP_TrueTypeFontStyle_Dev style;
|
| + PP_TrueTypeFontWeight_Dev weight;
|
| + PP_TrueTypeFontWidth_Dev width;
|
| + PP_TrueTypeFontCharset_Dev charset;
|
| +};
|
| +
|
| struct SerializedDirEntry {
|
| std::string name;
|
| bool is_dir;
|
|
|