1 /*
2  * Copyright 2013 Google Inc.
3 
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "SkPdfMarkInformationDictionary_autogen.h"
9 #include "SkPdfNativeDoc.h"
10 
Marked(SkPdfNativeDoc * doc)11 bool SkPdfMarkInformationDictionary::Marked(SkPdfNativeDoc* doc) {
12   SkPdfNativeObject* ret = get("Marked", "");
13   if (doc) {ret = doc->resolveReference(ret);}
14   if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
15   // TODO(edisonn): warn about missing default value for optional fields
16   return false;
17 }
18 
has_Marked() const19 bool SkPdfMarkInformationDictionary::has_Marked() const {
20   return get("Marked", "") != NULL;
21 }
22