summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStructureElementAccessDictionary_autogen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStructureElementAccessDictionary_autogen.cpp')
-rw-r--r--chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStructureElementAccessDictionary_autogen.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStructureElementAccessDictionary_autogen.cpp b/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStructureElementAccessDictionary_autogen.cpp
new file mode 100644
index 00000000000..471dd632d7c
--- /dev/null
+++ b/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStructureElementAccessDictionary_autogen.cpp
@@ -0,0 +1,33 @@
+/*
+ * 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 "SkPdfStructureElementAccessDictionary_autogen.h"
+#include "SkPdfNativeDoc.h"
+
+int64_t SkPdfStructureElementAccessDictionary::StructParent(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("StructParent", "");
+ 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 SkPdfStructureElementAccessDictionary::has_StructParent() const {
+ return get("StructParent", "") != NULL;
+}
+
+int64_t SkPdfStructureElementAccessDictionary::StructParents(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("StructParents", "");
+ 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 SkPdfStructureElementAccessDictionary::has_StructParents() const {
+ return get("StructParents", "") != NULL;
+}