| OLD | NEW |
| 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 |
| 1 #include "SkPdfFDFDictionary_autogen.h" | 8 #include "SkPdfFDFDictionary_autogen.h" |
| 2 | 9 |
| 3 | 10 |
| 4 #include "SkPdfNativeDoc.h" | 11 #include "SkPdfNativeDoc.h" |
| 5 SkPdfFileSpec SkPdfFDFDictionary::F(SkPdfNativeDoc* doc) { | 12 SkPdfFileSpec SkPdfFDFDictionary::F(SkPdfNativeDoc* doc) { |
| 6 SkPdfNativeObject* ret = get("F", ""); | 13 SkPdfNativeObject* ret = get("F", ""); |
| 7 if (doc) {ret = doc->resolveReference(ret);} | 14 if (doc) {ret = doc->resolveReference(ret);} |
| 8 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference(
))) return ret->fileSpecValue(); | 15 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference(
))) return ret->fileSpecValue(); |
| 9 // TODO(edisonn): warn about missing default value for optional fields | 16 // TODO(edisonn): warn about missing default value for optional fields |
| 10 return SkPdfFileSpec(); | 17 return SkPdfFileSpec(); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 if (doc) {ret = doc->resolveReference(ret);} | 134 if (doc) {ret = doc->resolveReference(ret);} |
| 128 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; | 135 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
->isReference())) return (SkPdfDictionary*)ret; |
| 129 // TODO(edisonn): warn about missing default value for optional fields | 136 // TODO(edisonn): warn about missing default value for optional fields |
| 130 return NULL; | 137 return NULL; |
| 131 } | 138 } |
| 132 | 139 |
| 133 bool SkPdfFDFDictionary::has_JavaScript() const { | 140 bool SkPdfFDFDictionary::has_JavaScript() const { |
| 134 return get("JavaScript", "") != NULL; | 141 return get("JavaScript", "") != NULL; |
| 135 } | 142 } |
| 136 | 143 |
| OLD | NEW |