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

Unified Diff: experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (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/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h (revision 9765)
+++ experimental/PdfViewer/autogen/SkPdfEmbeddedFontStreamDictionary_autogen.h (working copy)
@@ -533,13 +533,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length1", "", NULL));
}
- long Length1() const {
- long ret;
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length1", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ long Length1() const;
/** (Required for Type 1 fonts) The length in bytes of the encrypted portion of the Type 1
* font program (see below) after it has been decoded using the filters specified by the
* stream's Filter entry.
@@ -548,13 +542,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length2", "", NULL));
}
- long Length2() const {
- long ret;
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length2", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ long Length2() const;
/** (Required for Type 1 fonts) The length in bytes of the fixed-content portion of the
* Type 1 font program (see below), after it has been decoded using the filters specified
* by the stream's Filter entry. If Length3 is 0, it indicates that the 512 zeros and clearto-
@@ -564,13 +552,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length3", "", NULL));
}
- long Length3() const {
- long ret;
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Length3", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ long Length3() const;
/** (Required if referenced from FontFile3; PDF 1.2) A name specifying the format of the
* embedded font program. The name must be Type1C for Type 1 compact fonts or CID-
* FontType0C for Type 0 compact CIDFonts. When additional font formats are added
@@ -580,13 +562,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL));
}
- std::string Subtype() const {
- std::string ret;
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return "";
- }
-
+ std::string Subtype() const;
/** (Optional; PDF 1.4) A metadata stream containing metadata for the embedded font
* program (see Section 9.2.2, "Metadata Streams").
**/
@@ -594,13 +570,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", NULL));
}
- SkPdfStream* Metadata() const {
- SkPdfStream* ret;
- if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfStream* Metadata() const;
};
#endif // __DEFINED__SkPdfEmbeddedFontStreamDictionary

Powered by Google App Engine
This is Rietveld 408576698