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

Unified Diff: experimental/PdfViewer/pdfparser/native/SkPdfObject.h

Issue 19243003: pdfviewer: native inline images support (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/pdfparser/native/SkPdfObject.h
===================================================================
--- experimental/PdfViewer/pdfparser/native/SkPdfObject.h (revision 10010)
+++ experimental/PdfViewer/pdfparser/native/SkPdfObject.h (working copy)
@@ -520,6 +520,10 @@
return fObjectType == kName_PdfObjectType;
}
+ bool isName(const char* name) const {
+ return fObjectType == kName_PdfObjectType && fStr.fBytes == strlen(name) && strncmp((const char*)fStr.fBuffer, name, fStr.fBytes) == 0;
+ }
+
bool isArray() const {
return fObjectType == kArray_PdfObjectType;
}
@@ -863,4 +867,14 @@
class SkPdfReal : public SkPdfObject {};
class SkPdfNumber : public SkPdfObject {};
+class SkPdfName : public SkPdfObject {
+ SkPdfName() : SkPdfObject() {
+ SkPdfObject::makeName((unsigned char*)"", this);
+ }
+public:
+ SkPdfName(char* name) : SkPdfObject() {
+ this->makeName((unsigned char*)name, this);
+ }
+};
+
#endif // EXPERIMENTAL_PDFVIEWER_PDFPARSER_NATIVE_SKPDFOBJECT_H_
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698