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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfOpiVersionDictionary_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__SkPdfOpiVersionDictionary 1 #ifndef __DEFINED__SkPdfOpiVersionDictionary
2 #define __DEFINED__SkPdfOpiVersionDictionary 2 #define __DEFINED__SkPdfOpiVersionDictionary
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 "SkPdfDictionary_autogen.h" 7 #include "SkPdfDictionary_autogen.h"
8 8
9 // Entry in an OPI version dictionary 9 // Entry in an OPI version dictionary
10 class SkPdfOpiVersionDictionary : public SkPdfDictionary { 10 class SkPdfOpiVersionDictionary : public SkPdfDictionary {
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 SkPdfOpiVersionDictionary& operator=(const SkPdfOpiVersionDictionary& from) {t his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t his;} 526 SkPdfOpiVersionDictionary& operator=(const SkPdfOpiVersionDictionary& from) {t his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t his;}
527 527
528 /** (Required; PDF 1.2) An OPI dictionary specifying the attributes of this prox y 528 /** (Required; PDF 1.2) An OPI dictionary specifying the attributes of this prox y
529 * (see Tables 9.50 and 9.51). The key for this entry must be the name 1.3 or 2 .0, 529 * (see Tables 9.50 and 9.51). The key for this entry must be the name 1.3 or 2 .0,
530 * identifying the version of OPI to which the proxy corresponds. 530 * identifying the version of OPI to which the proxy corresponds.
531 **/ 531 **/
532 bool has_version_number() const { 532 bool has_version_number() const {
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi on_number", "", NULL)); 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi on_number", "", NULL));
534 } 534 }
535 535
536 SkPdfDictionary* version_number() const { 536 SkPdfDictionary* version_number() const;
537 SkPdfDictionary* ret;
538 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi on_number", "", &ret)) return ret;
539 // TODO(edisonn): warn about missing required field, assert for known good p dfs
540 return NULL;
541 }
542
543 }; 537 };
544 538
545 #endif // __DEFINED__SkPdfOpiVersionDictionary 539 #endif // __DEFINED__SkPdfOpiVersionDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698