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

Unified Diff: experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_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 side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_autogen.h (revision 9765)
+++ experimental/PdfViewer/autogen/SkPdfChoiceFieldDictionary_autogen.h (working copy)
@@ -535,13 +535,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL));
}
- SkPdfArray* Opt() const {
- SkPdfArray* ret;
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfArray* Opt() const;
/** (Optional; inheritable) For scrollable list boxes, the top index (the index in the Opt array
* of the first option visible in the list).
**/
@@ -549,13 +543,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TI", "", NULL));
}
- long TI() const {
- long ret;
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TI", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return 0;
- }
-
+ long TI() const;
/** (Sometimes required, otherwise optional; inheritable; PDF 1.4) For choice fields that allow
* multiple selection (MultiSelect flag set), an array of integers, sorted in ascending order,
* representing the zero-based indices in the Opt array of the currently selected option
@@ -568,13 +556,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", NULL));
}
- SkPdfArray* I() const {
- SkPdfArray* ret;
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfArray* I() const;
};
#endif // __DEFINED__SkPdfChoiceFieldDictionary

Powered by Google App Engine
This is Rietveld 408576698