| Index: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfApplicationDataDictionary_autogen.cpp
|
| ===================================================================
|
| --- experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfApplicationDataDictionary_autogen.cpp (revision 0)
|
| +++ experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfApplicationDataDictionary_autogen.cpp (revision 0)
|
| @@ -0,0 +1,28 @@
|
| +#include "SkPdfApplicationDataDictionary_autogen.h"
|
| +
|
| +
|
| +#include "SkPdfNativeDoc.h"
|
| +SkPdfDate SkPdfApplicationDataDictionary::LastModified(SkPdfNativeDoc* doc) {
|
| + SkPdfNativeObject* ret = get("LastModified", "");
|
| + if (doc) {ret = doc->resolveReference(ret);}
|
| + if ((ret != NULL && ret->isDate()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->dateValue();
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return SkPdfDate();
|
| +}
|
| +
|
| +bool SkPdfApplicationDataDictionary::has_LastModified() const {
|
| + return get("LastModified", "") != NULL;
|
| +}
|
| +
|
| +SkPdfNativeObject* SkPdfApplicationDataDictionary::Private(SkPdfNativeDoc* doc) {
|
| + SkPdfNativeObject* ret = get("Private", "");
|
| + if (doc) {ret = doc->resolveReference(ret);}
|
| + if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference())) return ret;
|
| + // TODO(edisonn): warn about missing default value for optional fields
|
| + return NULL;
|
| +}
|
| +
|
| +bool SkPdfApplicationDataDictionary::has_Private() const {
|
| + return get("Private", "") != NULL;
|
| +}
|
| +
|
|
|