| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |