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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfMovieDictionary_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 "SkPdfMovieDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 SkPdfFileSpec SkPdfMovieDictionary::F(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("F", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->fileSpecValue();
9 // TODO(edisonn): warn about missing required field, assert for known good pdf s
10 return SkPdfFileSpec();
11 }
12
13 bool SkPdfMovieDictionary::has_F() const {
14 return get("F", "") != NULL;
15 }
16
17 SkPdfArray* SkPdfMovieDictionary::Aspect(SkPdfNativeDoc* doc) {
18 SkPdfNativeObject* ret = get("Aspect", "");
19 if (doc) {ret = doc->resolveReference(ret);}
20 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
21 // TODO(edisonn): warn about missing default value for optional fields
22 return NULL;
23 }
24
25 bool SkPdfMovieDictionary::has_Aspect() const {
26 return get("Aspect", "") != NULL;
27 }
28
29 int64_t SkPdfMovieDictionary::Rotate(SkPdfNativeDoc* doc) {
30 SkPdfNativeObject* ret = get("Rotate", "");
31 if (doc) {ret = doc->resolveReference(ret);}
32 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
33 // TODO(edisonn): warn about missing default value for optional fields
34 return 0;
35 }
36
37 bool SkPdfMovieDictionary::has_Rotate() const {
38 return get("Rotate", "") != NULL;
39 }
40
41 bool SkPdfMovieDictionary::isPosterABoolean(SkPdfNativeDoc* doc) {
42 SkPdfNativeObject* ret = get("Poster", "");
43 if (doc) {ret = doc->resolveReference(ret);}
44 return ret != NULL && ret->isBoolean();
45 }
46
47 bool SkPdfMovieDictionary::getPosterAsBoolean(SkPdfNativeDoc* doc) {
48 SkPdfNativeObject* ret = get("Poster", "");
49 if (doc) {ret = doc->resolveReference(ret);}
50 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
51 // TODO(edisonn): warn about missing default value for optional fields
52 return false;
53 }
54
55 bool SkPdfMovieDictionary::isPosterAStream(SkPdfNativeDoc* doc) {
56 SkPdfNativeObject* ret = get("Poster", "");
57 if (doc) {ret = doc->resolveReference(ret);}
58 return ret != NULL && ret->hasStream();
59 }
60
61 SkPdfStream* SkPdfMovieDictionary::getPosterAsStream(SkPdfNativeDoc* doc) {
62 SkPdfNativeObject* ret = get("Poster", "");
63 if (doc) {ret = doc->resolveReference(ret);}
64 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
65 // TODO(edisonn): warn about missing default value for optional fields
66 return NULL;
67 }
68
69 bool SkPdfMovieDictionary::has_Poster() const {
70 return get("Poster", "") != NULL;
71 }
72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698