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

Unified Diff: experimental/PdfViewer/SkPdfMovieActionDictionary_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/SkPdfMovieActionDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfMovieActionDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfMovieActionDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entries specific to a movie action
class SkPdfMovieActionDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kMovieActionDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfMovieActionDictionary& operator=(const SkPdfMovieActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required) The type of action that this dictionary describes; must be Movie
+ * for a movie action.
+**/
+ 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;
@@ -528,6 +536,13 @@
return "";
}
+/** (Optional) An indirect reference to a movie annotation identifying the movie
+ * to be played.
+**/
+ bool has_Annot() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annot", "", NULL));
+ }
+
SkPdfDictionary* Annot() const {
SkPdfDictionary* ret;
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annot", "", &ret)) return ret;
@@ -535,6 +550,14 @@
return NULL;
}
+/** (Optional) The title of a movie annotation identifying the movie to be
+ * played.
+ * Note: The dictionary must include either an Annot or a T entry, but not both.
+**/
+ bool has_T() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL));
+ }
+
std::string T() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret;
@@ -542,6 +565,21 @@
return "";
}
+/** (Optional) The operation to be performed on the movie:
+ * Play Start playing the movie, using the play mode specified by the
+ * dictionary's Mode entry (see Table 8.79 on page 571). If the
+ * movie is currently paused, it is repositioned to the beginning
+ * before playing (or to the starting point specified by the dic-
+ * tionary's Start entry, if present).
+ * Stop Stop playing the movie.
+ * Pause Pause a playing movie.
+ * Resume Resume a paused movie.
+ * Default value: Play.
+**/
+ bool has_Operation() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Operation", "", NULL));
+ }
+
std::string Operation() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Operation", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698