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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/SkPdfObject.h

Issue 21125002: pdfviewer: more plumming for soft masks (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 #ifndef EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKPDFOBJECT_H_ 1 #ifndef EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKPDFOBJECT_H_
2 #define EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKPDFOBJECT_H_ 2 #define EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKPDFOBJECT_H_
3 3
4 #include <stdint.h> 4 #include <stdint.h>
5 #include <string.h> 5 #include <string.h>
6 #include <string> 6 #include <string>
7 #include "SkTDArray.h" 7 #include "SkTDArray.h"
8 #include "SkTDict.h" 8 #include "SkTDict.h"
9 #include "SkRect.h" 9 #include "SkRect.h"
10 #include "SkMatrix.h" 10 #include "SkMatrix.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 case kHexString_PdfObjectType: 124 case kHexString_PdfObjectType:
125 case kKeyword_PdfObjectType: 125 case kKeyword_PdfObjectType:
126 return (const char*)fStr.fBuffer; 126 return (const char*)fStr.fBuffer;
127 127
128 default: 128 default:
129 // TODO(edisonn): report/warning 129 // TODO(edisonn): report/warning
130 return NULL; 130 return NULL;
131 } 131 }
132 } 132 }
133 133
134 size_t len() const { 134 size_t lenstr() const {
135 switch (fObjectType) { 135 switch (fObjectType) {
136 case kString_PdfObjectType: 136 case kString_PdfObjectType:
137 case kHexString_PdfObjectType: 137 case kHexString_PdfObjectType:
138 case kKeyword_PdfObjectType: 138 case kKeyword_PdfObjectType:
139 return fStr.fBytes; 139 return fStr.fBytes;
140 140
141 default: 141 default:
142 // TODO(edisonn): report/warning 142 // TODO(edisonn): report/warning
143 return 0; 143 return 0;
144 } 144 }
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 SkPdfName() : SkPdfObject() { 910 SkPdfName() : SkPdfObject() {
911 SkPdfObject::makeName((const unsigned char*)"", this); 911 SkPdfObject::makeName((const unsigned char*)"", this);
912 } 912 }
913 public: 913 public:
914 SkPdfName(char* name) : SkPdfObject() { 914 SkPdfName(char* name) : SkPdfObject() {
915 this->makeName((const unsigned char*)name, this); 915 this->makeName((const unsigned char*)name, this);
916 } 916 }
917 }; 917 };
918 918
919 #endif // EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKPDFOBJECT_H_ 919 #endif // EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKPDFOBJECT_H_
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698