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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfFDFFileAnnotationDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (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
OLDNEW
1 #ifndef __DEFINED__SkPdfFDFFileAnnotationDictionary 1 #ifndef __DEFINED__SkPdfFDFFileAnnotationDictionary
2 #define __DEFINED__SkPdfFDFFileAnnotationDictionary 2 #define __DEFINED__SkPdfFDFFileAnnotationDictionary
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 // Additional entry for annotation dictionaries in an FDF file 9 // Additional entry for annotation dictionaries in an FDF file
10 class SkPdfFDFFileAnnotationDictionary : public SkPdfDictionary { 10 class SkPdfFDFFileAnnotationDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfFDFFileAnnotationDictionary& operator=(const SkPdfFDFFileAnnotationDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;} 526 SkPdfFDFFileAnnotationDictionary& operator=(const SkPdfFDFFileAnnotationDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;}
527 527
528 /** (Required for annotations in FDF files) The ordinal page number on which 528 /** (Required for annotations in FDF files) The ordinal page number on which
529 * this annotation should appear, where page 0 is the first page. 529 * this annotation should appear, where page 0 is the first page.
530 **/ 530 **/
531 bool has_Page() const { 531 bool has_Page() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page" , "", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page" , "", NULL));
533 } 533 }
534 534
535 long Page() const { 535 long Page() const;
536 long ret;
537 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", &ret)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return 0;
540 }
541
542 }; 536 };
543 537
544 #endif // __DEFINED__SkPdfFDFFileAnnotationDictionary 538 #endif // __DEFINED__SkPdfFDFFileAnnotationDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698