bool SkPdfInteractiveFormDictionary::NeedAppearances(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("NeedAppearances", ""); if (doc) {ret = doc->resolveReference(ret);} if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue(); // TODO(edisonn): warn about missing default value for optional fields return false; }
bool SkPdfSoundActionDictionary::Mix(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("Mix", ""); if (doc) {ret = doc->resolveReference(ret);} if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue(); // TODO(edisonn): warn about missing default value for optional fields return false; }
bool SkPdfViewerPreferencesDictionary::DisplayDocTitle(SkPdfNativeDoc* doc) { SkPdfNativeObject* ret = get("DisplayDocTitle", ""); if (doc) {ret = doc->resolveReference(ret);} if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue(); // TODO(edisonn): warn about missing default value for optional fields return false; }