OLD | NEW |
(Empty) | |
| 1 #include "SkPdfMovieActivationDictionary_autogen.h" |
| 2 |
| 3 |
| 4 #include "SkPdfNativeDoc.h" |
| 5 SkPdfNativeObject* SkPdfMovieActivationDictionary::Start(SkPdfNativeDoc* doc) { |
| 6 SkPdfNativeObject* ret = get("Start", ""); |
| 7 if (doc) {ret = doc->resolveReference(ret);} |
| 8 if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference()
)) return ret; |
| 9 // TODO(edisonn): warn about missing default value for optional fields |
| 10 return NULL; |
| 11 } |
| 12 |
| 13 bool SkPdfMovieActivationDictionary::has_Start() const { |
| 14 return get("Start", "") != NULL; |
| 15 } |
| 16 |
| 17 SkPdfNativeObject* SkPdfMovieActivationDictionary::Duration(SkPdfNativeDoc* doc)
{ |
| 18 SkPdfNativeObject* ret = get("Duration", ""); |
| 19 if (doc) {ret = doc->resolveReference(ret);} |
| 20 if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference()
)) return ret; |
| 21 // TODO(edisonn): warn about missing default value for optional fields |
| 22 return NULL; |
| 23 } |
| 24 |
| 25 bool SkPdfMovieActivationDictionary::has_Duration() const { |
| 26 return get("Duration", "") != NULL; |
| 27 } |
| 28 |
| 29 double SkPdfMovieActivationDictionary::Rate(SkPdfNativeDoc* doc) { |
| 30 SkPdfNativeObject* ret = get("Rate", ""); |
| 31 if (doc) {ret = doc->resolveReference(ret);} |
| 32 if ((ret != NULL && ret->isNumber()) || (doc == NULL && ret != NULL && ret->is
Reference())) return ret->numberValue(); |
| 33 // TODO(edisonn): warn about missing default value for optional fields |
| 34 return 0; |
| 35 } |
| 36 |
| 37 bool SkPdfMovieActivationDictionary::has_Rate() const { |
| 38 return get("Rate", "") != NULL; |
| 39 } |
| 40 |
| 41 double SkPdfMovieActivationDictionary::Volume(SkPdfNativeDoc* doc) { |
| 42 SkPdfNativeObject* ret = get("Volume", ""); |
| 43 if (doc) {ret = doc->resolveReference(ret);} |
| 44 if ((ret != NULL && ret->isNumber()) || (doc == NULL && ret != NULL && ret->is
Reference())) return ret->numberValue(); |
| 45 // TODO(edisonn): warn about missing default value for optional fields |
| 46 return 0; |
| 47 } |
| 48 |
| 49 bool SkPdfMovieActivationDictionary::has_Volume() const { |
| 50 return get("Volume", "") != NULL; |
| 51 } |
| 52 |
| 53 bool SkPdfMovieActivationDictionary::ShowControls(SkPdfNativeDoc* doc) { |
| 54 SkPdfNativeObject* ret = get("ShowControls", ""); |
| 55 if (doc) {ret = doc->resolveReference(ret);} |
| 56 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->boolValue(); |
| 57 // TODO(edisonn): warn about missing default value for optional fields |
| 58 return false; |
| 59 } |
| 60 |
| 61 bool SkPdfMovieActivationDictionary::has_ShowControls() const { |
| 62 return get("ShowControls", "") != NULL; |
| 63 } |
| 64 |
| 65 SkString SkPdfMovieActivationDictionary::Mode(SkPdfNativeDoc* doc) { |
| 66 SkPdfNativeObject* ret = get("Mode", ""); |
| 67 if (doc) {ret = doc->resolveReference(ret);} |
| 68 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe
ference())) return ret->nameValue2(); |
| 69 // TODO(edisonn): warn about missing default value for optional fields |
| 70 return SkString(); |
| 71 } |
| 72 |
| 73 bool SkPdfMovieActivationDictionary::has_Mode() const { |
| 74 return get("Mode", "") != NULL; |
| 75 } |
| 76 |
| 77 bool SkPdfMovieActivationDictionary::Synchronous(SkPdfNativeDoc* doc) { |
| 78 SkPdfNativeObject* ret = get("Synchronous", ""); |
| 79 if (doc) {ret = doc->resolveReference(ret);} |
| 80 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->boolValue(); |
| 81 // TODO(edisonn): warn about missing default value for optional fields |
| 82 return false; |
| 83 } |
| 84 |
| 85 bool SkPdfMovieActivationDictionary::has_Synchronous() const { |
| 86 return get("Synchronous", "") != NULL; |
| 87 } |
| 88 |
| 89 SkPdfArray* SkPdfMovieActivationDictionary::FWScale(SkPdfNativeDoc* doc) { |
| 90 SkPdfNativeObject* ret = get("FWScale", ""); |
| 91 if (doc) {ret = doc->resolveReference(ret);} |
| 92 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR
eference())) return (SkPdfArray*)ret; |
| 93 // TODO(edisonn): warn about missing default value for optional fields |
| 94 return NULL; |
| 95 } |
| 96 |
| 97 bool SkPdfMovieActivationDictionary::has_FWScale() const { |
| 98 return get("FWScale", "") != NULL; |
| 99 } |
| 100 |
| 101 SkPdfArray* SkPdfMovieActivationDictionary::FWPosition(SkPdfNativeDoc* doc) { |
| 102 SkPdfNativeObject* ret = get("FWPosition", ""); |
| 103 if (doc) {ret = doc->resolveReference(ret);} |
| 104 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR
eference())) return (SkPdfArray*)ret; |
| 105 // TODO(edisonn): warn about missing default value for optional fields |
| 106 return NULL; |
| 107 } |
| 108 |
| 109 bool SkPdfMovieActivationDictionary::has_FWPosition() const { |
| 110 return get("FWPosition", "") != NULL; |
| 111 } |
| 112 |
OLD | NEW |