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

Unified Diff: experimental/PdfViewer/SkPdfMovieAnnotationDictionary_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/SkPdfMovieAnnotationDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfMovieAnnotationDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfMovieAnnotationDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entries specific to a movie annotation
class SkPdfMovieAnnotationDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kMovieAnnotationDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfMovieAnnotationDictionary& operator=(const SkPdfMovieAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required) The type of annotation that this dictionary describes; must be Movie
+ * for a movie annotation.
+**/
+ bool has_Subtype() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL));
+ }
+
std::string Subtype() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
@@ -528,6 +536,13 @@
return "";
}
+/** (Required) A movie dictionary describing the movie's static characteristics (see
+ * Section 8.8, "Movies").
+**/
+ bool has_Movie() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Movie", "", NULL));
+ }
+
SkPdfDictionary* Movie() const {
SkPdfDictionary* ret;
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Movie", "", &ret)) return ret;
@@ -535,6 +550,15 @@
return NULL;
}
+/** (Optional; PDF 1.4) An alternate representation of the annotation's contents in
+ * human-readable form, useful when extracting the document's contents in sup-
+ * port of accessibility to disabled users or for other purposes (see Section 9.8.2,
+ * "Alternate Descriptions").
+**/
+ 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;
@@ -542,6 +566,17 @@
return "";
}
+/** (Optional) A flag or dictionary specifying whether and how to play the movie
+ * when the annotation is activated. If this value is a dictionary, it is a movie activa-
+ * tion dictionary (see Section 8.8, "Movies") specifying how to play the movie; if it
+ * is the boolean value true, the movie should be played using default activation
+ * parameters; if it is false, the movie should not be played at all. Default value:
+ * true.
+**/
+ bool has_A() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL));
+ }
+
bool isAABoolean() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return false;
« no previous file with comments | « experimental/PdfViewer/SkPdfMovieActivationDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfMovieDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698