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

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

Issue 17856004: refactoring for pdf viewer lib (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
OLDNEW
1 #ifndef __DEFINED__SkPdfComponentsWithMetadataDictionary 1 #ifndef __DEFINED__SkPdfComponentsWithMetadataDictionary
2 #define __DEFINED__SkPdfComponentsWithMetadataDictionary 2 #define __DEFINED__SkPdfComponentsWithMetadataDictionary
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 // Additional entry for components having metadata 9 // Additional entry for components having metadata
10 class SkPdfComponentsWithMetadataDictionary : public SkPdfDictionary { 10 class SkPdfComponentsWithMetadataDictionary : public SkPdfDictionary {
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 virtual bool valid() const {return true;} 524 virtual bool valid() const {return true;}
525 525
526 SkPdfComponentsWithMetadataDictionary& operator=(const SkPdfComponentsWithMeta dataDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;} 526 SkPdfComponentsWithMetadataDictionary& operator=(const SkPdfComponentsWithMeta dataDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;}
527 527
528 /** (Optional; PDF 1.4) A metadata stream containing metadata for the component. 528 /** (Optional; PDF 1.4) A metadata stream containing metadata for the component.
529 **/ 529 **/
530 bool has_Metadata() const { 530 bool has_Metadata() const {
531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad ata", "", NULL)); 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad ata", "", NULL));
532 } 532 }
533 533
534 SkPdfStream* Metadata() const { 534 SkPdfStream* Metadata() const;
535 SkPdfStream* ret;
536 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata" , "", &ret)) return ret;
537 // TODO(edisonn): warn about missing required field, assert for known good p dfs
538 return NULL;
539 }
540
541 }; 535 };
542 536
543 #endif // __DEFINED__SkPdfComponentsWithMetadataDictionary 537 #endif // __DEFINED__SkPdfComponentsWithMetadataDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698