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

Side by Side Diff: experimental/PdfViewer/SkPdfURIActionDictionary_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__SkPdfURIActionDictionary 1 #ifndef __DEFINED__SkPdfURIActionDictionary
2 #define __DEFINED__SkPdfURIActionDictionary 2 #define __DEFINED__SkPdfURIActionDictionary
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 a URI action
8 class SkPdfURIActionDictionary : public SkPdfDictionary { 9 class SkPdfURIActionDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kURIActionDictionary_SkPdfObj ectType;} 11 virtual SkPdfObjectType getType() const { return kURIActionDictionary_SkPdfObj ectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kURIActi onDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kURIActi onDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfURIActionDictionary* asURIActionDictionary() {return this;} 14 virtual SkPdfURIActionDictionary* asURIActionDictionary() {return this;}
14 virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return this;} 15 virtual const SkPdfURIActionDictionary* asURIActionDictionary() const {return 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 SkPdfURIActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje ct* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfURIActionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje ct* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfURIActionDictionary& operator=(const SkPdfURIActionDictionary& from) {thi s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi s;} 523 SkPdfURIActionDictionary& operator=(const SkPdfURIActionDictionary& from) {thi s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi s;}
523 524
525 /** (Required) The type of action that this dictionary describes; must be URI fo r a URI
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 uniform resource identifier to resolve, encoded in 7-bit ASCI I.
540 **/
541 bool has_URI() const {
542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", NULL));
543 }
544
531 std::string URI() const { 545 std::string URI() const {
532 std::string ret; 546 std::string ret;
533 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", &ret)) return ret; 547 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", &ret)) 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
552 /** (Optional) A flag specifying whether to track the mouse position when the UR I is re-
553 * solved (see below). Default value: false.
554 * This entry applies only to actions triggered by the user's clicking an annot ation; it is
555 * ignored for actions associated with outline items or with a document's OpenA ction
556 * entry.
557 **/
558 bool has_IsMap() const {
559 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap ", "", NULL));
560 }
561
538 bool IsMap() const { 562 bool IsMap() const {
539 bool ret; 563 bool ret;
540 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap", "", &ret)) return ret; 564 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap", "", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 565 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return false; 566 return false;
543 } 567 }
544 568
545 }; 569 };
546 570
547 #endif // __DEFINED__SkPdfURIActionDictionary 571 #endif // __DEFINED__SkPdfURIActionDictionary
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfType6ShadingDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfURIDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698