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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfURLAliasDictionary_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__SkPdfURLAliasDictionary 1 #ifndef __DEFINED__SkPdfURLAliasDictionary
2 #define __DEFINED__SkPdfURLAliasDictionary 2 #define __DEFINED__SkPdfURLAliasDictionary
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 a URL alias dictionary 9 // Entries in a URL alias dictionary
10 class SkPdfURLAliasDictionary : public SkPdfDictionary { 10 class SkPdfURLAliasDictionary : public SkPdfDictionary {
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 virtual bool valid() const {return true;} 524 virtual bool valid() const {return true;}
525 525
526 SkPdfURLAliasDictionary& operator=(const SkPdfURLAliasDictionary& from) {this- >fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this; } 526 SkPdfURLAliasDictionary& operator=(const SkPdfURLAliasDictionary& from) {this- >fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this; }
527 527
528 /** (Required) The destination URL to which all of the chains specified by the C entry lead. 528 /** (Required) The destination URL to which all of the chains specified by the C entry lead.
529 **/ 529 **/
530 bool has_U() const { 530 bool has_U() const {
531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", NULL)); 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", NULL));
532 } 532 }
533 533
534 std::string U() const { 534 std::string U() const;
535 std::string ret;
536 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", "", & ret)) return ret;
537 // TODO(edisonn): warn about missing required field, assert for known good p dfs
538 return "";
539 }
540
541 /** (Optional) An array of one or more arrays of strings, each representing a ch ain of URLs 535 /** (Optional) An array of one or more arrays of strings, each representing a ch ain of URLs
542 * leading to the common destination specified by U. 536 * leading to the common destination specified by U.
543 **/ 537 **/
544 bool has_C() const { 538 bool has_C() const {
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", " ", NULL)); 539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", " ", NULL));
546 } 540 }
547 541
548 SkPdfArray* C() const { 542 SkPdfArray* C() const;
549 SkPdfArray* ret;
550 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &r et)) return ret;
551 // TODO(edisonn): warn about missing required field, assert for known good p dfs
552 return NULL;
553 }
554
555 }; 543 };
556 544
557 #endif // __DEFINED__SkPdfURLAliasDictionary 545 #endif // __DEFINED__SkPdfURLAliasDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698