| OLD | NEW | 
| (Empty) |  | 
 |   1 #include "SkPdfVariableTextFieldDictionary_autogen.h" | 
 |   2  | 
 |   3  | 
 |   4 #include "SkPdfNativeDoc.h" | 
 |   5 SkPdfDictionary* SkPdfVariableTextFieldDictionary::DR(SkPdfNativeDoc* doc) { | 
 |   6   SkPdfNativeObject* ret = get("DR", ""); | 
 |   7   if (doc) {ret = doc->resolveReference(ret);} | 
 |   8   if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret
    ->isReference())) return (SkPdfDictionary*)ret; | 
 |   9   // TODO(edisonn): warn about missing required field, assert for known good pdf
    s | 
 |  10   return NULL; | 
 |  11 } | 
 |  12  | 
 |  13 bool SkPdfVariableTextFieldDictionary::has_DR() const { | 
 |  14   return get("DR", "") != NULL; | 
 |  15 } | 
 |  16  | 
 |  17 SkString SkPdfVariableTextFieldDictionary::DA(SkPdfNativeDoc* doc) { | 
 |  18   SkPdfNativeObject* ret = get("DA", ""); | 
 |  19   if (doc) {ret = doc->resolveReference(ret);} | 
 |  20   if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret-
    >isReference())) return ret->stringValue2(); | 
 |  21   // TODO(edisonn): warn about missing required field, assert for known good pdf
    s | 
 |  22   return SkString(); | 
 |  23 } | 
 |  24  | 
 |  25 bool SkPdfVariableTextFieldDictionary::has_DA() const { | 
 |  26   return get("DA", "") != NULL; | 
 |  27 } | 
 |  28  | 
 |  29 int64_t SkPdfVariableTextFieldDictionary::Q(SkPdfNativeDoc* doc) { | 
 |  30   SkPdfNativeObject* ret = get("Q", ""); | 
 |  31   if (doc) {ret = doc->resolveReference(ret);} | 
 |  32   if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
    sReference())) return ret->intValue(); | 
 |  33   // TODO(edisonn): warn about missing default value for optional fields | 
 |  34   return 0; | 
 |  35 } | 
 |  36  | 
 |  37 bool SkPdfVariableTextFieldDictionary::has_Q() const { | 
 |  38   return get("Q", "") != NULL; | 
 |  39 } | 
 |  40  | 
| OLD | NEW |