Index: experimental/PdfViewer/autogen/SkPdfArtifactsDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfArtifactsDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/autogen/SkPdfArtifactsDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,23 @@ |
+#include "SkPdfArtifactsDictionary_autogen.h" |
+ |
+std::string SkPdfArtifactsDictionary::Type() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+SkRect* SkPdfArtifactsDictionary::BBox() const { |
+ SkRect* ret; |
+ if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfArray* SkPdfArtifactsDictionary::Attached() const { |
+ SkPdfArray* ret; |
+ if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Attached", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |