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

Unified Diff: experimental/PdfViewer/autogen/SkPdfType3ShadingDictionary_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/SkPdfType3ShadingDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/autogen/SkPdfType3ShadingDictionary_autogen.h (revision 9765)
+++ experimental/PdfViewer/autogen/SkPdfType3ShadingDictionary_autogen.h (working copy)
@@ -52,13 +52,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", NULL));
}
- SkPdfArray* Coords() const {
- SkPdfArray* ret;
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfArray* Coords() const;
/** (Optional) An array of two numbers [ t0 t1 ] specifying the limiting values of a
* parametric variable t. The variable is considered to vary linearly between these
* two values as the color gradient varies between the starting and ending circles.
@@ -69,13 +63,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", NULL));
}
- SkPdfArray* Domain() const {
- SkPdfArray* ret;
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfArray* Domain() const;
/** (Required) A 1-in, n-out function or an array of n 1-in, 1-out functions (where n
* is the number of color components in the shading dictionary's color space). The
* function(s) are called with values of the parametric variable t in the domain de-
@@ -88,13 +76,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL));
}
- SkPdfFunction Function() const {
- SkPdfFunction ret;
- if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return SkPdfFunction();
- }
-
+ SkPdfFunction Function() const;
/** (Optional) An array of two boolean values specifying whether to extend the
* shading beyond the starting and ending circles, respectively. Default value:
* [false false].
@@ -103,13 +85,7 @@
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", NULL));
}
- SkPdfArray* Extend() const {
- SkPdfArray* ret;
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", &ret)) return ret;
- // TODO(edisonn): warn about missing required field, assert for known good pdfs
- return NULL;
- }
-
+ SkPdfArray* Extend() const;
};
#endif // __DEFINED__SkPdfType3ShadingDictionary

Powered by Google App Engine
This is Rietveld 408576698