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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfMacOsFileInformationDictionary_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__SkPdfMacOsFileInformationDictionary 1 #ifndef __DEFINED__SkPdfMacOsFileInformationDictionary
2 #define __DEFINED__SkPdfMacOsFileInformationDictionary 2 #define __DEFINED__SkPdfMacOsFileInformationDictionary
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 // Entries in a Mac OS file information dictionary 9 // Entries in a Mac OS file information dictionary
10 class SkPdfMacOsFileInformationDictionary : public SkPdfDictionary { 10 class SkPdfMacOsFileInformationDictionary : 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 SkPdfMacOsFileInformationDictionary& operator=(const SkPdfMacOsFileInformation Dictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.f PodofoObj; return *this;} 526 SkPdfMacOsFileInformationDictionary& operator=(const SkPdfMacOsFileInformation Dictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.f PodofoObj; return *this;}
527 527
528 /** (Optional) The embedded file's file type. 528 /** (Optional) The embedded file's file type.
529 **/ 529 **/
530 bool has_Subtype() const { 530 bool has_Subtype() const {
531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty pe", "", NULL)); 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty pe", "", NULL));
532 } 532 }
533 533
534 std::string Subtype() const { 534 std::string Subtype() const;
535 std::string ret;
536 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
537 // TODO(edisonn): warn about missing required field, assert for known good p dfs
538 return "";
539 }
540
541 /** (Optional) The embedded file's creator signature. 535 /** (Optional) The embedded file's creator signature.
542 **/ 536 **/
543 bool has_Creator() const { 537 bool has_Creator() const {
544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creat or", "", NULL)); 538 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creat or", "", NULL));
545 } 539 }
546 540
547 std::string Creator() const { 541 std::string Creator() const;
548 std::string ret;
549 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", &ret)) return ret;
550 // TODO(edisonn): warn about missing required field, assert for known good p dfs
551 return "";
552 }
553
554 /** (Optional) The binary contents of the embedded file's resource fork. 542 /** (Optional) The binary contents of the embedded file's resource fork.
555 **/ 543 **/
556 bool has_ResFork() const { 544 bool has_ResFork() const {
557 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFo rk", "", NULL)); 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFo rk", "", NULL));
558 } 546 }
559 547
560 SkPdfStream* ResFork() const { 548 SkPdfStream* ResFork() const;
561 SkPdfStream* ret;
562 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFork", "", &ret)) return ret;
563 // TODO(edisonn): warn about missing required field, assert for known good p dfs
564 return NULL;
565 }
566
567 }; 549 };
568 550
569 #endif // __DEFINED__SkPdfMacOsFileInformationDictionary 551 #endif // __DEFINED__SkPdfMacOsFileInformationDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698