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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfSeparationDictionary_autogen.cpp

Issue 22900010: pdfviewer: check in pdfapi classes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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
(Empty)
1 #include "SkPdfSeparationDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 SkPdfArray* SkPdfSeparationDictionary::Pages(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("Pages", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
9 // TODO(edisonn): warn about missing required field, assert for known good pdf s
10 return NULL;
11 }
12
13 bool SkPdfSeparationDictionary::has_Pages() const {
14 return get("Pages", "") != NULL;
15 }
16
17 bool SkPdfSeparationDictionary::isDeviceColorantAName(SkPdfNativeDoc* doc) {
18 SkPdfNativeObject* ret = get("DeviceColorant", "");
19 if (doc) {ret = doc->resolveReference(ret);}
20 return ret != NULL && ret->isName();
21 }
22
23 SkString SkPdfSeparationDictionary::getDeviceColorantAsName(SkPdfNativeDoc* doc) {
24 SkPdfNativeObject* ret = get("DeviceColorant", "");
25 if (doc) {ret = doc->resolveReference(ret);}
26 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return SkString();
29 }
30
31 bool SkPdfSeparationDictionary::isDeviceColorantAString(SkPdfNativeDoc* doc) {
32 SkPdfNativeObject* ret = get("DeviceColorant", "");
33 if (doc) {ret = doc->resolveReference(ret);}
34 return ret != NULL && ret->isAnyString();
35 }
36
37 SkString SkPdfSeparationDictionary::getDeviceColorantAsString(SkPdfNativeDoc* do c) {
38 SkPdfNativeObject* ret = get("DeviceColorant", "");
39 if (doc) {ret = doc->resolveReference(ret);}
40 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret- >isReference())) return ret->stringValue2();
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return SkString();
43 }
44
45 bool SkPdfSeparationDictionary::has_DeviceColorant() const {
46 return get("DeviceColorant", "") != NULL;
47 }
48
49 SkPdfArray* SkPdfSeparationDictionary::ColorSpace(SkPdfNativeDoc* doc) {
50 SkPdfNativeObject* ret = get("ColorSpace", "");
51 if (doc) {ret = doc->resolveReference(ret);}
52 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
53 // TODO(edisonn): warn about missing default value for optional fields
54 return NULL;
55 }
56
57 bool SkPdfSeparationDictionary::has_ColorSpace() const {
58 return get("ColorSpace", "") != NULL;
59 }
60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698