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

Side by Side Diff: experimental/PdfViewer/SkPdfAnnotationActionsDictionary_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__SkPdfAnnotationActionsDictionary 1 #ifndef __DEFINED__SkPdfAnnotationActionsDictionary
2 #define __DEFINED__SkPdfAnnotationActionsDictionary 2 #define __DEFINED__SkPdfAnnotationActionsDictionary
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 // Entries in an annotation's additional-actions dictionary
8 class SkPdfAnnotationActionsDictionary : public SkPdfDictionary { 9 class SkPdfAnnotationActionsDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kAnnotationActionsDictionary_ SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kAnnotationActionsDictionary_ SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAnnotat ionActionsDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kAnnotat ionActionsDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {ret urn this;} 14 virtual SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary() {ret urn this;}
14 virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary( ) const {return this;} 15 virtual const SkPdfAnnotationActionsDictionary* asAnnotationActionsDictionary( ) 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 SkPdfAnnotationActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfAnnotationActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfAnnotationActionsDictionary& operator=(const SkPdfAnnotationActionsDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;} 523 SkPdfAnnotationActionsDictionary& operator=(const SkPdfAnnotationActionsDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;}
523 524
525 /** (Optional; PDF 1.2) An action to be performed when the cursor enters the ann otation's
526 * active area.
527 **/
528 bool has_E() const {
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", " ", NULL));
530 }
531
524 SkPdfDictionary* E() const { 532 SkPdfDictionary* E() const {
525 SkPdfDictionary* ret; 533 SkPdfDictionary* ret;
526 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", " ", &ret)) return ret; 534 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", " ", &ret)) 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 NULL; 536 return NULL;
529 } 537 }
530 538
539 /** (Optional; PDF 1.2) An action to be performed when the cursor exits the anno tation's
540 * active area.
541 **/
542 bool has_X() const {
543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", " ", NULL));
544 }
545
531 SkPdfDictionary* X() const { 546 SkPdfDictionary* X() const {
532 SkPdfDictionary* ret; 547 SkPdfDictionary* ret;
533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", " ", &ret)) return ret; 548 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", " ", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 549 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return NULL; 550 return NULL;
536 } 551 }
537 552
553 /** (Optional; PDF 1.2) An action to be performed when the mouse button is press ed
554 * inside the annotation's active area. (The name D stands for "down.")
555 **/
556 bool has_D() const {
557 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", NULL));
558 }
559
538 SkPdfDictionary* D() const { 560 SkPdfDictionary* D() const {
539 SkPdfDictionary* ret; 561 SkPdfDictionary* ret;
540 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", &ret)) return ret; 562 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 563 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return NULL; 564 return NULL;
543 } 565 }
544 566
567 /** (Optional; PDF 1.2) An action to be performed when the mouse button is relea sed
568 * inside the annotation's active area. (The name U stands for "up.")
569 * Note: For backward compatibility, the A entry in an annotation dictionary, i f present,
570 * takes precedence over this entry (see Table 8.10 on page 490).
571 **/
572 bool has_U() const {
573 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", NULL));
574 }
575
545 SkPdfDictionary* U() const { 576 SkPdfDictionary* U() const {
546 SkPdfDictionary* ret; 577 SkPdfDictionary* ret;
547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", &ret)) return ret; 578 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", &ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs 579 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return NULL; 580 return NULL;
550 } 581 }
551 582
583 /** (Optional; PDF 1.2; widget annotations only) An action to be performed when the
584 * annotation receives the input focus.
585 **/
586 bool has_Fo() const {
587 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", NULL));
588 }
589
552 SkPdfDictionary* Fo() const { 590 SkPdfDictionary* Fo() const {
553 SkPdfDictionary* ret; 591 SkPdfDictionary* ret;
554 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", &ret)) return ret; 592 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", &ret)) return ret;
555 // TODO(edisonn): warn about missing required field, assert for known good p dfs 593 // TODO(edisonn): warn about missing required field, assert for known good p dfs
556 return NULL; 594 return NULL;
557 } 595 }
558 596
597 /** (Optional; PDF 1.2; widget annotations only) (Uppercase B, lowercase L) An a ction to
598 * be performed when the annotation loses the input focus. (The name Bl stands for
599 * "blurred.")
600 **/
601 bool has_Bl() const {
602 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", NULL));
603 }
604
559 SkPdfDictionary* Bl() const { 605 SkPdfDictionary* Bl() const {
560 SkPdfDictionary* ret; 606 SkPdfDictionary* ret;
561 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", &ret)) return ret; 607 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", &ret)) return ret;
562 // TODO(edisonn): warn about missing required field, assert for known good p dfs 608 // TODO(edisonn): warn about missing required field, assert for known good p dfs
563 return NULL; 609 return NULL;
564 } 610 }
565 611
566 }; 612 };
567 613
568 #endif // __DEFINED__SkPdfAnnotationActionsDictionary 614 #endif // __DEFINED__SkPdfAnnotationActionsDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698