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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfWebCaptureInformationDictionary_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__SkPdfWebCaptureInformationDictionary 1 #ifndef __DEFINED__SkPdfWebCaptureInformationDictionary
2 #define __DEFINED__SkPdfWebCaptureInformationDictionary 2 #define __DEFINED__SkPdfWebCaptureInformationDictionary
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 // Entries in the Web Capture information dictionary 9 // Entries in the Web Capture information dictionary
10 class SkPdfWebCaptureInformationDictionary : public SkPdfDictionary { 10 class SkPdfWebCaptureInformationDictionary : public SkPdfDictionary {
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 SkPdfWebCaptureInformationDictionary& operator=(const SkPdfWebCaptureInformati onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from .fPodofoObj; return *this;} 526 SkPdfWebCaptureInformationDictionary& operator=(const SkPdfWebCaptureInformati onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from .fPodofoObj; return *this;}
527 527
528 /** (Required) The Web Capture version number. For PDF 1.3, the version number i s 1.0. 528 /** (Required) The Web Capture version number. For PDF 1.3, the version number i s 1.0.
529 * Note: This value is a single real number, not a major and minor version numb er. Thus, for 529 * Note: This value is a single real number, not a major and minor version numb er. Thus, for
530 * example, a version number of 1.2 would be considered greater than 1.15. 530 * example, a version number of 1.2 would be considered greater than 1.15.
531 **/ 531 **/
532 bool has_V() const { 532 bool has_V() const {
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", " ", NULL)); 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", " ", NULL));
534 } 534 }
535 535
536 double V() const { 536 double V() const;
537 double ret;
538 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", & ret)) return ret;
539 // TODO(edisonn): warn about missing required field, assert for known good p dfs
540 return 0;
541 }
542
543 /** (Optional) An array of indirect references to Web Capture command dictionari es (see 537 /** (Optional) An array of indirect references to Web Capture command dictionari es (see
544 * "Command Dictionaries" on page 672) describing commands that were used in bu ilding 538 * "Command Dictionaries" on page 672) describing commands that were used in bu ilding
545 * the PDF file. The commands appear in the array in the order in which they we re executed 539 * the PDF file. The commands appear in the array in the order in which they we re executed
546 * in building the file. 540 * in building the file.
547 **/ 541 **/
548 bool has_C() const { 542 bool has_C() const {
549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", " ", NULL)); 543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", " ", NULL));
550 } 544 }
551 545
552 SkPdfArray* C() const { 546 SkPdfArray* C() const;
553 SkPdfArray* ret;
554 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &r et)) return ret;
555 // TODO(edisonn): warn about missing required field, assert for known good p dfs
556 return NULL;
557 }
558
559 }; 547 };
560 548
561 #endif // __DEFINED__SkPdfWebCaptureInformationDictionary 549 #endif // __DEFINED__SkPdfWebCaptureInformationDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698