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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_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 "SkPdfStructureElementDictionary_autogen.h"
2
3 std::string SkPdfStructureElementDictionary::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 SkPdfStructureElementDictionary::S() const {
11 std::string ret;
12 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret) ) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return "";
15 }
16
17 SkPdfDictionary* SkPdfStructureElementDictionary::P() const {
18 SkPdfDictionary* ret;
19 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return NULL;
22 }
23
24 std::string SkPdfStructureElementDictionary::ID() const {
25 std::string ret;
26 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &r et)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return "";
29 }
30
31 SkPdfDictionary* SkPdfStructureElementDictionary::Pg() const {
32 SkPdfDictionary* ret;
33 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "" , &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return NULL;
36 }
37
38 SkPdfObject* SkPdfStructureElementDictionary::K() const {
39 SkPdfObject* ret;
40 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &re t)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return NULL;
43 }
44
45 SkPdfObject* SkPdfStructureElementDictionary::A() const {
46 SkPdfObject* ret;
47 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &re t)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return NULL;
50 }
51
52 std::string SkPdfStructureElementDictionary::getCAsName() const {
53 std::string ret = "";
54 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret) ) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return "";
57 }
58
59 SkPdfArray* SkPdfStructureElementDictionary::getCAsArray() const {
60 SkPdfArray* ret = NULL;
61 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret )) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return NULL;
64 }
65
66 long SkPdfStructureElementDictionary::R() const {
67 long ret;
68 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret) ) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return 0;
71 }
72
73 std::string SkPdfStructureElementDictionary::T() const {
74 std::string ret;
75 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &re t)) return ret;
76 // TODO(edisonn): warn about missing required field, assert for known good pdf s
77 return "";
78 }
79
80 std::string SkPdfStructureElementDictionary::Lang() const {
81 std::string ret;
82 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", &ret)) return ret;
83 // TODO(edisonn): warn about missing required field, assert for known good pdf s
84 return "";
85 }
86
87 std::string SkPdfStructureElementDictionary::Alt() const {
88 std::string ret;
89 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alt", "", & ret)) return ret;
90 // TODO(edisonn): warn about missing required field, assert for known good pdf s
91 return "";
92 }
93
94 std::string SkPdfStructureElementDictionary::ActualText() const {
95 std::string ret;
96 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ActualText" , "", &ret)) return ret;
97 // TODO(edisonn): warn about missing required field, assert for known good pdf s
98 return "";
99 }
100
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698