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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.cpp

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
(Empty)
1 #include "SkPdfImageDictionary_autogen.h"
2
3 std::string SkPdfImageDictionary::Type() const {
4 std::string ret;
5 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &r et)) return ret;
6 // TODO(edisonn): warn about missing required field, assert for known good pdf s
7 return "";
8 }
9
10 std::string SkPdfImageDictionary::Subtype() const {
11 std::string ret;
12 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return "";
15 }
16
17 long SkPdfImageDictionary::Width() const {
18 long ret;
19 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", & ret)) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return 0;
22 }
23
24 long SkPdfImageDictionary::Height() const {
25 long ret;
26 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return 0;
29 }
30
31 std::string SkPdfImageDictionary::getColorSpaceAsName() const {
32 std::string ret = "";
33 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return "";
36 }
37
38 SkPdfArray* SkPdfImageDictionary::getColorSpaceAsArray() const {
39 SkPdfArray* ret = NULL;
40 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return NULL;
43 }
44
45 long SkPdfImageDictionary::BitsPerComponent() const {
46 long ret;
47 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCompon ent", "", &ret)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return 0;
50 }
51
52 std::string SkPdfImageDictionary::Intent() const {
53 std::string ret;
54 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Intent", "", &ret)) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return "";
57 }
58
59 bool SkPdfImageDictionary::ImageMask() const {
60 bool ret;
61 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ImageMask", " ", &ret)) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return false;
64 }
65
66 SkPdfStream* SkPdfImageDictionary::getMaskAsStream() const {
67 SkPdfStream* ret = NULL;
68 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return NULL;
71 }
72
73 SkPdfArray* SkPdfImageDictionary::getMaskAsArray() const {
74 SkPdfArray* ret = NULL;
75 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", & ret)) return ret;
76 // TODO(edisonn): warn about missing required field, assert for known good pdf s
77 return NULL;
78 }
79
80 SkPdfStream* SkPdfImageDictionary::SMask() const {
81 SkPdfStream* ret;
82 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret;
83 // TODO(edisonn): warn about missing required field, assert for known good pdf s
84 return NULL;
85 }
86
87 SkPdfArray* SkPdfImageDictionary::Decode() const {
88 SkPdfArray* ret;
89 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret;
90 // TODO(edisonn): warn about missing required field, assert for known good pdf s
91 return NULL;
92 }
93
94 bool SkPdfImageDictionary::Interpolate() const {
95 bool ret;
96 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Interpolate", "", &ret)) return ret;
97 // TODO(edisonn): warn about missing required field, assert for known good pdf s
98 return false;
99 }
100
101 SkPdfArray* SkPdfImageDictionary::Alternates() const {
102 SkPdfArray* ret;
103 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternates", "", &ret)) return ret;
104 // TODO(edisonn): warn about missing required field, assert for known good pdf s
105 return NULL;
106 }
107
108 std::string SkPdfImageDictionary::Name() const {
109 std::string ret;
110 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &r et)) return ret;
111 // TODO(edisonn): warn about missing required field, assert for known good pdf s
112 return "";
113 }
114
115 long SkPdfImageDictionary::StructParent() const {
116 long ret;
117 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent" , "", &ret)) return ret;
118 // TODO(edisonn): warn about missing required field, assert for known good pdf s
119 return 0;
120 }
121
122 std::string SkPdfImageDictionary::ID() const {
123 std::string ret;
124 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &r et)) return ret;
125 // TODO(edisonn): warn about missing required field, assert for known good pdf s
126 return "";
127 }
128
129 SkPdfDictionary* SkPdfImageDictionary::OPI() const {
130 SkPdfDictionary* ret;
131 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", " ", &ret)) return ret;
132 // TODO(edisonn): warn about missing required field, assert for known good pdf s
133 return NULL;
134 }
135
136 SkPdfStream* SkPdfImageDictionary::Metadata() const {
137 SkPdfStream* ret;
138 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
139 // TODO(edisonn): warn about missing required field, assert for known good pdf s
140 return NULL;
141 }
142
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698