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

Unified Diff: experimental/PdfViewer/autogen/SkPdfHexString_autogen.h

Issue 17748002: Basic support for Type3 Fonts in Pdf + various refactorings (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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
Index: experimental/PdfViewer/autogen/SkPdfHexString_autogen.h
===================================================================
--- experimental/PdfViewer/autogen/SkPdfHexString_autogen.h (revision 0)
+++ experimental/PdfViewer/autogen/SkPdfHexString_autogen.h (revision 0)
@@ -0,0 +1,32 @@
+#ifndef __DEFINED__SkPdfHexString
+#define __DEFINED__SkPdfHexString
+
+#include "SkPdfUtils.h"
+#include "SkPdfEnums_autogen.h"
+#include "SkPdfArray_autogen.h"
+#include "SkPdfString_autogen.h"
+
+class SkPdfHexString : public SkPdfString {
+public:
+ virtual SkPdfObjectType getType() const { return kHexString_SkPdfObjectType;}
+ virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kHexString_SkPdfObjectType + 1);}
+public:
+ virtual SkPdfHexString* asHexString() {return this;}
+ virtual const SkPdfHexString* asHexString() const {return this;}
+
+private:
+public:
+ const std::string& value() const {return fPodofoObj->GetString().GetStringUtf8();}
+private:
+public:
+ SkPdfHexString(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfString(podofoDoc, podofoObj) {}
+
+ SkPdfHexString(const SkPdfHexString& from) : SkPdfString(from.fPodofoDoc, from.fPodofoObj) {}
+
+ virtual bool valid() const {return true;}
+
+ SkPdfHexString& operator=(const SkPdfHexString& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+
+};
+
+#endif // __DEFINED__SkPdfHexString

Powered by Google App Engine
This is Rietveld 408576698