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

Unified Diff: experimental/PdfViewer/SkPdfCatalogDictionary_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/SkPdfCatalogDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfCatalogDictionary_autogen.h (revision 9669)
+++ experimental/PdfViewer/SkPdfCatalogDictionary_autogen.h (working copy)
@@ -7,8 +7,8 @@
class SkPdfCatalogDictionary : public SkPdfDictionary {
public:
- virtual SkPdfObjectType getType() const { return kObjectDictionaryCatalogDictionary_SkPdfObjectType;}
- virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectDictionaryCatalogDictionary_SkPdfObjectType + 1);}
+ virtual SkPdfObjectType getType() const { return kCatalogDictionary_SkPdfObjectType;}
+ virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCatalogDictionary_SkPdfObjectType + 1);}
public:
virtual SkPdfCatalogDictionary* asCatalogDictionary() {return this;}
virtual const SkPdfCatalogDictionary* asCatalogDictionary() const {return this;}
@@ -545,7 +545,7 @@
bool isPageLabelsANumber() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PageLabels", "", &ret)) return false;
- return ret->podofo()->GetDataType() == ePdfDataType_Real;
+ return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number;
}
double getPageLabelsAsNumber() const {

Powered by Google App Engine
This is Rietveld 408576698