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

Unified Diff: experimental/PdfViewer/autogen/SkPdfFileTrailerDictionary_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/SkPdfFileTrailerDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/autogen/SkPdfFileTrailerDictionary_autogen.h (revision 9765)
+++ experimental/PdfViewer/autogen/SkPdfFileTrailerDictionary_autogen.h (working copy)
@@ -533,13 +533,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", NULL));
}
- long Size() const {
- long ret;
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ long Size() const;
/** (Present only if the file has more than one cross-reference section) The byte offset from
* the beginning of the file to the beginning of the previous cross-reference section.
**/
@@ -547,13 +541,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prev", "", NULL));
}
- long Prev() const {
- long ret;
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prev", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ long Prev() const;
/** (Required; must be an indirect reference) The catalog dictionary for the PDF docu-
* ment contained in the file (see Section 3.6.1, "Document Catalog").
**/
@@ -561,13 +549,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Root", "", NULL));
}
- SkPdfDictionary* Root() const {
- SkPdfDictionary* ret;
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Root", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfDictionary* Root() const;
/** (Required if document is encrypted; PDF 1.1) The document's encryption dictionary
* (see Section 3.5, "Encryption").
**/
@@ -575,13 +557,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encrypt", "", NULL));
}
- SkPdfDictionary* Encrypt() const {
- SkPdfDictionary* ret;
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encrypt", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfDictionary* Encrypt() const;
/** (Optional; must be an indirect reference) The document's information dictionary
* (see Section 9.2.1, "Document Information Dictionary").
**/
@@ -589,13 +565,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", NULL));
}
- SkPdfDictionary* Info() const {
- SkPdfDictionary* ret;
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfDictionary* Info() const;
/** (Optional; PDF 1.1) An array of two strings constituting a file identifier (see Section
* 9.3, "File Identifiers") for the file.
**/
@@ -603,13 +573,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL));
}
- SkPdfArray* ID() const {
- SkPdfArray* ret;
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfArray* ID() const;
};
#endif // __DEFINED__SkPdfFileTrailerDictionary

Powered by Google App Engine
This is Rietveld 408576698