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

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

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (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__SkPdfNamedActionsDictionary 1 #ifndef __DEFINED__SkPdfNamedActionsDictionary
2 #define __DEFINED__SkPdfNamedActionsDictionary 2 #define __DEFINED__SkPdfNamedActionsDictionary
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfDictionary_autogen.h" 6 #include "SkPdfDictionary_autogen.h"
7 7
8 // Additional entries specific to named actions
8 class SkPdfNamedActionsDictionary : public SkPdfDictionary { 9 class SkPdfNamedActionsDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kNamedActionsDictionary_SkPdf ObjectType;} 11 virtual SkPdfObjectType getType() const { return kNamedActionsDictionary_SkPdf ObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNamedAc tionsDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kNamedAc tionsDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return this;} 14 virtual SkPdfNamedActionsDictionary* asNamedActionsDictionary() {return this;}
14 virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {r eturn this;} 15 virtual const SkPdfNamedActionsDictionary* asNamedActionsDictionary() const {r eturn this;}
15 16
16 private: 17 private:
17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;}
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 public: 516 public:
516 private: 517 private:
517 public: 518 public:
518 SkPdfNamedActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfO bject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfNamedActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfO bject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfNamedActionsDictionary& operator=(const SkPdfNamedActionsDictionary& from ) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur n *this;} 523 SkPdfNamedActionsDictionary& operator=(const SkPdfNamedActionsDictionary& from ) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur n *this;}
523 524
525 /** (Required) The type of action that this dictionary describes; must be Named for a named
526 * action.
527 **/
528 bool has_S() const {
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", " ", NULL));
530 }
531
524 std::string S() const { 532 std::string S() const {
525 std::string ret; 533 std::string ret;
526 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re t)) return ret; 534 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re t)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 535 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return ""; 536 return "";
529 } 537 }
530 538
539 /** (Required) The name of the action to be performed (see Table 8.45).
540 **/
541 bool has_N() const {
542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", " ", NULL));
543 }
544
531 std::string N() const { 545 std::string N() const {
532 std::string ret; 546 std::string ret;
533 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &re t)) return ret; 547 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &re t)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 548 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return ""; 549 return "";
536 } 550 }
537 551
538 }; 552 };
539 553
540 #endif // __DEFINED__SkPdfNamedActionsDictionary 554 #endif // __DEFINED__SkPdfNamedActionsDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698