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

Unified Diff: experimental/PdfViewer/SkPdfDeviceNColorSpaceDictionary_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/SkPdfDeviceNColorSpaceDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfDeviceNColorSpaceDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfDeviceNColorSpaceDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entry in a DeviceN color space attributes dictionary
class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kDeviceNColorSpaceDictionary_SkPdfObjectType;}
@@ -521,6 +522,23 @@
SkPdfDeviceNColorSpaceDictionary& operator=(const SkPdfDeviceNColorSpaceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional) A dictionary describing the individual colorants used in the DeviceN
+ * color space. For each entry in this dictionary, the key is a colorant name and the
+ * value is an array defining a Separation color space for that colorant (see "Separa-
+ * tion Color Spaces" on page 201). The key must match the colorant name given in
+ * that color space. The dictionary need not list all colorants used in the DeviceN
+ * color space and may list additional colorants.
+ * This dictionary has no effect on the operation of the DeviceN color space itself or
+ * the appearance that it produces. However, it provides information about the indi-
+ * vidual colorants that may be useful to some applications. In particular, the alter-
+ * nate color space and tint transformation function of a Separation color space
+ * describe the appearance of that colorant alone, whereas those of a DeviceN color
+ * space describe only the appearance of its colorants in combination.
+**/
+ bool has_Colorants() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colorants", "", NULL));
+ }
+
SkPdfDictionary* Colorants() const {
SkPdfDictionary* ret;
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colorants", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698