| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 #include "SkPdfTransparencyGroupDictionary_autogen.h" | 
|  | 2 | 
|  | 3 | 
|  | 4 #include "SkPdfNativeDoc.h" | 
|  | 5 SkString SkPdfTransparencyGroupDictionary::S(SkPdfNativeDoc* doc) { | 
|  | 6   SkPdfNativeObject* ret = get("S", ""); | 
|  | 7   if (doc) {ret = doc->resolveReference(ret);} | 
|  | 8   if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe
    ference())) return ret->nameValue2(); | 
|  | 9   // TODO(edisonn): warn about missing required field, assert for known good pdf
    s | 
|  | 10   return SkString(); | 
|  | 11 } | 
|  | 12 | 
|  | 13 bool SkPdfTransparencyGroupDictionary::has_S() const { | 
|  | 14   return get("S", "") != NULL; | 
|  | 15 } | 
|  | 16 | 
|  | 17 bool SkPdfTransparencyGroupDictionary::isCSAName(SkPdfNativeDoc* doc) { | 
|  | 18   SkPdfNativeObject* ret = get("CS", ""); | 
|  | 19   if (doc) {ret = doc->resolveReference(ret);} | 
|  | 20   return ret != NULL && ret->isName(); | 
|  | 21 } | 
|  | 22 | 
|  | 23 SkString SkPdfTransparencyGroupDictionary::getCSAsName(SkPdfNativeDoc* doc) { | 
|  | 24   SkPdfNativeObject* ret = get("CS", ""); | 
|  | 25   if (doc) {ret = doc->resolveReference(ret);} | 
|  | 26   if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe
    ference())) return ret->nameValue2(); | 
|  | 27   // TODO(edisonn): warn about missing default value for optional fields | 
|  | 28   return SkString(); | 
|  | 29 } | 
|  | 30 | 
|  | 31 bool SkPdfTransparencyGroupDictionary::isCSAArray(SkPdfNativeDoc* doc) { | 
|  | 32   SkPdfNativeObject* ret = get("CS", ""); | 
|  | 33   if (doc) {ret = doc->resolveReference(ret);} | 
|  | 34   return ret != NULL && ret->isArray(); | 
|  | 35 } | 
|  | 36 | 
|  | 37 SkPdfArray* SkPdfTransparencyGroupDictionary::getCSAsArray(SkPdfNativeDoc* doc) 
    { | 
|  | 38   SkPdfNativeObject* ret = get("CS", ""); | 
|  | 39   if (doc) {ret = doc->resolveReference(ret);} | 
|  | 40   if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR
    eference())) return (SkPdfArray*)ret; | 
|  | 41   // TODO(edisonn): warn about missing default value for optional fields | 
|  | 42   return NULL; | 
|  | 43 } | 
|  | 44 | 
|  | 45 bool SkPdfTransparencyGroupDictionary::has_CS() const { | 
|  | 46   return get("CS", "") != NULL; | 
|  | 47 } | 
|  | 48 | 
|  | 49 bool SkPdfTransparencyGroupDictionary::I(SkPdfNativeDoc* doc) { | 
|  | 50   SkPdfNativeObject* ret = get("I", ""); | 
|  | 51   if (doc) {ret = doc->resolveReference(ret);} | 
|  | 52   if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i
    sReference())) return ret->boolValue(); | 
|  | 53   // TODO(edisonn): warn about missing default value for optional fields | 
|  | 54   return false; | 
|  | 55 } | 
|  | 56 | 
|  | 57 bool SkPdfTransparencyGroupDictionary::has_I() const { | 
|  | 58   return get("I", "") != NULL; | 
|  | 59 } | 
|  | 60 | 
|  | 61 bool SkPdfTransparencyGroupDictionary::K(SkPdfNativeDoc* doc) { | 
|  | 62   SkPdfNativeObject* ret = get("K", ""); | 
|  | 63   if (doc) {ret = doc->resolveReference(ret);} | 
|  | 64   if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i
    sReference())) return ret->boolValue(); | 
|  | 65   // TODO(edisonn): warn about missing default value for optional fields | 
|  | 66   return false; | 
|  | 67 } | 
|  | 68 | 
|  | 69 bool SkPdfTransparencyGroupDictionary::has_K() const { | 
|  | 70   return get("K", "") != NULL; | 
|  | 71 } | 
|  | 72 | 
| OLD | NEW | 
|---|