| #include "SkPdfSoundActionDictionary_autogen.h" |
| |
| std::string SkPdfSoundActionDictionary::S() const { |
| std::string ret; |
| if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; |
| // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| return ""; |
| } |
| |
| SkPdfStream* SkPdfSoundActionDictionary::Sound() const { |
| SkPdfStream* ret; |
| if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "", &ret)) return ret; |
| // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| return NULL; |
| } |
| |
| double SkPdfSoundActionDictionary::Volume() const { |
| double ret; |
| if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Volume", "", &ret)) return ret; |
| // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| return 0; |
| } |
| |
| bool SkPdfSoundActionDictionary::Synchronous() const { |
| bool ret; |
| if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Synchronous", "", &ret)) return ret; |
| // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| return false; |
| } |
| |
| bool SkPdfSoundActionDictionary::Repeat() const { |
| bool ret; |
| if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Repeat", "", &ret)) return ret; |
| // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| return false; |
| } |
| |
| bool SkPdfSoundActionDictionary::Mix() const { |
| bool ret; |
| if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mix", "", &ret)) return ret; |
| // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| return false; |
| } |