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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfFieldDictionary_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 "SkPdfFieldDictionary_autogen.h"
2
3 std::string SkPdfFieldDictionary::FT() const {
4 std::string ret;
5 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FT", "", &ret )) return ret;
6 // TODO(edisonn): warn about missing required field, assert for known good pdf s
7 return "";
8 }
9
10 SkPdfDictionary* SkPdfFieldDictionary::Parent() const {
11 SkPdfDictionary* ret;
12 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent" , "", &ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return NULL;
15 }
16
17 SkPdfArray* SkPdfFieldDictionary::Kids() const {
18 SkPdfArray* ret;
19 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", & 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 SkPdfFieldDictionary::T() const {
25 std::string ret;
26 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &re t)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return "";
29 }
30
31 std::string SkPdfFieldDictionary::TU() const {
32 std::string ret;
33 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TU", "", &r et)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return "";
36 }
37
38 std::string SkPdfFieldDictionary::TM() const {
39 std::string ret;
40 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TM", "", &r et)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return "";
43 }
44
45 long SkPdfFieldDictionary::Ff() const {
46 long ret;
47 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ff", "", &ret )) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return 0;
50 }
51
52 SkPdfObject* SkPdfFieldDictionary::V() const {
53 SkPdfObject* ret;
54 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &re t)) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return NULL;
57 }
58
59 SkPdfObject* SkPdfFieldDictionary::DV() const {
60 SkPdfObject* ret;
61 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DV", "", &r et)) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return NULL;
64 }
65
66 SkPdfDictionary* SkPdfFieldDictionary::AA() const {
67 SkPdfDictionary* ret;
68 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "" , &ret)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return NULL;
71 }
72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698