Index: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfDeviceNColorSpaceDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfDeviceNColorSpaceDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfDeviceNColorSpaceDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,16 @@ |
+#include "SkPdfDeviceNColorSpaceDictionary_autogen.h" |
+ |
+ |
+#include "SkPdfNativeDoc.h" |
+SkPdfDictionary* SkPdfDeviceNColorSpaceDictionary::Colorants(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("Colorants", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret; |
+ // TODO(edisonn): warn about missing default value for optional fields |
+ return NULL; |
+} |
+ |
+bool SkPdfDeviceNColorSpaceDictionary::has_Colorants() const { |
+ return get("Colorants", "") != NULL; |
+} |
+ |