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

Side by Side Diff: experimental/PdfViewer/datatypes.py

Issue 16968007: Pdfviewer: generate isAFoo() and getAsFoo() api for fields that can have multiple types. (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
1 1
2 class PdfName: 2 class PdfName:
3 def __init__(self, name, abr=''): 3 def __init__(self, name, abr=''):
4 self.fName = name 4 self.fName = name
5 self.fAbr = abr 5 self.fAbr = abr
6 6
7 def toCpp(self): 7 def toCpp(self):
8 return '\"' + self.fName + '\"' 8 return '\"' + self.fName + '\"'
9 9
10 class PdfString: 10 class PdfString:
(...skipping 27 matching lines...) Expand all
38 class PdfBoolean: 38 class PdfBoolean:
39 def __init__(self, value): 39 def __init__(self, value):
40 self.fValue = value 40 self.fValue = value
41 41
42 def toCpp(self): 42 def toCpp(self):
43 return self.fValue 43 return self.fValue
44 44
45 class CppNull: 45 class CppNull:
46 def toCpp(self): 46 def toCpp(self):
47 return 'NULL' 47 return 'NULL'
48
49 class PdfDateNever:
50 def toCpp(self):
51 return 'SkPdfDate()'
52
53 class FileSpecNone:
54 def toCpp(self):
55 return 'SkPdfFileSpec()'
56
57 class PdfEmptyRect:
58 def toCpp(self):
59 return 'SkRect()'
60
61 class PdfEmptyStream:
62 def toCpp(self):
63 return 'SkPdfStream()'
64
65 class PdfArrayNone:
66 def toCpp(self):
67 return 'SkPdfArray()'
68
69 class PdfFunctionNone:
70 def toCpp(self):
71 return 'SkPdfFunction()'
72
73
48 74
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