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

Unified Diff: experimental/PdfViewer/SkPdfActionDictionary_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/SkPdfActionDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfActionDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfActionDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries common to all action dictionaries
class SkPdfActionDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kActionDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfActionDictionary& operator=(const SkPdfActionDictionary& 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 Action for an action 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,13 @@
return "";
}
+/** (Required) The type of action that this dictionary describes; see Table 8.34
+ * on page 518 for specific values.
+**/
+ bool has_S() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL));
+ }
+
std::string S() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret;
@@ -535,6 +550,15 @@
return "";
}
+/** (Optional; PDF 1.2) The next action, or sequence of actions, to be per-
+ * formed after this one. The value is either a single action dictionary or an
+ * array of action dictionaries to be performed in order; see below for fur-
+ * ther discussion.
+**/
+ bool has_Next() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", NULL));
+ }
+
bool isNextADictionary() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next", "", &ret)) return false;

Powered by Google App Engine
This is Rietveld 408576698