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

Unified Diff: experimental/PdfViewer/SkPdfArtifactsDictionary_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/SkPdfArtifactsDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfArtifactsDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfArtifactsDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Property list entries for artifacts
class SkPdfArtifactsDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kArtifactsDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfArtifactsDictionary& operator=(const SkPdfArtifactsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional) The type of artifact that this property list describes; if present, must
+ * be one of the names Pagination, Layout, or Page.
+**/
+ 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 "";
}
+/** (Optional) An array of four numbers in default user space units giving the coor-
+ * dinates of the left, bottom, right, and top edges, respectively, of the artifact's
+ * bounding box (the rectangle that completely encloses its visible extent).
+**/
+ bool has_BBox() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", NULL));
+ }
+
SkRect BBox() const {
SkRect ret;
if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BBox", "", &ret)) return ret;
@@ -535,6 +551,17 @@
return SkRect();
}
+/** (Optional; pagination artifacts only) An array of name objects containing one to
+ * four of the names Top, Bottom, Left, and Right, specifying the edges of the page, if
+ * any, to which the artifact is logically attached. Page edges are defined by the
+ * page's crop box (see Section 9.10.1, "Page Boundaries"). The ordering of names
+ * within the array is immaterial. Including both Left and Right or both Top and
+ * Bottom indicates a full-width or full-height artifact, respectively.
+**/
+ bool has_Attached() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Attached", "", NULL));
+ }
+
SkPdfArray Attached() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Attached", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698