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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class PdfName:
3 def __init__(self, name, abr=''):
4 self.fName = name
5 self.fAbr = abr
6
7 def toCpp(self):
8 return '\"' + self.fName + '\"'
9
10 class PdfString:
11 def __init__(self, value):
12 self.fValue = value
13
14 def toCpp(self):
15 return '\"' + self.fValue + '\"'
16
17 class PdfInteger:
18 def __init__(self, value):
19 self.fValue = value
20
21 def toCpp(self):
22 return str(self.fValue)
23
24 class PdfNumber:
25 def __init__(self, value):
26 self.fValue = value
27
28 def toCpp(self):
29 return str(self.fValue)
30
31 class PdfString:
32 def __init__(self, value):
33 self.fValue = value
34
35 def toCpp(self):
36 return self.fValue
37
38 class PdfBoolean:
39 def __init__(self, value):
40 self.fValue = value
41
42 def toCpp(self):
43 return self.fValue
44
45 class CppNull:
46 def toCpp(self):
47 return 'NULL'
48
OLDNEW
« 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