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

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

Issue 59493011: Pdfviewer refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Move include/ to inc/ Created 7 years, 1 month 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdf_viewer_main.cpp ('k') | experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698