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

Unified Diff: experimental/PdfViewer/SkPdfType1ShadingDictionary_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/SkPdfType1ShadingDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfType1ShadingDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfType1ShadingDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfShadingDictionary_autogen.h"
+// Additional entries specific to a type 1 shading dictionary
class SkPdfType1ShadingDictionary : public SkPdfShadingDictionary {
public:
virtual SkPdfObjectType getType() const { return kType1ShadingDictionary_SkPdfObjectType;}
@@ -38,6 +39,14 @@
SkPdfType1ShadingDictionary& operator=(const SkPdfType1ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional) An array of four numbers [ xmin xmax ymin ymax ] specifying the rec-
+ * tangular domain of coordinates over which the color function(s) are defined.
+ * Default value: [0.0 1.0 0.0 1.0].
+**/
+ bool has_Domain() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", NULL));
+ }
+
SkPdfArray Domain() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", &ret)) return ret;
@@ -45,6 +54,17 @@
return SkPdfArray();
}
+/** (Optional) An array of six numbers specifying a transformation matrix mapping
+ * the coordinate space specified by the Domain entry into the shading's target co-
+ * ordinate space. For example, to map the domain rectangle [0.0 1.0 0.0 1.0] to a
+ * 1-inch square with lower-left corner at coordinates (100, 100) in default user
+ * space, the Matrix value would be [72 0 0 72 100 100]. Default value: the iden-
+ * tity matrix [1 0 0 1 0 0].
+**/
+ bool has_Matrix() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", NULL));
+ }
+
SkPdfArray Matrix() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matrix", "", &ret)) return ret;
@@ -52,6 +72,16 @@
return SkPdfArray();
}
+/** (Required) A 2-in, n-out function or an array of n 2-in, 1-out functions (where n
+ * is the number of color components in the shading dictionary's color space).
+ * Each function's domain must be a superset of that of the shading dictionary. If
+ * the value returned by the function for a given color component is out of range, it
+ * will be adjusted to the nearest valid value.
+**/
+ bool has_Function() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL));
+ }
+
SkPdfFunction Function() const {
SkPdfFunction ret;
if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698