| Index: experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp
|
| ===================================================================
|
| --- experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp (revision 0)
|
| +++ experimental/PdfViewer/autogen/SkPdfViewerPreferencesDictionary_autogen.cpp (revision 0)
|
| @@ -0,0 +1,86 @@
|
| +#include "SkPdfViewerPreferencesDictionary_autogen.h"
|
| +
|
| +bool SkPdfViewerPreferencesDictionary::HideToolbar() const {
|
| + bool ret;
|
| + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideToolbar", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return false;
|
| +}
|
| +
|
| +bool SkPdfViewerPreferencesDictionary::HideMenubar() const {
|
| + bool ret;
|
| + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideMenubar", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return false;
|
| +}
|
| +
|
| +bool SkPdfViewerPreferencesDictionary::HideWindowUI() const {
|
| + bool ret;
|
| + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideWindowUI", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return false;
|
| +}
|
| +
|
| +bool SkPdfViewerPreferencesDictionary::FitWindow() const {
|
| + bool ret;
|
| + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FitWindow", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return false;
|
| +}
|
| +
|
| +bool SkPdfViewerPreferencesDictionary::CenterWindow() const {
|
| + bool ret;
|
| + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CenterWindow", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return false;
|
| +}
|
| +
|
| +bool SkPdfViewerPreferencesDictionary::DisplayDocTitle() const {
|
| + bool ret;
|
| + if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DisplayDocTitle", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return false;
|
| +}
|
| +
|
| +std::string SkPdfViewerPreferencesDictionary::NonFullScreenPageMode() const {
|
| + std::string ret;
|
| + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "NonFullScreenPageMode", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return "";
|
| +}
|
| +
|
| +std::string SkPdfViewerPreferencesDictionary::Direction() const {
|
| + std::string ret;
|
| + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Direction", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return "";
|
| +}
|
| +
|
| +std::string SkPdfViewerPreferencesDictionary::ViewArea() const {
|
| + std::string ret;
|
| + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewArea", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return "";
|
| +}
|
| +
|
| +std::string SkPdfViewerPreferencesDictionary::ViewClip() const {
|
| + std::string ret;
|
| + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ViewClip", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return "";
|
| +}
|
| +
|
| +std::string SkPdfViewerPreferencesDictionary::PrintArea() const {
|
| + std::string ret;
|
| + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintArea", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return "";
|
| +}
|
| +
|
| +std::string SkPdfViewerPreferencesDictionary::PrintClip() const {
|
| + std::string ret;
|
| + if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintClip", "", &ret)) return ret;
|
| + // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| + return "";
|
| +}
|
| +
|
|
|