Index: experimental/PdfViewer/autogen/SkPdfWidgetAnnotationDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfWidgetAnnotationDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/autogen/SkPdfWidgetAnnotationDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,30 @@ |
+#include "SkPdfWidgetAnnotationDictionary_autogen.h" |
+ |
+std::string SkPdfWidgetAnnotationDictionary::Subtype() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+std::string SkPdfWidgetAnnotationDictionary::Contents() const { |
+ std::string ret; |
+ if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+std::string SkPdfWidgetAnnotationDictionary::H() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+SkPdfDictionary* SkPdfWidgetAnnotationDictionary::MK() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MK", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |