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

Unified Diff: experimental/PdfViewer/datatypes.py

Issue 17095004: Object model generated from pdf spec 1.4, draft code (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
« no previous file with comments | « experimental/PdfViewer/PdfReference-okular-1.txt ('k') | experimental/PdfViewer/generate_code.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/datatypes.py
===================================================================
--- experimental/PdfViewer/datatypes.py (revision 0)
+++ experimental/PdfViewer/datatypes.py (revision 0)
@@ -0,0 +1,48 @@
+
+class PdfName:
+ def __init__(self, name, abr=''):
+ self.fName = name
+ self.fAbr = abr
+
+ def toCpp(self):
+ return '\"' + self.fName + '\"'
+
+class PdfString:
+ def __init__(self, value):
+ self.fValue = value
+
+ def toCpp(self):
+ return '\"' + self.fValue + '\"'
+
+class PdfInteger:
+ def __init__(self, value):
+ self.fValue = value
+
+ def toCpp(self):
+ return str(self.fValue)
+
+class PdfNumber:
+ def __init__(self, value):
+ self.fValue = value
+
+ def toCpp(self):
+ return str(self.fValue)
+
+class PdfString:
+ def __init__(self, value):
+ self.fValue = value
+
+ def toCpp(self):
+ return self.fValue
+
+class PdfBoolean:
+ def __init__(self, value):
+ self.fValue = value
+
+ def toCpp(self):
+ return self.fValue
+
+class CppNull:
+ def toCpp(self):
+ return 'NULL'
+
« no previous file with comments | « experimental/PdfViewer/PdfReference-okular-1.txt ('k') | experimental/PdfViewer/generate_code.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698