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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfViewerPreferencesDictionary_autogen.cpp

Issue 22900010: pdfviewer: check in pdfapi classes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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
4 #include "SkPdfNativeDoc.h"
5 bool SkPdfViewerPreferencesDictionary::HideToolbar(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("HideToolbar", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
9 // TODO(edisonn): warn about missing default value for optional fields
10 return false;
11 }
12
13 bool SkPdfViewerPreferencesDictionary::has_HideToolbar() const {
14 return get("HideToolbar", "") != NULL;
15 }
16
17 bool SkPdfViewerPreferencesDictionary::HideMenubar(SkPdfNativeDoc* doc) {
18 SkPdfNativeObject* ret = get("HideMenubar", "");
19 if (doc) {ret = doc->resolveReference(ret);}
20 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
21 // TODO(edisonn): warn about missing default value for optional fields
22 return false;
23 }
24
25 bool SkPdfViewerPreferencesDictionary::has_HideMenubar() const {
26 return get("HideMenubar", "") != NULL;
27 }
28
29 bool SkPdfViewerPreferencesDictionary::HideWindowUI(SkPdfNativeDoc* doc) {
30 SkPdfNativeObject* ret = get("HideWindowUI", "");
31 if (doc) {ret = doc->resolveReference(ret);}
32 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
33 // TODO(edisonn): warn about missing default value for optional fields
34 return false;
35 }
36
37 bool SkPdfViewerPreferencesDictionary::has_HideWindowUI() const {
38 return get("HideWindowUI", "") != NULL;
39 }
40
41 bool SkPdfViewerPreferencesDictionary::FitWindow(SkPdfNativeDoc* doc) {
42 SkPdfNativeObject* ret = get("FitWindow", "");
43 if (doc) {ret = doc->resolveReference(ret);}
44 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
45 // TODO(edisonn): warn about missing default value for optional fields
46 return false;
47 }
48
49 bool SkPdfViewerPreferencesDictionary::has_FitWindow() const {
50 return get("FitWindow", "") != NULL;
51 }
52
53 bool SkPdfViewerPreferencesDictionary::CenterWindow(SkPdfNativeDoc* doc) {
54 SkPdfNativeObject* ret = get("CenterWindow", "");
55 if (doc) {ret = doc->resolveReference(ret);}
56 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
57 // TODO(edisonn): warn about missing default value for optional fields
58 return false;
59 }
60
61 bool SkPdfViewerPreferencesDictionary::has_CenterWindow() const {
62 return get("CenterWindow", "") != NULL;
63 }
64
65 bool SkPdfViewerPreferencesDictionary::DisplayDocTitle(SkPdfNativeDoc* doc) {
66 SkPdfNativeObject* ret = get("DisplayDocTitle", "");
67 if (doc) {ret = doc->resolveReference(ret);}
68 if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->boolValue();
69 // TODO(edisonn): warn about missing default value for optional fields
70 return false;
71 }
72
73 bool SkPdfViewerPreferencesDictionary::has_DisplayDocTitle() const {
74 return get("DisplayDocTitle", "") != NULL;
75 }
76
77 SkString SkPdfViewerPreferencesDictionary::NonFullScreenPageMode(SkPdfNativeDoc* doc) {
78 SkPdfNativeObject* ret = get("NonFullScreenPageMode", "");
79 if (doc) {ret = doc->resolveReference(ret);}
80 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
81 // TODO(edisonn): warn about missing default value for optional fields
82 return SkString();
83 }
84
85 bool SkPdfViewerPreferencesDictionary::has_NonFullScreenPageMode() const {
86 return get("NonFullScreenPageMode", "") != NULL;
87 }
88
89 SkString SkPdfViewerPreferencesDictionary::Direction(SkPdfNativeDoc* doc) {
90 SkPdfNativeObject* ret = get("Direction", "");
91 if (doc) {ret = doc->resolveReference(ret);}
92 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
93 // TODO(edisonn): warn about missing default value for optional fields
94 return SkString();
95 }
96
97 bool SkPdfViewerPreferencesDictionary::has_Direction() const {
98 return get("Direction", "") != NULL;
99 }
100
101 SkString SkPdfViewerPreferencesDictionary::ViewArea(SkPdfNativeDoc* doc) {
102 SkPdfNativeObject* ret = get("ViewArea", "");
103 if (doc) {ret = doc->resolveReference(ret);}
104 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
105 // TODO(edisonn): warn about missing default value for optional fields
106 return SkString();
107 }
108
109 bool SkPdfViewerPreferencesDictionary::has_ViewArea() const {
110 return get("ViewArea", "") != NULL;
111 }
112
113 SkString SkPdfViewerPreferencesDictionary::ViewClip(SkPdfNativeDoc* doc) {
114 SkPdfNativeObject* ret = get("ViewClip", "");
115 if (doc) {ret = doc->resolveReference(ret);}
116 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
117 // TODO(edisonn): warn about missing default value for optional fields
118 return SkString();
119 }
120
121 bool SkPdfViewerPreferencesDictionary::has_ViewClip() const {
122 return get("ViewClip", "") != NULL;
123 }
124
125 SkString SkPdfViewerPreferencesDictionary::PrintArea(SkPdfNativeDoc* doc) {
126 SkPdfNativeObject* ret = get("PrintArea", "");
127 if (doc) {ret = doc->resolveReference(ret);}
128 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
129 // TODO(edisonn): warn about missing default value for optional fields
130 return SkString();
131 }
132
133 bool SkPdfViewerPreferencesDictionary::has_PrintArea() const {
134 return get("PrintArea", "") != NULL;
135 }
136
137 SkString SkPdfViewerPreferencesDictionary::PrintClip(SkPdfNativeDoc* doc) {
138 SkPdfNativeObject* ret = get("PrintClip", "");
139 if (doc) {ret = doc->resolveReference(ret);}
140 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
141 // TODO(edisonn): warn about missing default value for optional fields
142 return SkString();
143 }
144
145 bool SkPdfViewerPreferencesDictionary::has_PrintClip() const {
146 return get("PrintClip", "") != NULL;
147 }
148
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698