blob: a95a1677afc30a5dc981c5fb937ed0b5d0b04cce [file] [log] [blame]
/*
* Copyright 2013 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPdfMarkInformationDictionary_autogen.h"
#include "SkPdfNativeDoc.h"
bool SkPdfMarkInformationDictionary::Marked(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Marked", "");
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 SkPdfMarkInformationDictionary::has_Marked() const {
return get("Marked", "") != NULL;
}