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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfApplicationDataDictionary_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__SkPdfApplicationDataDictionary 1 #ifndef __DEFINED__SkPdfApplicationDataDictionary
2 #define __DEFINED__SkPdfApplicationDataDictionary 2 #define __DEFINED__SkPdfApplicationDataDictionary
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 an application data dictionary 9 // Entries in an application data dictionary
10 class SkPdfApplicationDataDictionary : public SkPdfDictionary { 10 class SkPdfApplicationDataDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfApplicationDataDictionary& operator=(const SkPdfApplicationDataDictionary & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} 526 SkPdfApplicationDataDictionary& operator=(const SkPdfApplicationDataDictionary & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
527 527
528 /** (Required) The date and time when the contents of the page or form 528 /** (Required) The date and time when the contents of the page or form
529 * were most recently modified by this application. 529 * were most recently modified by this application.
530 **/ 530 **/
531 bool has_LastModified() const { 531 bool has_LastModified() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastM odified", "", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastM odified", "", NULL));
533 } 533 }
534 534
535 SkPdfDate LastModified() const { 535 SkPdfDate LastModified() const;
536 SkPdfDate ret;
537 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastModifie d", "", &ret)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return SkPdfDate();
540 }
541
542 /** (Optional) Any private data appropriate to the application, typically 536 /** (Optional) Any private data appropriate to the application, typically
543 * in the form of a dictionary. 537 * in the form of a dictionary.
544 **/ 538 **/
545 bool has_Private() const { 539 bool has_Private() const {
546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Priva te", "", NULL)); 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Priva te", "", NULL));
547 } 541 }
548 542
549 SkPdfObject* Private() const { 543 SkPdfObject* Private() const;
550 SkPdfObject* ret;
551 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Private", "", &ret)) return ret;
552 // TODO(edisonn): warn about missing required field, assert for known good p dfs
553 return NULL;
554 }
555
556 }; 544 };
557 545
558 #endif // __DEFINED__SkPdfApplicationDataDictionary 546 #endif // __DEFINED__SkPdfApplicationDataDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698