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

Unified Diff: experimental/PdfViewer/SkPdfSignatureDictionary_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/SkPdfSignatureDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfSignatureDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfSignatureDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries in a signature dictionary
class SkPdfSignatureDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kSignatureDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfSignatureDictionary& operator=(const SkPdfSignatureDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional) The type of PDF object that this dictionary describes; if present,
+ * must be Sig for a signature dictionary.
+**/
+ bool has_Type() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL));
+ }
+
std::string Type() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret;
@@ -528,6 +536,14 @@
return "";
}
+/** (Required; inheritable) The name of the signature handler to be used for
+ * authenticating the field's contents, such as Adobe.PPKLite, Entrust.PPKEF,
+ * CICI.SignIt, or VeriSign.PPKVS.
+**/
+ bool has_Filter() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", NULL));
+ }
+
std::string Filter() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret;
@@ -535,6 +551,12 @@
return "";
}
+/** (Optional) The name of a specific submethod of the specified handler.
+**/
+ bool has_SubFilter() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SubFilter", "", NULL));
+ }
+
std::string SubFilter() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SubFilter", "", &ret)) return ret;
@@ -542,6 +564,15 @@
return "";
}
+/** (Required) An array of pairs of integers (starting byte offset, length in bytes)
+ * describing the exact byte range for the digest calculation. Multiple discontig-
+ * uous byte ranges may be used to describe a digest that does not include the
+ * signature token itself.
+**/
+ bool has_ByteRange() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ByteRange", "", NULL));
+ }
+
SkPdfArray ByteRange() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ByteRange", "", &ret)) return ret;
@@ -549,6 +580,12 @@
return SkPdfArray();
}
+/** (Required) The encrypted signature token.
+**/
+ bool has_Contents() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL));
+ }
+
std::string Contents() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret;
@@ -556,6 +593,12 @@
return "";
}
+/** (Optional) The name of the person or authority signing the document.
+**/
+ bool has_Name() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", NULL));
+ }
+
std::string Name() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret;
@@ -563,6 +606,14 @@
return "";
}
+/** (Optional) The time of signing. Depending on the signature handler, this
+ * may be a normal unverified computer time or a time generated in a verifiable
+ * way from a secure time server.
+**/
+ bool has_M() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", NULL));
+ }
+
SkPdfDate M() const {
SkPdfDate ret;
if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret;
@@ -570,6 +621,12 @@
return SkPdfDate();
}
+/** (Optional) The CPU host name or physical location of the signing.
+**/
+ bool has_Location() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Location", "", NULL));
+ }
+
std::string Location() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Location", "", &ret)) return ret;
@@ -577,6 +634,12 @@
return "";
}
+/** (Optional) The reason for the signing, such as (I agree...).
+**/
+ bool has_Reason() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Reason", "", NULL));
+ }
+
std::string Reason() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Reason", "", &ret)) return ret;
« no previous file with comments | « experimental/PdfViewer/SkPdfShadingDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfSoftMaskDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698