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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_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 "SkPdfViewerPreferencesDictionary_autogen.h"
2
3 bool SkPdfViewerPreferencesDictionary::HideToolbar() const {
4 bool ret;
5 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideToolbar", "", &ret)) return ret;
6 // TODO(edisonn): warn about missing required field, assert for known good pdf s
7 return false;
8 }
9
10 bool SkPdfViewerPreferencesDictionary::HideMenubar() const {
11 bool ret;
12 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideMenubar", "", &ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return false;
15 }
16
17 bool SkPdfViewerPreferencesDictionary::HideWindowUI() const {
18 bool ret;
19 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideWindowUI" , "", &ret)) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return false;
22 }
23
24 bool SkPdfViewerPreferencesDictionary::FitWindow() const {
25 bool ret;
26 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FitWindow", " ", &ret)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return false;
29 }
30
31 bool SkPdfViewerPreferencesDictionary::CenterWindow() const {
32 bool ret;
33 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CenterWindow" , "", &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return false;
36 }
37
38 bool SkPdfViewerPreferencesDictionary::DisplayDocTitle() const {
39 bool ret;
40 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DisplayDocTit le", "", &ret)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return false;
43 }
44
45 std::string SkPdfViewerPreferencesDictionary::NonFullScreenPageMode() const {
46 std::string ret;
47 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NonFullScreen PageMode", "", &ret)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return "";
50 }
51
52 std::string SkPdfViewerPreferencesDictionary::Direction() const {
53 std::string ret;
54 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Direction", " ", &ret)) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return "";
57 }
58
59 std::string SkPdfViewerPreferencesDictionary::ViewArea() const {
60 std::string ret;
61 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewArea", "" , &ret)) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return "";
64 }
65
66 std::string SkPdfViewerPreferencesDictionary::ViewClip() const {
67 std::string ret;
68 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewClip", "" , &ret)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return "";
71 }
72
73 std::string SkPdfViewerPreferencesDictionary::PrintArea() const {
74 std::string ret;
75 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintArea", " ", &ret)) return ret;
76 // TODO(edisonn): warn about missing required field, assert for known good pdf s
77 return "";
78 }
79
80 std::string SkPdfViewerPreferencesDictionary::PrintClip() const {
81 std::string ret;
82 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintClip", " ", &ret)) return ret;
83 // TODO(edisonn): warn about missing required field, assert for known good pdf s
84 return "";
85 }
86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698