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

Side by Side Diff: experimental/PdfViewer/SkPdfJbig2DecodeFilterDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (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 #ifndef __DEFINED__SkPdfJbig2DecodeFilterDictionary 1 #ifndef __DEFINED__SkPdfJbig2DecodeFilterDictionary
2 #define __DEFINED__SkPdfJbig2DecodeFilterDictionary 2 #define __DEFINED__SkPdfJbig2DecodeFilterDictionary
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfDictionary_autogen.h" 6 #include "SkPdfDictionary_autogen.h"
7 7
8 // Optional parameter for the JBIG2Decode filter
8 class SkPdfJbig2DecodeFilterDictionary : public SkPdfDictionary { 9 class SkPdfJbig2DecodeFilterDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kJbig2DecodeFilterDictionary_ SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kJbig2DecodeFilterDictionary_ SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kJbig2De codeFilterDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kJbig2De codeFilterDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {ret urn this;} 14 virtual SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary() {ret urn this;}
14 virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary( ) const {return this;} 15 virtual const SkPdfJbig2DecodeFilterDictionary* asJbig2DecodeFilterDictionary( ) const {return this;}
15 16
16 private: 17 private:
17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;}
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 public: 516 public:
516 private: 517 private:
517 public: 518 public:
518 SkPdfJbig2DecodeFilterDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfJbig2DecodeFilterDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfJbig2DecodeFilterDictionary& operator=(const SkPdfJbig2DecodeFilterDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;} 523 SkPdfJbig2DecodeFilterDictionary& operator=(const SkPdfJbig2DecodeFilterDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;}
523 524
525 /** ()A stream containing the JBIG2 global (page 0) segments. Global segments
526 * must be placed in this stream even if only a single JBIG2 image XObject refe rs
527 * to it.
528 **/
529 bool has_JBIG2Globals() const {
530 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2 Globals", "", NULL));
531 }
532
524 SkPdfStream JBIG2Globals() const { 533 SkPdfStream JBIG2Globals() const {
525 SkPdfStream ret; 534 SkPdfStream ret;
526 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Glob als", "", &ret)) return ret; 535 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Glob als", "", &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 536 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return SkPdfStream(); 537 return SkPdfStream();
529 } 538 }
530 539
531 }; 540 };
532 541
533 #endif // __DEFINED__SkPdfJbig2DecodeFilterDictionary 542 #endif // __DEFINED__SkPdfJbig2DecodeFilterDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698