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

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

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 "SkPdfType6HalftoneDictionary_autogen.h"
2
3 std::string SkPdfType6HalftoneDictionary::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 long SkPdfType6HalftoneDictionary::HalftoneType() const {
11 long ret;
12 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType" , "", &ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return 0;
15 }
16
17 std::string SkPdfType6HalftoneDictionary::HalftoneName() const {
18 std::string ret;
19 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneNam e", "", &ret)) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return "";
22 }
23
24 long SkPdfType6HalftoneDictionary::Width() const {
25 long ret;
26 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", & ret)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return 0;
29 }
30
31 long SkPdfType6HalftoneDictionary::Height() const {
32 long ret;
33 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return 0;
36 }
37
38 SkPdfFunction SkPdfType6HalftoneDictionary::getTransferFunctionAsFunction() cons t {
39 SkPdfFunction ret = SkPdfFunction();
40 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferF unction", "", &ret)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return SkPdfFunction();
43 }
44
45 std::string SkPdfType6HalftoneDictionary::getTransferFunctionAsName() const {
46 std::string ret = "";
47 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunct ion", "", &ret)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return "";
50 }
51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698