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

Side by Side Diff: experimental/PdfViewer/pdfparser/podofo/autogen/pdfspec_autogen.py

Issue 18179007: refactor folders to make prepare for native pdf parser (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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/pdfparser/podofo/autogen/__init__.py ('k') | gyp/pdfviewer.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import datatypes 1 import datatypes
2 2
3 def buildPdfSpec(pdfspec): 3 def buildPdfSpec(pdfspec):
4 pdfspec.addClass('StreamCommonDictionary', 'Dictionary', 'Entries common to al l stream dictionaries')\ 4 pdfspec.addClass('StreamCommonDictionary', 'Dictionary', 'Entries common to al l stream dictionaries')\
5 .required('NULL')\ 5 .required('NULL')\
6 .field('Length')\ 6 .field('Length')\
7 .name('Length')\ 7 .name('Length')\
8 .type('integer')\ 8 .type('integer')\
9 .comment('(Required) The number of bytes from the beginning of the lin e fol-\nlowing the keyword stream to the last byte just before the keyword\nends tream. (There may be an additional EOL marker, preceding\nendstream, that is not included in the count and is not logically part\nof the stream data.) See "Stre am Extent," above, for further discus-\nsion.')\ 9 .comment('(Required) The number of bytes from the beginning of the lin e fol-\nlowing the keyword stream to the last byte just before the keyword\nends tream. (There may be an additional EOL marker, preceding\nendstream, that is not included in the count and is not logically part\nof the stream data.) See "Stre am Extent," above, for further discus-\nsion.')\
10 .done().done()\ 10 .done().done()\
(...skipping 5560 matching lines...) Expand 10 before | Expand all | Expand 10 after
5571 knowTypes['FreeTextAnnotationDictionary'] = ['SkPdfFreeTextAnnotationDictionar y*', 'FreeTextAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary'] 5571 knowTypes['FreeTextAnnotationDictionary'] = ['SkPdfFreeTextAnnotationDictionar y*', 'FreeTextAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary']
5572 knowTypes['ALinkAnnotationDictionary'] = ['SkPdfALinkAnnotationDictionary*', ' ALinkAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->G etDataType() == ePdfDataType_Dictionary'] 5572 knowTypes['ALinkAnnotationDictionary'] = ['SkPdfALinkAnnotationDictionary*', ' ALinkAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->G etDataType() == ePdfDataType_Dictionary']
5573 knowTypes['TextAnnotationDictionary'] = ['SkPdfTextAnnotationDictionary*', 'Te xtAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetD ataType() == ePdfDataType_Dictionary'] 5573 knowTypes['TextAnnotationDictionary'] = ['SkPdfTextAnnotationDictionary*', 'Te xtAnnotationDictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetD ataType() == ePdfDataType_Dictionary']
5574 knowTypes['WebCapturePageSetDictionary'] = ['SkPdfWebCapturePageSetDictionary* ', 'WebCapturePageSetDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary'] 5574 knowTypes['WebCapturePageSetDictionary'] = ['SkPdfWebCapturePageSetDictionary* ', 'WebCapturePageSetDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary']
5575 knowTypes['AppearanceDictionary'] = ['SkPdfAppearanceDictionary*', 'Appearance DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] 5575 knowTypes['AppearanceDictionary'] = ['SkPdfAppearanceDictionary*', 'Appearance DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary']
5576 knowTypes['CIDFontDescriptorDictionary'] = ['SkPdfCIDFontDescriptorDictionary* ', 'CIDFontDescriptorDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary'] 5576 knowTypes['CIDFontDescriptorDictionary'] = ['SkPdfCIDFontDescriptorDictionary* ', 'CIDFontDescriptorDictionaryFromDictionary', datatypes.CppNull(), 'ret->podof o()->GetDataType() == ePdfDataType_Dictionary']
5577 knowTypes['EmbeddedFontStreamDictionary'] = ['SkPdfEmbeddedFontStreamDictionar y*', 'EmbeddedFontStreamDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary'] 5577 knowTypes['EmbeddedFontStreamDictionary'] = ['SkPdfEmbeddedFontStreamDictionar y*', 'EmbeddedFontStreamDictionaryFromDictionary', datatypes.CppNull(), 'ret->po dofo()->GetDataType() == ePdfDataType_Dictionary']
5578 knowTypes['AnnotationDictionary'] = ['SkPdfAnnotationDictionary*', 'Annotation DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary'] 5578 knowTypes['AnnotationDictionary'] = ['SkPdfAnnotationDictionary*', 'Annotation DictionaryFromDictionary', datatypes.CppNull(), 'ret->podofo()->GetDataType() == ePdfDataType_Dictionary']
5579 5579
5580 5580
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdfparser/podofo/autogen/__init__.py ('k') | gyp/pdfviewer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698