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

Side by Side Diff: experimental/PdfViewer/SkPdfMultiMasterFontDictionary_autogen.h

Issue 17395005: put each generated pdf api class in a file (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfMultiMasterFontDictionary 1 #ifndef __DEFINED__SkPdfMultiMasterFontDictionary
2 #define __DEFINED__SkPdfMultiMasterFontDictionary 2 #define __DEFINED__SkPdfMultiMasterFontDictionary
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfType1FontDictionary_autogen.h" 6 #include "SkPdfType1FontDictionary_autogen.h"
7 7
8 class SkPdfMultiMasterFontDictionary : public SkPdfType1FontDictionary { 8 class SkPdfMultiMasterFontDictionary : public SkPdfType1FontDictionary {
9 public: 9 public:
10 virtual SkPdfObjectType getType() const { return kObjectDictionaryFontDictiona ryType1FontDictionaryMultiMasterFontDictionary_SkPdfObjectType;} 10 virtual SkPdfObjectType getType() const { return kMultiMasterFontDictionary_Sk PdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectD ictionaryFontDictionaryType1FontDictionaryMultiMasterFontDictionary_SkPdfObjectT ype + 1);} 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMultiMa sterFontDictionary_SkPdfObjectType + 1);}
12 public: 12 public:
13 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return this;} 13 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return this;}
14 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co nst {return this;} 14 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co nst {return this;}
15 15
16 private: 16 private:
17 public: 17 public:
18 private: 18 private:
19 public: 19 public:
20 SkPdfMultiMasterFontDictionary(const PdfMemDocument* podofoDoc = NULL, const P dfObject* podofoObj = NULL) : SkPdfType1FontDictionary(podofoDoc, podofoObj) {} 20 SkPdfMultiMasterFontDictionary(const PdfMemDocument* podofoDoc = NULL, const P dfObject* podofoObj = NULL) : SkPdfType1FontDictionary(podofoDoc, podofoObj) {}
21 21
22 virtual bool valid() const {return true;} 22 virtual bool valid() const {return true;}
23 23
24 SkPdfMultiMasterFontDictionary& operator=(const SkPdfMultiMasterFontDictionary & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} 24 SkPdfMultiMasterFontDictionary& operator=(const SkPdfMultiMasterFontDictionary & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
25 25
26 std::string Subtype() const { 26 std::string Subtype() const {
27 std::string ret; 27 std::string ret;
28 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", " ", &ret)) return ret; 28 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", " ", &ret)) return ret;
29 // TODO(edisonn): warn about missing required field, assert for known good p dfs 29 // TODO(edisonn): warn about missing required field, assert for known good p dfs
30 return ""; 30 return "";
31 } 31 }
32 32
33 }; 33 };
34 34
35 #endif // __DEFINED__SkPdfMultiMasterFontDictionary 35 #endif // __DEFINED__SkPdfMultiMasterFontDictionary
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfMovieDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfNameDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698