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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfDeviceNColorSpaceDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfDeviceNColorSpaceDictionary 1 #ifndef __DEFINED__SkPdfDeviceNColorSpaceDictionary
2 #define __DEFINED__SkPdfDeviceNColorSpaceDictionary 2 #define __DEFINED__SkPdfDeviceNColorSpaceDictionary
3 3
4 #include "SkPdfUtils.h" 4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h" 5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h" 6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfDictionary_autogen.h" 7 #include "SkPdfDictionary_autogen.h"
8 8
9 // Entry in a DeviceN color space attributes dictionary 9 // Entry in a DeviceN color space attributes dictionary
10 class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary { 10 class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary {
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 * the appearance that it produces. However, it provides information about the indi- 535 * the appearance that it produces. However, it provides information about the indi-
536 * vidual colorants that may be useful to some applications. In particular, the alter- 536 * vidual colorants that may be useful to some applications. In particular, the alter-
537 * nate color space and tint transformation function of a Separation color spac e 537 * nate color space and tint transformation function of a Separation color spac e
538 * describe the appearance of that colorant alone, whereas those of a DeviceN c olor 538 * describe the appearance of that colorant alone, whereas those of a DeviceN c olor
539 * space describe only the appearance of its colorants in combination. 539 * space describe only the appearance of its colorants in combination.
540 **/ 540 **/
541 bool has_Colorants() const { 541 bool has_Colorants() const {
542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color ants", "", NULL)); 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color ants", "", NULL));
543 } 543 }
544 544
545 SkPdfDictionary* Colorants() const { 545 SkPdfDictionary* Colorants() const;
546 SkPdfDictionary* ret;
547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color ants", "", &ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return NULL;
550 }
551
552 }; 546 };
553 547
554 #endif // __DEFINED__SkPdfDeviceNColorSpaceDictionary 548 #endif // __DEFINED__SkPdfDeviceNColorSpaceDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698