Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType2ShadingDictionary_autogen.h

Issue 1266093003: Remove experimental/PdfViewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-03 (Monday) 10:43:56 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkPdfType2ShadingDictionary_DEFINED
9 #define SkPdfType2ShadingDictionary_DEFINED
10
11 #include "SkPdfShadingDictionary_autogen.h"
12
13 // Additional entries specific to a type 2 shading dictionary
14 class SkPdfType2ShadingDictionary : public SkPdfShadingDictionary {
15 public:
16 public:
17 SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return this;}
18 const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return t his;}
19
20 private:
21 SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return (SkPdfType1Sh adingDictionary*)this;}
22 const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return ( const SkPdfType1ShadingDictionary*)this;}
23
24 SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return (SkPdfType3Sh adingDictionary*)this;}
25 const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return ( const SkPdfType3ShadingDictionary*)this;}
26
27 SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return (SkPdfType4Sh adingDictionary*)this;}
28 const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return ( const SkPdfType4ShadingDictionary*)this;}
29
30 SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return (SkPdfType5Sh adingDictionary*)this;}
31 const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return ( const SkPdfType5ShadingDictionary*)this;}
32
33 SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return (SkPdfType6Sh adingDictionary*)this;}
34 const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return ( const SkPdfType6ShadingDictionary*)this;}
35
36 public:
37 bool valid() const {return true;}
38 SkPdfArray* Coords(SkPdfNativeDoc* doc);
39 bool has_Coords() const;
40 SkPdfArray* Domain(SkPdfNativeDoc* doc);
41 bool has_Domain() const;
42 SkPdfFunction Function(SkPdfNativeDoc* doc);
43 bool has_Function() const;
44 SkPdfArray* Extend(SkPdfNativeDoc* doc);
45 bool has_Extend() const;
46 };
47
48 #endif // SkPdfType2ShadingDictionary_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698