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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfTrueTypeFontDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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__SkPdfTrueTypeFontDictionary 1 #ifndef __DEFINED__SkPdfTrueTypeFontDictionary
2 #define __DEFINED__SkPdfTrueTypeFontDictionary 2 #define __DEFINED__SkPdfTrueTypeFontDictionary
3 3
4 #include "SkPdfUtils.h" 4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h" 5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h" 6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfType1FontDictionary_autogen.h" 7 #include "SkPdfType1FontDictionary_autogen.h"
8 8
9 class SkPdfTrueTypeFontDictionary : public SkPdfType1FontDictionary { 9 class SkPdfTrueTypeFontDictionary : public SkPdfType1FontDictionary {
10 public: 10 public:
(...skipping 18 matching lines...) Expand all
29 SkPdfTrueTypeFontDictionary(const SkPdfTrueTypeFontDictionary& from) : SkPdfTy pe1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} 29 SkPdfTrueTypeFontDictionary(const SkPdfTrueTypeFontDictionary& from) : SkPdfTy pe1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {}
30 30
31 virtual bool valid() const {return true;} 31 virtual bool valid() const {return true;}
32 32
33 SkPdfTrueTypeFontDictionary& operator=(const SkPdfTrueTypeFontDictionary& from ) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur n *this;} 33 SkPdfTrueTypeFontDictionary& operator=(const SkPdfTrueTypeFontDictionary& from ) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur n *this;}
34 34
35 bool has_Subtype() const { 35 bool has_Subtype() const {
36 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty pe", "", NULL)); 36 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty pe", "", NULL));
37 } 37 }
38 38
39 std::string Subtype() const { 39 std::string Subtype() const;
40 std::string ret;
41 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", " ", &ret)) return ret;
42 // TODO(edisonn): warn about missing required field, assert for known good p dfs
43 return "";
44 }
45
46 }; 40 };
47 41
48 #endif // __DEFINED__SkPdfTrueTypeFontDictionary 42 #endif // __DEFINED__SkPdfTrueTypeFontDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698