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

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

Issue 17063014: map podofo to SkPdfObject for SkPdfArray::operator[] (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
« no previous file with comments | « no previous file | experimental/PdfViewer/SkPdfFont.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef __DEFINED__SkPdfArray 1 #ifndef __DEFINED__SkPdfArray
2 #define __DEFINED__SkPdfArray 2 #define __DEFINED__SkPdfArray
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfObject_autogen.h" 6 #include "SkPdfObject_autogen.h"
7 7
8 class SkPdfArray : public SkPdfObject { 8 class SkPdfArray : public SkPdfObject {
9 public: 9 public:
10 virtual SkPdfObjectType getType() const { return kArray_SkPdfObjectType;} 10 virtual SkPdfObjectType getType() const { return kArray_SkPdfObjectType;}
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 virtual const SkPdfStream* asStream() const {return NULL;} 540 virtual const SkPdfStream* asStream() const {return NULL;}
541 541
542 virtual SkPdfString* asString() {return NULL;} 542 virtual SkPdfString* asString() {return NULL;}
543 virtual const SkPdfString* asString() const {return NULL;} 543 virtual const SkPdfString* asString() const {return NULL;}
544 544
545 virtual SkPdfHexString* asHexString() {return NULL;} 545 virtual SkPdfHexString* asHexString() {return NULL;}
546 virtual const SkPdfHexString* asHexString() const {return NULL;} 546 virtual const SkPdfHexString* asHexString() const {return NULL;}
547 547
548 public: 548 public:
549 const int size() const {return fPodofoObj->GetArray().GetSize();} 549 const int size() const {return fPodofoObj->GetArray().GetSize();}
550 SkPdfObject* operator[](int i) const {return new SkPdfObject(fPodofoDoc, &fPod ofoObj->GetArray()[i]);} 550 SkPdfObject* operator[](int i) const { SkPdfObject* ret = NULL; skpdfmap(*fPo dofoDoc, fPodofoObj->GetArray()[i], &ret); return ret; }
551 private: 551 private:
552 public: 552 public:
553 SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} 553 SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {}
554 554
555 virtual bool valid() const {return true;} 555 virtual bool valid() const {return true;}
556 556
557 SkPdfArray& operator=(const SkPdfArray& from) {this->fPodofoDoc = from.fPodofo Doc; this->fPodofoObj = from.fPodofoObj; return *this;} 557 SkPdfArray& operator=(const SkPdfArray& from) {this->fPodofoDoc = from.fPodofo Doc; this->fPodofoObj = from.fPodofoObj; return *this;}
558 558
559 }; 559 };
560 560
561 #endif // __DEFINED__SkPdfArray 561 #endif // __DEFINED__SkPdfArray
OLDNEW
« no previous file with comments | « no previous file | experimental/PdfViewer/SkPdfFont.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698