Index: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfGoToActionDictionary_autogen.cpp |
diff --git a/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfGoToActionDictionary_autogen.cpp b/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfGoToActionDictionary_autogen.cpp |
deleted file mode 100644 |
index f35b061691d9260595307a08735260dd3695f5a5..0000000000000000000000000000000000000000 |
--- a/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfGoToActionDictionary_autogen.cpp |
+++ /dev/null |
@@ -1,67 +0,0 @@ |
-/* |
- * 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 "SkPdfGoToActionDictionary_autogen.h" |
-#include "SkPdfNativeDoc.h" |
- |
-SkString SkPdfGoToActionDictionary::S(SkPdfNativeDoc* doc) { |
- SkPdfNativeObject* ret = get("S", ""); |
- if (doc) {ret = doc->resolveReference(ret);} |
- if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2(); |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return SkString(); |
-} |
- |
-bool SkPdfGoToActionDictionary::has_S() const { |
- return get("S", "") != NULL; |
-} |
- |
-bool SkPdfGoToActionDictionary::isDAName(SkPdfNativeDoc* doc) { |
- SkPdfNativeObject* ret = get("D", ""); |
- if (doc) {ret = doc->resolveReference(ret);} |
- return ret != NULL && ret->isName(); |
-} |
- |
-SkString SkPdfGoToActionDictionary::getDAsName(SkPdfNativeDoc* doc) { |
- SkPdfNativeObject* ret = get("D", ""); |
- if (doc) {ret = doc->resolveReference(ret);} |
- if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2(); |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return SkString(); |
-} |
- |
-bool SkPdfGoToActionDictionary::isDAString(SkPdfNativeDoc* doc) { |
- SkPdfNativeObject* ret = get("D", ""); |
- if (doc) {ret = doc->resolveReference(ret);} |
- return ret != NULL && ret->isAnyString(); |
-} |
- |
-SkString SkPdfGoToActionDictionary::getDAsString(SkPdfNativeDoc* doc) { |
- SkPdfNativeObject* ret = get("D", ""); |
- if (doc) {ret = doc->resolveReference(ret);} |
- if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->stringValue2(); |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return SkString(); |
-} |
- |
-bool SkPdfGoToActionDictionary::isDAArray(SkPdfNativeDoc* doc) { |
- SkPdfNativeObject* ret = get("D", ""); |
- if (doc) {ret = doc->resolveReference(ret);} |
- return ret != NULL && ret->isArray(); |
-} |
- |
-SkPdfArray* SkPdfGoToActionDictionary::getDAsArray(SkPdfNativeDoc* doc) { |
- SkPdfNativeObject* ret = get("D", ""); |
- if (doc) {ret = doc->resolveReference(ret);} |
- if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfArray*)ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-bool SkPdfGoToActionDictionary::has_D() const { |
- return get("D", "") != NULL; |
-} |