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

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

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 "SkPdfNameDictionary_autogen.h"
2
3 std::string SkPdfNameDictionary::getDestsAsName() const {
4 std::string ret = "";
5 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", & ret)) return ret;
6 // TODO(edisonn): warn about missing required field, assert for known good pdf s
7 return "";
8 }
9
10 SkPdfTree* SkPdfNameDictionary::getDestsAsTree() const {
11 SkPdfTree* ret = NULL;
12 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dests", "", & ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return NULL;
15 }
16
17 std::string SkPdfNameDictionary::getAPAsName() const {
18 std::string ret = "";
19 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret )) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return "";
22 }
23
24 SkPdfTree* SkPdfNameDictionary::getAPAsTree() const {
25 SkPdfTree* ret = NULL;
26 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret )) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return NULL;
29 }
30
31 std::string SkPdfNameDictionary::getJavaScriptAsName() const {
32 std::string ret = "";
33 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return "";
36 }
37
38 SkPdfTree* SkPdfNameDictionary::getJavaScriptAsTree() const {
39 SkPdfTree* ret = NULL;
40 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaScript", "", &ret)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return NULL;
43 }
44
45 std::string SkPdfNameDictionary::getPagesAsName() const {
46 std::string ret = "";
47 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", & ret)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return "";
50 }
51
52 SkPdfTree* SkPdfNameDictionary::getPagesAsTree() const {
53 SkPdfTree* ret = NULL;
54 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pages", "", & ret)) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return NULL;
57 }
58
59 std::string SkPdfNameDictionary::getTemplatesAsName() const {
60 std::string ret = "";
61 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", " ", &ret)) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return "";
64 }
65
66 SkPdfTree* SkPdfNameDictionary::getTemplatesAsTree() const {
67 SkPdfTree* ret = NULL;
68 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates", " ", &ret)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return NULL;
71 }
72
73 std::string SkPdfNameDictionary::getIDSAsName() const {
74 std::string ret = "";
75 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDS", "", &re t)) return ret;
76 // TODO(edisonn): warn about missing required field, assert for known good pdf s
77 return "";
78 }
79
80 SkPdfTree* SkPdfNameDictionary::getIDSAsTree() const {
81 SkPdfTree* ret = NULL;
82 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IDS", "", &re t)) return ret;
83 // TODO(edisonn): warn about missing required field, assert for known good pdf s
84 return NULL;
85 }
86
87 std::string SkPdfNameDictionary::getURLSAsName() const {
88 std::string ret = "";
89 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URLS", "", &r et)) return ret;
90 // TODO(edisonn): warn about missing required field, assert for known good pdf s
91 return "";
92 }
93
94 SkPdfTree* SkPdfNameDictionary::getURLSAsTree() const {
95 SkPdfTree* ret = NULL;
96 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URLS", "", &r et)) return ret;
97 // TODO(edisonn): warn about missing required field, assert for known good pdf s
98 return NULL;
99 }
100
101 std::string SkPdfNameDictionary::getEmbeddedFilesAsName() const {
102 std::string ret = "";
103 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFiles ", "", &ret)) return ret;
104 // TODO(edisonn): warn about missing required field, assert for known good pdf s
105 return "";
106 }
107
108 SkPdfTree* SkPdfNameDictionary::getEmbeddedFilesAsTree() const {
109 SkPdfTree* ret = NULL;
110 if (TreeFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EmbeddedFiles ", "", &ret)) return ret;
111 // TODO(edisonn): warn about missing required field, assert for known good pdf s
112 return NULL;
113 }
114
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698