OLD | NEW |
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // Used to break a recursive reference to itself. | 62 // Used to break a recursive reference to itself. |
63 bool fIsReferenceResolved; | 63 bool fIsReferenceResolved; |
64 }; | 64 }; |
65 | 65 |
66 public: | 66 public: |
67 // TODO(edisonn) should be deprecated | 67 // TODO(edisonn) should be deprecated |
68 SkPdfNativeDoc(const char* path); | 68 SkPdfNativeDoc(const char* path); |
69 | 69 |
70 // TODO(edisonn) should be deprecated | 70 // TODO(edisonn) should be deprecated |
| 71 // FIXME: Untested. |
71 SkPdfNativeDoc(SkStream* stream); | 72 SkPdfNativeDoc(SkStream* stream); |
72 | 73 |
73 ~SkPdfNativeDoc(); | 74 ~SkPdfNativeDoc(); |
74 | 75 |
75 // returns the number of pages in the pdf | 76 // returns the number of pages in the pdf |
76 int pages() const; | 77 int pages() const; |
77 | 78 |
78 // returns the page resources | 79 // returns the page resources |
79 SkPdfResourceDictionary* pageResources(int page); | 80 SkPdfResourceDictionary* pageResources(int page); |
80 | 81 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 const unsigned char* fFileContent; | 164 const unsigned char* fFileContent; |
164 size_t fContentLength; | 165 size_t fContentLength; |
165 SkPdfNativeObject* fRootCatalogRef; | 166 SkPdfNativeObject* fRootCatalogRef; |
166 SkPdfCatalogDictionary* fRootCatalog; | 167 SkPdfCatalogDictionary* fRootCatalog; |
167 | 168 |
168 mutable SkTDArray<PublicObjectEntry> fObjects; | 169 mutable SkTDArray<PublicObjectEntry> fObjects; |
169 SkTDArray<SkPdfPageObjectDictionary*> fPages; | 170 SkTDArray<SkPdfPageObjectDictionary*> fPages; |
170 }; | 171 }; |
171 | 172 |
172 #endif // SkPdfNativeDoc_DEFINED | 173 #endif // SkPdfNativeDoc_DEFINED |
OLD | NEW |