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

Unified Diff: experimental/PdfViewer/pdfparser/podofo/SkPdfPodofoTokenizer.h

Issue 18518005: RIP podofo (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | experimental/PdfViewer/pdfparser/podofo/SkPdfPodofoTokenizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/pdfparser/podofo/SkPdfPodofoTokenizer.h
===================================================================
--- experimental/PdfViewer/pdfparser/podofo/SkPdfPodofoTokenizer.h (revision 9961)
+++ experimental/PdfViewer/pdfparser/podofo/SkPdfPodofoTokenizer.h (working copy)
@@ -1,54 +0,0 @@
-#ifndef EXPERIMENTAL_PDFVIEWER_PDFPARSER_PODOFO_SKPDFPODOFOTOKENIZER_H_
-#define EXPERIMENTAL_PDFVIEWER_PDFPARSER_PODOFO_SKPDFPODOFOTOKENIZER_H_
-
-#include "stddef.h"
-
-class SkPdfObject;
-class SkPdfMapper;
-class SkPodofoParsedPDF;
-
-namespace PoDoFo {
-class PdfMemDocument;
-class PdfContentsTokenizer;
-}
-
-enum SkPdfTokenType {
- kKeyword_TokenType,
- kObject_TokenType,
- kImageData_TokenType, // TODO(edisonn): inline images seem to work without it
-};
-
-struct PdfToken {
- const char* fKeyword;
- SkPdfObject* fObject;
- SkPdfTokenType fType;
-
- PdfToken() : fKeyword(NULL), fObject(NULL) {}
-};
-
-class SkPdfPodofoTokenizer {
-public:
- SkPdfPodofoTokenizer(const SkPodofoParsedPDF* parser, PoDoFo::PdfContentsTokenizer* tokenizer);
- SkPdfPodofoTokenizer(const SkPdfObject* objWithStream);
- SkPdfPodofoTokenizer(const char* buffer, int len);
-
- virtual ~SkPdfPodofoTokenizer();
-
- bool readToken(PdfToken* token);
- bool readTokenCore(PdfToken* token);
- void PutBack(PdfToken token);
-
-private:
- const SkPdfMapper* fMapper;
- const PoDoFo::PdfMemDocument* fDoc;
- PoDoFo::PdfContentsTokenizer* fTokenizer;
-
- char* fUncompressedStream;
- long fUncompressedStreamLength;
-
- bool fEmpty;
- bool fHasPutBack;
- PdfToken fPutBack;
-};
-
-#endif // EXPERIMENTAL_PDFVIEWER_PDFPARSER_PODOFO_SKPDFPODOFOTOKENIZER_H_
« no previous file with comments | « no previous file | experimental/PdfViewer/pdfparser/podofo/SkPdfPodofoTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698