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

Unified 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 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 9642)
+++ experimental/PdfViewer/datatypes.py (working copy)
@@ -45,4 +45,30 @@
class CppNull:
def toCpp(self):
return 'NULL'
+
+class PdfDateNever:
+ def toCpp(self):
+ return 'SkPdfDate()'
+
+class FileSpecNone:
+ def toCpp(self):
+ return 'SkPdfFileSpec()'
+
+class PdfEmptyRect:
+ def toCpp(self):
+ return 'SkRect()'
+
+class PdfEmptyStream:
+ def toCpp(self):
+ return 'SkPdfStream()'
+
+class PdfArrayNone:
+ def toCpp(self):
+ return 'SkPdfArray()'
+
+class PdfFunctionNone:
+ def toCpp(self):
+ return 'SkPdfFunction()'
+
+
« 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