| #include "SkPdfTextFieldDictionary_autogen.h" |
| |
| |
| #include "SkPdfNativeDoc.h" |
| int64_t SkPdfTextFieldDictionary::MaxLen(SkPdfNativeDoc* doc) { |
| SkPdfNativeObject* ret = get("MaxLen", ""); |
| if (doc) {ret = doc->resolveReference(ret);} |
| if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->intValue(); |
| // TODO(edisonn): warn about missing default value for optional fields |
| return 0; |
| } |
| |
| bool SkPdfTextFieldDictionary::has_MaxLen() const { |
| return get("MaxLen", "") != NULL; |
| } |
| |