Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.h

Issue 21049009: pdfviewer: add doPage function, cet stream from Contents (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfRenderer.cpp ('k') | experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698