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

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

Issue 17856004: refactoring for pdf viewer lib (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 "SkPdfUtils.h" 4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h" 5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h" 6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfDictionary_autogen.h" 7 #include "SkPdfDictionary_autogen.h"
8 8
9 // Optional parameter for the JBIG2Decode filter 9 // Optional parameter for the JBIG2Decode filter
10 class SkPdfJbig2DecodeFilterDictionary : public SkPdfDictionary { 10 class SkPdfJbig2DecodeFilterDictionary : public SkPdfDictionary {
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 SkPdfJbig2DecodeFilterDictionary& operator=(const SkPdfJbig2DecodeFilterDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;} 526 SkPdfJbig2DecodeFilterDictionary& operator=(const SkPdfJbig2DecodeFilterDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;}
527 527
528 /** ()A stream containing the JBIG2 global (page 0) segments. Global segments 528 /** ()A stream containing the JBIG2 global (page 0) segments. Global segments
529 * must be placed in this stream even if only a single JBIG2 image XObject refe rs 529 * must be placed in this stream even if only a single JBIG2 image XObject refe rs
530 * to it. 530 * to it.
531 **/ 531 **/
532 bool has_JBIG2Globals() const { 532 bool has_JBIG2Globals() const {
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2 Globals", "", NULL)); 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2 Globals", "", NULL));
534 } 534 }
535 535
536 SkPdfStream* JBIG2Globals() const { 536 SkPdfStream* JBIG2Globals() const;
537 SkPdfStream* ret;
538 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Glob als", "", &ret)) return ret;
539 // TODO(edisonn): warn about missing required field, assert for known good p dfs
540 return NULL;
541 }
542
543 }; 537 };
544 538
545 #endif // __DEFINED__SkPdfJbig2DecodeFilterDictionary 539 #endif // __DEFINED__SkPdfJbig2DecodeFilterDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698