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

Unified Diff: experimental/PdfViewer/SkPdfType0FontDictionary_autogen.h

Issue 17294008: load font manually, for now Type0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfType0FontDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfType0FontDictionary_autogen.h (revision 9685)
+++ experimental/PdfViewer/SkPdfType0FontDictionary_autogen.h (working copy)
@@ -9,7 +9,7 @@
class SkPdfType0FontDictionary : public SkPdfFontDictionary {
public:
virtual SkPdfObjectType getType() const { return kType0FontDictionary_SkPdfObjectType;}
- virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType0FontDictionary_SkPdfObjectType + 1);}
+ virtual SkPdfObjectType getTypeEnd() const { return kType0FontDictionary__End_SkPdfObjectType;}
public:
virtual SkPdfType0FontDictionary* asType0FontDictionary() {return this;}
virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return this;}
@@ -18,17 +18,14 @@
virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL;}
- virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
- virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
-
virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return NULL;}
- virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
- virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
+ virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
+ virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return NULL;}
public:
private:
@@ -116,11 +113,11 @@
return ret->podofo()->HasStream();
}
- SkPdfStream getEncodingAsStream() const {
- SkPdfStream ret = SkPdfStream();
+ SkPdfStream* getEncodingAsStream() const {
+ SkPdfStream* ret = NULL;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
- return SkPdfStream();
+ return NULL;
}
/** (Required) An array specifying one or more fonts or CIDFonts that are
@@ -148,11 +145,11 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", NULL));
}
- SkPdfStream ToUnicode() const {
- SkPdfStream ret;
+ SkPdfStream* ToUnicode() const {
+ SkPdfStream* ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", &ret)) return ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
- return SkPdfStream();
+ return NULL;
}
};

Powered by Google App Engine
This is Rietveld 408576698