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

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

Issue 100323003: Remove SkPdfNativeDoc::tokenizerOfStream. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPdfNativeDoc_DEFINED 8 #ifndef SkPdfNativeDoc_DEFINED
9 #define SkPdfNativeDoc_DEFINED 9 #define SkPdfNativeDoc_DEFINED
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // returns the number of pages in the pdf 76 // returns the number of pages in the pdf
77 int pages() const; 77 int pages() const;
78 78
79 // returns the page resources 79 // returns the page resources
80 SkPdfResourceDictionary* pageResources(int page); 80 SkPdfResourceDictionary* pageResources(int page);
81 81
82 // returns the page's mediabox i points - the page physical boundaries. 82 // returns the page's mediabox i points - the page physical boundaries.
83 SkRect MediaBox(int page); 83 SkRect MediaBox(int page);
84 84
85 // Returns a tokenizer of a pdf stream. The passed allocator will be used to allocate objects
86 // that are parsed. It should be destroyed after the tokenizer.
87 SkPdfNativeTokenizer* tokenizerOfStream(SkPdfNativeObject* stream, SkPdfAllo cator* allocator);
88
89 //returns objects that are references and can be queried. 85 //returns objects that are references and can be queried.
90 size_t objects() const; 86 size_t objects() const;
91 87
92 // returns an object. 88 // returns an object.
93 // TODO(edisonn): pdf updates are not supported yet. 89 // TODO(edisonn): pdf updates are not supported yet.
94 // add generation parameter to support page updates. 90 // add generation parameter to support page updates.
95 SkPdfNativeObject* object(int id /*, int generation*/ ); 91 SkPdfNativeObject* object(int id /*, int generation*/ );
96 92
97 // returns the object that holds all the page informnation 93 // returns the object that holds all the page informnation
98 // TODO(edisonn): pdf updates are not supported yet. 94 // TODO(edisonn): pdf updates are not supported yet.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const unsigned char* fFileContent; 150 const unsigned char* fFileContent;
155 size_t fContentLength; 151 size_t fContentLength;
156 SkPdfNativeObject* fRootCatalogRef; 152 SkPdfNativeObject* fRootCatalogRef;
157 SkPdfCatalogDictionary* fRootCatalog; 153 SkPdfCatalogDictionary* fRootCatalog;
158 154
159 mutable SkTDArray<PublicObjectEntry> fObjects; 155 mutable SkTDArray<PublicObjectEntry> fObjects;
160 SkTDArray<SkPdfPageObjectDictionary*> fPages; 156 SkTDArray<SkPdfPageObjectDictionary*> fPages;
161 }; 157 };
162 158
163 #endif // SkPdfNativeDoc_DEFINED 159 #endif // SkPdfNativeDoc_DEFINED
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfFont.cpp ('k') | experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698