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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfURIActionDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (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 "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 // Additional entries specific to a URI action 9 // Additional entries specific to a URI action
10 class SkPdfURIActionDictionary : public SkPdfDictionary { 10 class SkPdfURIActionDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfURIActionDictionary& operator=(const SkPdfURIActionDictionary& from) {thi s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi s;} 526 SkPdfURIActionDictionary& operator=(const SkPdfURIActionDictionary& from) {thi s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi s;}
527 527
528 /** (Required) The type of action that this dictionary describes; must be URI fo r a URI 528 /** (Required) The type of action that this dictionary describes; must be URI fo r a URI
529 * action. 529 * action.
530 **/ 530 **/
531 bool has_S() const { 531 bool has_S() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", " ", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", " ", NULL));
533 } 533 }
534 534
535 std::string S() const { 535 std::string S() const;
536 std::string ret;
537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re t)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return "";
540 }
541
542 /** (Required) The uniform resource identifier to resolve, encoded in 7-bit ASCI I. 536 /** (Required) The uniform resource identifier to resolve, encoded in 7-bit ASCI I.
543 **/ 537 **/
544 bool has_URI() const { 538 bool has_URI() const {
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", NULL)); 539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", NULL));
546 } 540 }
547 541
548 std::string URI() const { 542 std::string URI() const;
549 std::string ret;
550 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URI", "", &ret)) return ret;
551 // TODO(edisonn): warn about missing required field, assert for known good p dfs
552 return "";
553 }
554
555 /** (Optional) A flag specifying whether to track the mouse position when the UR I is re- 543 /** (Optional) A flag specifying whether to track the mouse position when the UR I is re-
556 * solved (see below). Default value: false. 544 * solved (see below). Default value: false.
557 * This entry applies only to actions triggered by the user's clicking an annot ation; it is 545 * This entry applies only to actions triggered by the user's clicking an annot ation; it is
558 * ignored for actions associated with outline items or with a document's OpenA ction 546 * ignored for actions associated with outline items or with a document's OpenA ction
559 * entry. 547 * entry.
560 **/ 548 **/
561 bool has_IsMap() const { 549 bool has_IsMap() const {
562 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap ", "", NULL)); 550 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap ", "", NULL));
563 } 551 }
564 552
565 bool IsMap() const { 553 bool IsMap() const;
566 bool ret;
567 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "IsMap", "", &ret)) return ret;
568 // TODO(edisonn): warn about missing required field, assert for known good p dfs
569 return false;
570 }
571
572 }; 554 };
573 555
574 #endif // __DEFINED__SkPdfURIActionDictionary 556 #endif // __DEFINED__SkPdfURIActionDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698