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 "SkPdfMovieDictionary_autogen.h" | 8 #include "SkPdfMovieDictionary_autogen.h" |
2 | 9 |
3 | 10 |
4 #include "SkPdfNativeDoc.h" | 11 #include "SkPdfNativeDoc.h" |
5 SkPdfFileSpec SkPdfMovieDictionary::F(SkPdfNativeDoc* doc) { | 12 SkPdfFileSpec SkPdfMovieDictionary::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 required field, assert for known good pdf
s | 16 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
10 return SkPdfFileSpec(); | 17 return SkPdfFileSpec(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 if (doc) {ret = doc->resolveReference(ret);} | 70 if (doc) {ret = doc->resolveReference(ret);} |
64 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->getStream(); | 71 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->getStream(); |
65 // TODO(edisonn): warn about missing default value for optional fields | 72 // TODO(edisonn): warn about missing default value for optional fields |
66 return NULL; | 73 return NULL; |
67 } | 74 } |
68 | 75 |
69 bool SkPdfMovieDictionary::has_Poster() const { | 76 bool SkPdfMovieDictionary::has_Poster() const { |
70 return get("Poster", "") != NULL; | 77 return get("Poster", "") != NULL; |
71 } | 78 } |
72 | 79 |
OLD | NEW |