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

Unified Diff: experimental/PdfViewer/SkPdfBlockLevelStructureElementsDictionary_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
« no previous file with comments | « experimental/PdfViewer/SkPdfBeadDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfBoolean_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfBlockLevelStructureElementsDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfBlockLevelStructureElementsDictionary_autogen.h (revision 9669)
+++ experimental/PdfViewer/SkPdfBlockLevelStructureElementsDictionary_autogen.h (working copy)
@@ -7,8 +7,8 @@
class SkPdfBlockLevelStructureElementsDictionary : public SkPdfDictionary {
public:
- virtual SkPdfObjectType getType() const { return kObjectDictionaryBlockLevelStructureElementsDictionary_SkPdfObjectType;}
- virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectDictionaryBlockLevelStructureElementsDictionary_SkPdfObjectType + 1);}
+ virtual SkPdfObjectType getType() const { return kBlockLevelStructureElementsDictionary_SkPdfObjectType;}
+ virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBlockLevelStructureElementsDictionary_SkPdfObjectType + 1);}
public:
virtual SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() {return this;}
virtual const SkPdfBlockLevelStructureElementsDictionary* asBlockLevelStructureElementsDictionary() const {return this;}
@@ -573,7 +573,7 @@
bool isWidthANumber() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return false;
- return ret->podofo()->GetDataType() == ePdfDataType_Real;
+ return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number;
}
double getWidthAsNumber() const {
@@ -599,7 +599,7 @@
bool isHeightANumber() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return false;
- return ret->podofo()->GetDataType() == ePdfDataType_Real;
+ return ret->podofo()->GetDataType() == ePdfDataType_Real || ret->podofo()->GetDataType() == ePdfDataType_Number;
}
double getHeightAsNumber() const {
« no previous file with comments | « experimental/PdfViewer/SkPdfBeadDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfBoolean_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698