Index: experimental/PdfViewer/autogen/SkPdfObjectReferenceDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfObjectReferenceDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/autogen/SkPdfObjectReferenceDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,23 @@ |
+#include "SkPdfObjectReferenceDictionary_autogen.h" |
+ |
+std::string SkPdfObjectReferenceDictionary::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 ""; |
+} |
+ |
+SkPdfDictionary* SkPdfObjectReferenceDictionary::Pg() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfObject* SkPdfObjectReferenceDictionary::Obj() const { |
+ SkPdfObject* ret; |
+ if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Obj", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |