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

Unified Diff: experimental/PdfViewer/SkPdfPodofoMapper_autogen.h

Issue 17395005: put each generated pdf api class in a file (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/SkPdfPodofoMapper_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfPodofoMapper_autogen.h (revision 9669)
+++ experimental/PdfViewer/SkPdfPodofoMapper_autogen.h (working copy)
@@ -14,11 +14,9 @@
if (map(podofoDoc, podofoObj, (SkPdfArray**)out)) return true;
if (map(podofoDoc, podofoObj, (SkPdfBoolean**)out)) return true;
if (map(podofoDoc, podofoObj, (SkPdfDictionary**)out)) return true;
- if (map(podofoDoc, podofoObj, (SkPdfHexString**)out)) return true;
if (map(podofoDoc, podofoObj, (SkPdfInteger**)out)) return true;
if (map(podofoDoc, podofoObj, (SkPdfName**)out)) return true;
if (map(podofoDoc, podofoObj, (SkPdfNull**)out)) return true;
- if (map(podofoDoc, podofoObj, (SkPdfNumber**)out)) return true;
if (map(podofoDoc, podofoObj, (SkPdfReference**)out)) return true;
if (map(podofoDoc, podofoObj, (SkPdfString**)out)) return true;
@@ -57,6 +55,7 @@
static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfInteger** out) {
if (!isInteger(podofoDoc, podofoObj)) return false;
+ if (map(podofoDoc, podofoObj, (SkPdfNumber**)out)) return true;
*out = new SkPdfInteger(&podofoDoc, &podofoObj);
return true;
@@ -117,6 +116,7 @@
static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdfString** out) {
if (!isString(podofoDoc, podofoObj)) return false;
+ if (map(podofoDoc, podofoObj, (SkPdfHexString**)out)) return true;
*out = new SkPdfString(&podofoDoc, &podofoObj);
return true;
@@ -2330,11 +2330,11 @@
}
static bool isInteger(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
- return podofoObj.GetDataType() == ePdfDataType_Number;
+ return podofoObj.GetDataType() == ePdfDataType_Number || podofoObj.GetDataType() == ePdfDataType_Real;
}
static bool isNumber(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
- return podofoObj.GetDataType() == ePdfDataType_Real;
+ return podofoObj.GetDataType() == ePdfDataType_Number || podofoObj.GetDataType() == ePdfDataType_Real;
}
static bool isName(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
@@ -2350,7 +2350,7 @@
}
static bool isString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {
- return podofoObj.GetDataType() == ePdfDataType_String;
+ return podofoObj.GetDataType() == ePdfDataType_String || podofoObj.GetDataType() == ePdfDataType_HexString;
}
static bool isHexString(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj) {

Powered by Google App Engine
This is Rietveld 408576698