SkPdfFDFFileAnnotationDictionary_autogen.cpp revision b74bdf024930e71ca1be8f874ed49dd0b31449b1
1#include "SkPdfFDFFileAnnotationDictionary_autogen.h" 2 3 4#include "SkPdfNativeDoc.h" 5int64_t SkPdfFDFFileAnnotationDictionary::Page(SkPdfNativeDoc* doc) { 6 SkPdfNativeObject* ret = get("Page", ""); 7 if (doc) {ret = doc->resolveReference(ret);} 8 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->intValue(); 9 // TODO(edisonn): warn about missing default value for optional fields 10 return 0; 11} 12 13bool SkPdfFDFFileAnnotationDictionary::has_Page() const { 14 return get("Page", "") != NULL; 15} 16