diff options
Diffstat (limited to 'chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType5ShadingDictionary_autogen.h')
-rw-r--r-- | chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType5ShadingDictionary_autogen.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType5ShadingDictionary_autogen.h b/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType5ShadingDictionary_autogen.h new file mode 100644 index 00000000000..07151d37a12 --- /dev/null +++ b/chromium/third_party/skia/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType5ShadingDictionary_autogen.h @@ -0,0 +1,50 @@ +/* + * Copyright 2013 Google Inc. + + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef SkPdfType5ShadingDictionary_DEFINED +#define SkPdfType5ShadingDictionary_DEFINED + +#include "SkPdfShadingDictionary_autogen.h" + +// Additional entries specific to a type 5 shading dictionary +class SkPdfType5ShadingDictionary : public SkPdfShadingDictionary { +public: +public: + SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return this;} + const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return this;} + +private: + SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return (SkPdfType1ShadingDictionary*)this;} + const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return (const SkPdfType1ShadingDictionary*)this;} + + SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return (SkPdfType2ShadingDictionary*)this;} + const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return (const SkPdfType2ShadingDictionary*)this;} + + SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return (SkPdfType3ShadingDictionary*)this;} + const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return (const SkPdfType3ShadingDictionary*)this;} + + SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return (SkPdfType4ShadingDictionary*)this;} + const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return (const SkPdfType4ShadingDictionary*)this;} + + SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return (SkPdfType6ShadingDictionary*)this;} + const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return (const SkPdfType6ShadingDictionary*)this;} + +public: + bool valid() const {return true;} + int64_t BitsPerCoordinate(SkPdfNativeDoc* doc); + bool has_BitsPerCoordinate() const; + int64_t BitsPerComponent(SkPdfNativeDoc* doc); + bool has_BitsPerComponent() const; + int64_t VerticesPerRow(SkPdfNativeDoc* doc); + bool has_VerticesPerRow() const; + SkPdfArray* Decode(SkPdfNativeDoc* doc); + bool has_Decode() const; + SkPdfFunction Function(SkPdfNativeDoc* doc); + bool has_Function() const; +}; + +#endif // SkPdfType5ShadingDictionary_DEFINED |