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

Unified Diff: experimental/PdfViewer/SkPdfLabColorSpaceDictionary_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/SkPdfLabColorSpaceDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfLabColorSpaceDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfLabColorSpaceDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries in a Lab color space dictionary
class SkPdfLabColorSpaceDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kLabColorSpaceDictionary_SkPdfObjectType;}
@@ -521,6 +522,15 @@
SkPdfLabColorSpaceDictionary& operator=(const SkPdfLabColorSpaceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required) An array of three numbers [ XW YW ZW ] specifying the tristimulus value,
+ * in the CIE 1931 XYZ space, of the diffuse white point; see "CalRGB Color Spaces" on
+ * page 184 for further discussion. The numbers XW and ZW must be positive, and YW
+ * must be equal to 1.0.
+**/
+ bool has_WhitePoint() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", NULL));
+ }
+
SkPdfArray WhitePoint() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WhitePoint", "", &ret)) return ret;
@@ -528,6 +538,15 @@
return SkPdfArray();
}
+/** (Optional) An array of three numbers [ XB YB ZB ] specifying the tristimulus value, in
+ * the CIE 1931 XYZ space, of the diffuse black point; see "CalRGB Color Spaces" on
+ * page 184 for further discussion. All three of these numbers must be nonnegative.
+ * Default value: [0.0 0.0 0.0].
+**/
+ bool has_BlackPoint() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", NULL));
+ }
+
SkPdfArray BlackPoint() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackPoint", "", &ret)) return ret;
@@ -535,6 +554,18 @@
return SkPdfArray();
}
+/** (Optional) An array of four numbers [ amin amax bmin bmax ] specifying the range of
+ * valid values for the a* and b* (B and C) components of the color space-that is,
+ * a min <= a* <= a max
+ * and
+ * b min <= b* <= b max
+ * Component values falling outside the specified range will be adjusted to the nearest
+ * valid value without error indication. Default value: [ -100 100 -100 100].
+**/
+ bool has_Range() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", NULL));
+ }
+
SkPdfArray Range() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Range", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698