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 "SkPdfNameDictionary_autogen.h" | 8 #include "SkPdfNameDictionary_autogen.h" |
2 | 9 |
3 | 10 |
4 #include "SkPdfNativeDoc.h" | 11 #include "SkPdfNativeDoc.h" |
5 bool SkPdfNameDictionary::isDestsAName(SkPdfNativeDoc* doc) { | 12 bool SkPdfNameDictionary::isDestsAName(SkPdfNativeDoc* doc) { |
6 SkPdfNativeObject* ret = get("Dests", ""); | 13 SkPdfNativeObject* ret = get("Dests", ""); |
7 if (doc) {ret = doc->resolveReference(ret);} | 14 if (doc) {ret = doc->resolveReference(ret);} |
8 return ret != NULL && ret->isName(); | 15 return ret != NULL && ret->isName(); |
9 } | 16 } |
10 | 17 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 if (doc) {ret = doc->resolveReference(ret);} | 258 if (doc) {ret = doc->resolveReference(ret);} |
252 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference(
))) return ret->treeValue(); | 259 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference(
))) return ret->treeValue(); |
253 // TODO(edisonn): warn about missing default value for optional fields | 260 // TODO(edisonn): warn about missing default value for optional fields |
254 return SkPdfTree(); | 261 return SkPdfTree(); |
255 } | 262 } |
256 | 263 |
257 bool SkPdfNameDictionary::has_EmbeddedFiles() const { | 264 bool SkPdfNameDictionary::has_EmbeddedFiles() const { |
258 return get("EmbeddedFiles", "") != NULL; | 265 return get("EmbeddedFiles", "") != NULL; |
259 } | 266 } |
260 | 267 |
OLD | NEW |