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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfTextFieldDictionary_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__SkPdfTextFieldDictionary 1 #ifndef __DEFINED__SkPdfTextFieldDictionary
2 #define __DEFINED__SkPdfTextFieldDictionary 2 #define __DEFINED__SkPdfTextFieldDictionary
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 entry specific to a text field 9 // Additional entry specific to a text field
10 class SkPdfTextFieldDictionary : public SkPdfDictionary { 10 class SkPdfTextFieldDictionary : 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 SkPdfTextFieldDictionary& operator=(const SkPdfTextFieldDictionary& from) {thi s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi s;} 526 SkPdfTextFieldDictionary& operator=(const SkPdfTextFieldDictionary& from) {thi s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi s;}
527 527
528 /** (Optional; inheritable) The maximum length of the field's text, in character s. 528 /** (Optional; inheritable) The maximum length of the field's text, in character s.
529 **/ 529 **/
530 bool has_MaxLen() const { 530 bool has_MaxLen() const {
531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLe n", "", NULL)); 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLe n", "", NULL));
532 } 532 }
533 533
534 long MaxLen() const { 534 long MaxLen() const;
535 long ret;
536 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxLen", "" , &ret)) return ret;
537 // TODO(edisonn): warn about missing required field, assert for known good p dfs
538 return 0;
539 }
540
541 }; 535 };
542 536
543 #endif // __DEFINED__SkPdfTextFieldDictionary 537 #endif // __DEFINED__SkPdfTextFieldDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698