OLD | NEW |
1 #include "SkPdfViewerPreferencesDictionary_autogen.h" | 1 #include "SkPdfViewerPreferencesDictionary_autogen.h" |
2 | 2 |
3 bool SkPdfViewerPreferencesDictionary::HideToolbar() const { | 3 bool SkPdfViewerPreferencesDictionary::HideToolbar() const { |
4 bool ret; | 4 bool ret; |
5 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HideToolbar",
"", &ret)) return 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 | 6 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
7 return false; | 7 return false; |
8 } | 8 } |
9 | 9 |
10 bool SkPdfViewerPreferencesDictionary::HideMenubar() const { | 10 bool SkPdfViewerPreferencesDictionary::HideMenubar() const { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | 76 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
77 return ""; | 77 return ""; |
78 } | 78 } |
79 | 79 |
80 std::string SkPdfViewerPreferencesDictionary::PrintClip() const { | 80 std::string SkPdfViewerPreferencesDictionary::PrintClip() const { |
81 std::string ret; | 81 std::string ret; |
82 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PrintClip", "
", &ret)) return 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 | 83 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
84 return ""; | 84 return ""; |
85 } | 85 } |
| 86 |
OLD | NEW |