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

Side by Side Diff: experimental/PdfViewer/SkPdfType1FormDictionary_autogen.h

Issue 17294008: load font manually, for now Type0 (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__SkPdfType1FormDictionary 1 #ifndef __DEFINED__SkPdfType1FormDictionary
2 #define __DEFINED__SkPdfType1FormDictionary 2 #define __DEFINED__SkPdfType1FormDictionary
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfXObjectDictionary_autogen.h" 6 #include "SkPdfXObjectDictionary_autogen.h"
7 7
8 // Additional entries specific to a type 1 form dictionary 8 // Additional entries specific to a type 1 form dictionary
9 class SkPdfType1FormDictionary : public SkPdfXObjectDictionary { 9 class SkPdfType1FormDictionary : public SkPdfXObjectDictionary {
10 public: 10 public:
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 return NULL; 198 return NULL;
199 } 199 }
200 200
201 /** (Optional; PDF 1.4) A metadata stream containing metadata for the form 201 /** (Optional; PDF 1.4) A metadata stream containing metadata for the form
202 * XObject (see Section 9.2.2, "Metadata Streams"). 202 * XObject (see Section 9.2.2, "Metadata Streams").
203 **/ 203 **/
204 bool has_Metadata() const { 204 bool has_Metadata() const {
205 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad ata", "", NULL)); 205 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad ata", "", NULL));
206 } 206 }
207 207
208 SkPdfStream Metadata() const { 208 SkPdfStream* Metadata() const {
209 SkPdfStream ret; 209 SkPdfStream* ret;
210 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata" , "", &ret)) return ret; 210 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata" , "", &ret)) return ret;
211 // TODO(edisonn): warn about missing required field, assert for known good p dfs 211 // TODO(edisonn): warn about missing required field, assert for known good p dfs
212 return SkPdfStream(); 212 return NULL;
213 } 213 }
214 214
215 /** (Optional; PDF 1.3) A page-piece dictionary associated with the form 215 /** (Optional; PDF 1.3) A page-piece dictionary associated with the form
216 * XObject (see Section 9.4, "Page-Piece Dictionaries"). 216 * XObject (see Section 9.4, "Page-Piece Dictionaries").
217 **/ 217 **/
218 bool has_PieceInfo() const { 218 bool has_PieceInfo() const {
219 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Piece Info", "", NULL)); 219 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Piece Info", "", NULL));
220 } 220 }
221 221
222 SkPdfDictionary* PieceInfo() const { 222 SkPdfDictionary* PieceInfo() const {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 SkPdfDictionary* OPI() const { 270 SkPdfDictionary* OPI() const {
271 SkPdfDictionary* ret; 271 SkPdfDictionary* ret;
272 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", "", &ret)) return ret; 272 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", "", &ret)) return ret;
273 // TODO(edisonn): warn about missing required field, assert for known good p dfs 273 // TODO(edisonn): warn about missing required field, assert for known good p dfs
274 return NULL; 274 return NULL;
275 } 275 }
276 276
277 }; 277 };
278 278
279 #endif // __DEFINED__SkPdfType1FormDictionary 279 #endif // __DEFINED__SkPdfType1FormDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698