| Index: experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.cpp
|
| ===================================================================
|
| --- experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.cpp (revision 9812)
|
| +++ experimental/PdfViewer/autogen/SkPdfImageDictionary_autogen.cpp (working copy)
|
| @@ -1,141 +0,0 @@
|
| -#include "SkPdfImageDictionary_autogen.h"
|
| -
|
| -std::string SkPdfImageDictionary::Type() const {
|
| - std::string ret;
|
| - if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return "";
|
| -}
|
| -
|
| -std::string SkPdfImageDictionary::Subtype() const {
|
| - std::string ret;
|
| - if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return "";
|
| -}
|
| -
|
| -long SkPdfImageDictionary::Width() const {
|
| - long ret;
|
| - if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return 0;
|
| -}
|
| -
|
| -long SkPdfImageDictionary::Height() const {
|
| - long ret;
|
| - if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return 0;
|
| -}
|
| -
|
| -std::string SkPdfImageDictionary::getColorSpaceAsName() const {
|
| - std::string ret = "";
|
| - if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return "";
|
| -}
|
| -
|
| -SkPdfArray* SkPdfImageDictionary::getColorSpaceAsArray() const {
|
| - SkPdfArray* ret = NULL;
|
| - if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorSpace", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
| -
|
| -long SkPdfImageDictionary::BitsPerComponent() const {
|
| - long ret;
|
| - if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return 0;
|
| -}
|
| -
|
| -std::string SkPdfImageDictionary::Intent() const {
|
| - std::string ret;
|
| - if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Intent", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return "";
|
| -}
|
| -
|
| -bool SkPdfImageDictionary::ImageMask() const {
|
| - bool ret;
|
| - if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ImageMask", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return false;
|
| -}
|
| -
|
| -SkPdfStream* SkPdfImageDictionary::getMaskAsStream() const {
|
| - SkPdfStream* ret = NULL;
|
| - if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
| -
|
| -SkPdfArray* SkPdfImageDictionary::getMaskAsArray() const {
|
| - SkPdfArray* ret = NULL;
|
| - if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mask", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
| -
|
| -SkPdfStream* SkPdfImageDictionary::SMask() const {
|
| - SkPdfStream* ret;
|
| - if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SMask", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
| -
|
| -SkPdfArray* SkPdfImageDictionary::Decode() const {
|
| - SkPdfArray* ret;
|
| - if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
| -
|
| -bool SkPdfImageDictionary::Interpolate() const {
|
| - bool ret;
|
| - if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Interpolate", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return false;
|
| -}
|
| -
|
| -SkPdfArray* SkPdfImageDictionary::Alternates() const {
|
| - SkPdfArray* ret;
|
| - if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alternates", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
| -
|
| -std::string SkPdfImageDictionary::Name() const {
|
| - std::string ret;
|
| - if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return "";
|
| -}
|
| -
|
| -long SkPdfImageDictionary::StructParent() const {
|
| - long ret;
|
| - if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return 0;
|
| -}
|
| -
|
| -std::string SkPdfImageDictionary::ID() const {
|
| - std::string ret;
|
| - if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return "";
|
| -}
|
| -
|
| -SkPdfDictionary* SkPdfImageDictionary::OPI() const {
|
| - SkPdfDictionary* ret;
|
| - if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "OPI", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
| -
|
| -SkPdfStream* SkPdfImageDictionary::Metadata() const {
|
| - SkPdfStream* ret;
|
| - if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata", "", &ret)) return ret;
|
| - // TODO(edisonn): warn about missing required field, assert for known good pdfs
|
| - return NULL;
|
| -}
|
|
|