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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfFontDescriptorDictionary_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 "SkPdfFontDescriptorDictionary_autogen.h"
2
3 std::string SkPdfFontDescriptorDictionary::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 SkPdfFontDescriptorDictionary::FontName() const {
11 std::string ret;
12 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontName", "" , &ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return "";
15 }
16
17 long SkPdfFontDescriptorDictionary::Flags() const {
18 long ret;
19 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", & ret)) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return 0;
22 }
23
24 SkRect* SkPdfFontDescriptorDictionary::FontBBox() const {
25 SkRect* ret;
26 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", &ret)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return NULL;
29 }
30
31 double SkPdfFontDescriptorDictionary::ItalicAngle() const {
32 double ret;
33 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ItalicAngle ", "", &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return 0;
36 }
37
38 double SkPdfFontDescriptorDictionary::Ascent() const {
39 double ret;
40 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ascent", "" , &ret)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return 0;
43 }
44
45 double SkPdfFontDescriptorDictionary::Descent() const {
46 double ret;
47 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Descent", " ", &ret)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return 0;
50 }
51
52 double SkPdfFontDescriptorDictionary::Leading() const {
53 double ret;
54 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Leading", " ", &ret)) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return 0;
57 }
58
59 double SkPdfFontDescriptorDictionary::CapHeight() const {
60 double ret;
61 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CapHeight", "", &ret)) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return 0;
64 }
65
66 double SkPdfFontDescriptorDictionary::XHeight() const {
67 double ret;
68 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XHeight", " ", &ret)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return 0;
71 }
72
73 double SkPdfFontDescriptorDictionary::StemV() const {
74 double ret;
75 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemV", "", &ret)) return ret;
76 // TODO(edisonn): warn about missing required field, assert for known good pdf s
77 return 0;
78 }
79
80 double SkPdfFontDescriptorDictionary::StemH() const {
81 double ret;
82 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemH", "", &ret)) return ret;
83 // TODO(edisonn): warn about missing required field, assert for known good pdf s
84 return 0;
85 }
86
87 double SkPdfFontDescriptorDictionary::AvgWidth() const {
88 double ret;
89 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AvgWidth", "", &ret)) return ret;
90 // TODO(edisonn): warn about missing required field, assert for known good pdf s
91 return 0;
92 }
93
94 double SkPdfFontDescriptorDictionary::MaxWidth() const {
95 double ret;
96 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxWidth", "", &ret)) return ret;
97 // TODO(edisonn): warn about missing required field, assert for known good pdf s
98 return 0;
99 }
100
101 double SkPdfFontDescriptorDictionary::MissingWidth() const {
102 double ret;
103 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MissingWidt h", "", &ret)) return ret;
104 // TODO(edisonn): warn about missing required field, assert for known good pdf s
105 return 0;
106 }
107
108 SkPdfStream* SkPdfFontDescriptorDictionary::FontFile() const {
109 SkPdfStream* ret;
110 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile", "", &ret)) return ret;
111 // TODO(edisonn): warn about missing required field, assert for known good pdf s
112 return NULL;
113 }
114
115 SkPdfStream* SkPdfFontDescriptorDictionary::FontFile2() const {
116 SkPdfStream* ret;
117 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile2", "", &ret)) return ret;
118 // TODO(edisonn): warn about missing required field, assert for known good pdf s
119 return NULL;
120 }
121
122 SkPdfStream* SkPdfFontDescriptorDictionary::FontFile3() const {
123 SkPdfStream* ret;
124 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile3", "", &ret)) return ret;
125 // TODO(edisonn): warn about missing required field, assert for known good pdf s
126 return NULL;
127 }
128
129 std::string SkPdfFontDescriptorDictionary::CharSet() const {
130 std::string ret;
131 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharSet", " ", &ret)) return ret;
132 // TODO(edisonn): warn about missing required field, assert for known good pdf s
133 return "";
134 }
135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698