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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfRadioButtonFieldDictionary_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__SkPdfRadioButtonFieldDictionary 1 #ifndef __DEFINED__SkPdfRadioButtonFieldDictionary
2 #define __DEFINED__SkPdfRadioButtonFieldDictionary 2 #define __DEFINED__SkPdfRadioButtonFieldDictionary
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 radio button field 9 // Additional entry specific to a radio button field
10 class SkPdfRadioButtonFieldDictionary : public SkPdfDictionary { 10 class SkPdfRadioButtonFieldDictionary : public SkPdfDictionary {
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 /** (Optional; inheritable; PDF 1.4) An array of text strings to be used in 528 /** (Optional; inheritable; PDF 1.4) An array of text strings to be used in
529 * place of the V entries for the values of the widget annotations repre- 529 * place of the V entries for the values of the widget annotations repre-
530 * senting the individual radio buttons. Each element in the array repre- 530 * senting the individual radio buttons. Each element in the array repre-
531 * sents the export value of the corresponding widget annotation in the 531 * sents the export value of the corresponding widget annotation in the
532 * Kids array of the radio button field. 532 * Kids array of the radio button field.
533 **/ 533 **/
534 bool has_Opt() const { 534 bool has_Opt() const {
535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL)); 535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL));
536 } 536 }
537 537
538 SkPdfArray* Opt() const { 538 SkPdfArray* Opt() const;
539 SkPdfArray* ret;
540 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return NULL;
543 }
544
545 }; 539 };
546 540
547 #endif // __DEFINED__SkPdfRadioButtonFieldDictionary 541 #endif // __DEFINED__SkPdfRadioButtonFieldDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698