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

Unified Diff: experimental/PdfViewer/SkPdfEmbeddedFileParameterDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (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 side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfEmbeddedFileParameterDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfEmbeddedFileParameterDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfEmbeddedFileParameterDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries in an embedded file parameter dictionary
class SkPdfEmbeddedFileParameterDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kEmbeddedFileParameterDictionary_SkPdfObjectType;}
@@ -521,6 +522,12 @@
SkPdfEmbeddedFileParameterDictionary& operator=(const SkPdfEmbeddedFileParameterDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional) The size of the embedded file, in bytes.
+**/
+ bool has_Size() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", NULL));
+ }
+
long Size() const {
long ret;
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", &ret)) return ret;
@@ -528,6 +535,12 @@
return 0;
}
+/** (Optional) The date and time when the embedded file was created.
+**/
+ bool has_CreationDate() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", NULL));
+ }
+
SkPdfDate CreationDate() const {
SkPdfDate ret;
if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDate", "", &ret)) return ret;
@@ -535,6 +548,12 @@
return SkPdfDate();
}
+/** (Optional) The date and time when the embedded file was last modified.
+**/
+ bool has_ModDate() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", NULL));
+ }
+
SkPdfDate ModDate() const {
SkPdfDate ret;
if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", "", &ret)) return ret;
@@ -542,6 +561,13 @@
return SkPdfDate();
}
+/** (Optional) A subdictionary containing additional information specific to
+ * Mac OS files (see Table 3.35).
+**/
+ bool has_Mac() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", NULL));
+ }
+
SkPdfDictionary* Mac() const {
SkPdfDictionary* ret;
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", &ret)) return ret;
@@ -549,6 +575,16 @@
return NULL;
}
+/** (Optional) A 16-byte string that is the checksum of the bytes of the uncom-
+ * pressed embedded file. The checksum is calculated by applying the standard
+ * MD5 message-digest algorithm (described in Internet RFC 1321, The MD5
+ * Message-Digest Algorithm; see the Bibliography) to the bytes of the embedded
+ * file stream.
+**/
+ bool has_CheckSum() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CheckSum", "", NULL));
+ }
+
std::string CheckSum() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CheckSum", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698