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

Unified Diff: experimental/PdfViewer/SkPdfJavascriptDictionary_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/SkPdfJavascriptDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfJavascriptDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfJavascriptDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries in the JavaScript dictionary
class SkPdfJavascriptDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kJavascriptDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfJavascriptDictionary& operator=(const SkPdfJavascriptDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional) A string or stream containing a JavaScript script to be executed
+ * just before the FDF file is imported.
+**/
+ bool has_Before() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", NULL));
+ }
+
bool isBeforeAString() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Before", "", &ret)) return false;
@@ -547,6 +555,13 @@
return SkPdfStream();
}
+/** (Optional) A string or stream containing a JavaScript script to be executed
+ * just after the FDF file is imported.
+**/
+ bool has_After() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", NULL));
+ }
+
bool isAfterAString() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "After", "", &ret)) return false;
@@ -573,6 +588,20 @@
return SkPdfStream();
}
+/** (Optional) An array defining additional JavaScript scripts to be added to
+ * those defined in the JavaScript entry of the document's name dictionary (see
+ * Section 3.6.3, "Name Dictionary"). The array contains an even number of
+ * elements, organized in pairs. The first element of each pair is a name and the
+ * second is a string or stream defining the script corresponding to that name.
+ * Each of the defined scripts will be added to those already defined in the name
+ * dictionary and then executed before the script defined in the Before entry is
+ * executed. As described in "JavaScript Actions" on page 556, these scripts are
+ * used to define JavaScript functions for use by other scripts in the document.
+**/
+ bool has_Doc() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Doc", "", NULL));
+ }
+
SkPdfArray Doc() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Doc", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698