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

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

Issue 22900010: pdfviewer: check in pdfapi classes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « experimental/PdfViewer/copy_files.py ('k') | experimental/PdfViewer/generate_code.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
49 class PdfDateNever:
50 def toCpp(self):
51 return 'SkPdfDate()'
52
53 class FileSpecNone:
54 def toCpp(self):
55 return 'SkPdfFileSpec()'
56
57 class EmptyRect:
58 def toCpp(self):
59 return 'SkRect::MakeEmpty()'
60
61 class IdentityMatrix:
62 def toCpp(self):
63 return 'SkMatrix::I()'
64
65 class PdfEmptyStream:
66 def toCpp(self):
67 return 'SkPdfStream()'
68
69 class PdfArrayNone:
70 def toCpp(self):
71 return 'SkPdfArray()'
72
73 class PdfFunctionNone:
74 def toCpp(self):
75 return 'SkPdfFunction()'
76
77 class EmptyTree:
78 def toCpp(self):
79 return 'SkPdfTree()'
OLDNEW
« no previous file with comments | « experimental/PdfViewer/copy_files.py ('k') | experimental/PdfViewer/generate_code.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698