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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfViewerPreferencesDictionary_autogen.cpp
===================================================================
--- experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfViewerPreferencesDictionary_autogen.cpp (revision 0)
+++ experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfViewerPreferencesDictionary_autogen.cpp (revision 0)
@@ -0,0 +1,148 @@
+#include "SkPdfViewerPreferencesDictionary_autogen.h"
+
+
+#include "SkPdfNativeDoc.h"
+bool SkPdfViewerPreferencesDictionary::HideToolbar(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("HideToolbar", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return false;
+}
+
+bool SkPdfViewerPreferencesDictionary::has_HideToolbar() const {
+ return get("HideToolbar", "") != NULL;
+}
+
+bool SkPdfViewerPreferencesDictionary::HideMenubar(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("HideMenubar", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return false;
+}
+
+bool SkPdfViewerPreferencesDictionary::has_HideMenubar() const {
+ return get("HideMenubar", "") != NULL;
+}
+
+bool SkPdfViewerPreferencesDictionary::HideWindowUI(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("HideWindowUI", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return false;
+}
+
+bool SkPdfViewerPreferencesDictionary::has_HideWindowUI() const {
+ return get("HideWindowUI", "") != NULL;
+}
+
+bool SkPdfViewerPreferencesDictionary::FitWindow(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("FitWindow", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return false;
+}
+
+bool SkPdfViewerPreferencesDictionary::has_FitWindow() const {
+ return get("FitWindow", "") != NULL;
+}
+
+bool SkPdfViewerPreferencesDictionary::CenterWindow(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("CenterWindow", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return false;
+}
+
+bool SkPdfViewerPreferencesDictionary::has_CenterWindow() const {
+ return get("CenterWindow", "") != NULL;
+}
+
+bool SkPdfViewerPreferencesDictionary::DisplayDocTitle(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("DisplayDocTitle", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return false;
+}
+
+bool SkPdfViewerPreferencesDictionary::has_DisplayDocTitle() const {
+ return get("DisplayDocTitle", "") != NULL;
+}
+
+SkString SkPdfViewerPreferencesDictionary::NonFullScreenPageMode(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("NonFullScreenPageMode", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return SkString();
+}
+
+bool SkPdfViewerPreferencesDictionary::has_NonFullScreenPageMode() const {
+ return get("NonFullScreenPageMode", "") != NULL;
+}
+
+SkString SkPdfViewerPreferencesDictionary::Direction(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("Direction", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return SkString();
+}
+
+bool SkPdfViewerPreferencesDictionary::has_Direction() const {
+ return get("Direction", "") != NULL;
+}
+
+SkString SkPdfViewerPreferencesDictionary::ViewArea(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("ViewArea", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return SkString();
+}
+
+bool SkPdfViewerPreferencesDictionary::has_ViewArea() const {
+ return get("ViewArea", "") != NULL;
+}
+
+SkString SkPdfViewerPreferencesDictionary::ViewClip(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("ViewClip", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return SkString();
+}
+
+bool SkPdfViewerPreferencesDictionary::has_ViewClip() const {
+ return get("ViewClip", "") != NULL;
+}
+
+SkString SkPdfViewerPreferencesDictionary::PrintArea(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("PrintArea", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return SkString();
+}
+
+bool SkPdfViewerPreferencesDictionary::has_PrintArea() const {
+ return get("PrintArea", "") != NULL;
+}
+
+SkString SkPdfViewerPreferencesDictionary::PrintClip(SkPdfNativeDoc* doc) {
+ SkPdfNativeObject* ret = get("PrintClip", "");
+ if (doc) {ret = doc->resolveReference(ret);}
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
+ // TODO(edisonn): warn about missing default value for optional fields
+ return SkString();
+}
+
+bool SkPdfViewerPreferencesDictionary::has_PrintClip() const {
+ return get("PrintClip", "") != NULL;
+}
+

Powered by Google App Engine
This is Rietveld 408576698