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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfEncryptedEmbeddedFileStreamDictionary_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__SkPdfEncryptedEmbeddedFileStreamDictionary 1 #ifndef __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary
2 #define __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary 2 #define __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary
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 in an embedded file stream dictionary for an encrypted FDF f ile 9 // Additional entry in an embedded file stream dictionary for an encrypted FDF f ile
10 class SkPdfEncryptedEmbeddedFileStreamDictionary : public SkPdfDictionary { 10 class SkPdfEncryptedEmbeddedFileStreamDictionary : public SkPdfDictionary {
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 SkPdfEncryptedEmbeddedFileStreamDictionary& operator=(const SkPdfEncryptedEmbe ddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodo foObj = from.fPodofoObj; return *this;} 526 SkPdfEncryptedEmbeddedFileStreamDictionary& operator=(const SkPdfEncryptedEmbe ddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodo foObj = from.fPodofoObj; return *this;}
527 527
528 /** (Required if the FDF file is encrypted; PDF 1.4) The revision number of the 528 /** (Required if the FDF file is encrypted; PDF 1.4) The revision number of the
529 * FDF encryption algorithm used to encrypt the file. The only valid value 529 * FDF encryption algorithm used to encrypt the file. The only valid value
530 * defined at the time of publication is 1. 530 * defined at the time of publication is 1.
531 **/ 531 **/
532 bool has_EncryptionRevision() const { 532 bool has_EncryptionRevision() const {
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encry ptionRevision", "", NULL)); 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encry ptionRevision", "", NULL));
534 } 534 }
535 535
536 long EncryptionRevision() const { 536 long EncryptionRevision() const;
537 long ret;
538 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncryptionR evision", "", &ret)) return ret;
539 // TODO(edisonn): warn about missing required field, assert for known good p dfs
540 return 0;
541 }
542
543 }; 537 };
544 538
545 #endif // __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary 539 #endif // __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698