| OLD | NEW |
| 1 #ifndef EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKNATIVEPARSEDPDF_H_ | 1 #ifndef EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKNATIVEPARSEDPDF_H_ |
| 2 #define EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKNATIVEPARSEDPDF_H_ | 2 #define EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKNATIVEPARSEDPDF_H_ |
| 3 | 3 |
| 4 #include "SkRect.h" | 4 #include "SkRect.h" |
| 5 #include "SkTDArray.h" | 5 #include "SkTDArray.h" |
| 6 | 6 |
| 7 class SkCanvas; | 7 class SkCanvas; |
| 8 | 8 |
| 9 class SkPdfAllocator; | 9 class SkPdfAllocator; |
| 10 class SkPdfMapper; | 10 class SkPdfMapper; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 SkPdfResourceDictionary* pageResources(int page); | 47 SkPdfResourceDictionary* pageResources(int page); |
| 48 SkRect MediaBox(int page); | 48 SkRect MediaBox(int page); |
| 49 SkPdfNativeTokenizer* tokenizerOfPage(int n, SkPdfAllocator* allocator); | 49 SkPdfNativeTokenizer* tokenizerOfPage(int n, SkPdfAllocator* allocator); |
| 50 | 50 |
| 51 SkPdfNativeTokenizer* tokenizerOfStream(SkPdfObject* stream, SkPdfAllocator*
allocator); | 51 SkPdfNativeTokenizer* tokenizerOfStream(SkPdfObject* stream, SkPdfAllocator*
allocator); |
| 52 SkPdfNativeTokenizer* tokenizerOfBuffer(const unsigned char* buffer, size_t
len, | 52 SkPdfNativeTokenizer* tokenizerOfBuffer(const unsigned char* buffer, size_t
len, |
| 53 SkPdfAllocator* allocator); | 53 SkPdfAllocator* allocator); |
| 54 | 54 |
| 55 size_t objects() const; | 55 size_t objects() const; |
| 56 SkPdfObject* object(int i); | 56 SkPdfObject* object(int i); |
| 57 SkPdfPageObjectDictionary* page(int page); |
| 57 | 58 |
| 58 const SkPdfMapper* mapper() const; | 59 const SkPdfMapper* mapper() const; |
| 59 SkPdfAllocator* allocator() const; | 60 SkPdfAllocator* allocator() const; |
| 60 | 61 |
| 61 SkPdfReal* createReal(double value) const; | 62 SkPdfReal* createReal(double value) const; |
| 62 SkPdfInteger* createInteger(int value) const; | 63 SkPdfInteger* createInteger(int value) const; |
| 63 // the string does not own the char* | 64 // the string does not own the char* |
| 64 SkPdfString* createString(const unsigned char* sz, size_t len) const; | 65 SkPdfString* createString(const unsigned char* sz, size_t len) const; |
| 65 | 66 |
| 66 SkPdfObject* resolveReference(const SkPdfObject* ref); | 67 SkPdfObject* resolveReference(const SkPdfObject* ref); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 95 const unsigned char* fFileContent; | 96 const unsigned char* fFileContent; |
| 96 size_t fContentLength; | 97 size_t fContentLength; |
| 97 const SkPdfObject* fRootCatalogRef; | 98 const SkPdfObject* fRootCatalogRef; |
| 98 SkPdfCatalogDictionary* fRootCatalog; | 99 SkPdfCatalogDictionary* fRootCatalog; |
| 99 | 100 |
| 100 mutable SkTDArray<PublicObjectEntry> fObjects; | 101 mutable SkTDArray<PublicObjectEntry> fObjects; |
| 101 SkTDArray<SkPdfPageObjectDictionary*> fPages; | 102 SkTDArray<SkPdfPageObjectDictionary*> fPages; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 #endif // EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKNATIVEPARSEDPDF_H_ | 105 #endif // EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKNATIVEPARSEDPDF_H_ |
| OLD | NEW |