| 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 "SkPdfMapper_autogen.h" | 8 #include "SkPdfMapper_autogen.h" |
| 2 #include "SkPdfUtils.h" | 9 #include "SkPdfUtils.h" |
| 3 #include "SkPdfNativeObject.h" | 10 #include "SkPdfNativeObject.h" |
| 4 | 11 |
| 5 SkPdfNativeObjectType SkPdfMapper::mapDictionary(const SkPdfNativeObject* in) co
nst { | 12 SkPdfNativeObjectType SkPdfMapper::mapDictionary(const SkPdfNativeObject* in) co
nst { |
| 6 if (in == NULL || !isDictionary(in)) return kNone_SkPdfNativeObjectType; | 13 if (in == NULL || !isDictionary(in)) return kNone_SkPdfNativeObjectType; |
| 7 | 14 |
| 8 SkPdfNativeObjectType ret; | 15 SkPdfNativeObjectType ret; |
| 9 if (kNone_SkPdfNativeObjectType != (ret = mapALinkAnnotationDictionary(in))) r
eturn ret; | 16 if (kNone_SkPdfNativeObjectType != (ret = mapALinkAnnotationDictionary(in))) r
eturn ret; |
| 10 if (kNone_SkPdfNativeObjectType != (ret = mapActionDictionary(in))) return ret
; | 17 if (kNone_SkPdfNativeObjectType != (ret = mapActionDictionary(in))) return ret
; |
| (...skipping 4608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4619 *data = (SkPdfMultiMasterFontDictionary*)value; | 4626 *data = (SkPdfMultiMasterFontDictionary*)value; |
| 4620 return true; | 4627 return true; |
| 4621 } | 4628 } |
| 4622 | 4629 |
| 4623 bool SkPdfMapper::SkPdfMultiMasterFontDictionaryFromDictionary(const SkPdfNative
Object* dict, const char* key, const char* abr, SkPdfMultiMasterFontDictionary**
data) const { | 4630 bool SkPdfMapper::SkPdfMultiMasterFontDictionaryFromDictionary(const SkPdfNative
Object* dict, const char* key, const char* abr, SkPdfMultiMasterFontDictionary**
data) const { |
| 4624 if (SkPdfMultiMasterFontDictionaryFromDictionary(dict, key, data)) return true
; | 4631 if (SkPdfMultiMasterFontDictionaryFromDictionary(dict, key, data)) return true
; |
| 4625 if (abr == NULL || *abr == '\0') return false; | 4632 if (abr == NULL || *abr == '\0') return false; |
| 4626 return SkPdfMultiMasterFontDictionaryFromDictionary(dict, abr, data); | 4633 return SkPdfMultiMasterFontDictionaryFromDictionary(dict, abr, data); |
| 4627 } | 4634 } |
| 4628 | 4635 |
| OLD | NEW |