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

Unified Diff: experimental/PdfViewer/pdfparser/native/SkPdfObject.h

Issue 21604003: pdfviewer: debug the parameters for snc, and for resolveReference (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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/pdfparser/native/SkNativeParsedPDF.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/pdfparser/native/SkPdfObject.h
===================================================================
--- experimental/PdfViewer/pdfparser/native/SkPdfObject.h (revision 10494)
+++ experimental/PdfViewer/pdfparser/native/SkPdfObject.h (working copy)
@@ -123,6 +123,7 @@
case kString_PdfObjectType:
case kHexString_PdfObjectType:
case kKeyword_PdfObjectType:
+ case kName_PdfObjectType:
return (const char*)fStr.fBuffer;
default:
@@ -136,6 +137,7 @@
case kString_PdfObjectType:
case kHexString_PdfObjectType:
case kKeyword_PdfObjectType:
+ case kName_PdfObjectType:
return fStr.fBytes;
default:
@@ -682,6 +684,7 @@
case kString_PdfObjectType:
case kHexString_PdfObjectType:
case kKeyword_PdfObjectType:
+ case kName_PdfObjectType:
return fStr;
default:
@@ -830,13 +833,13 @@
return true;
}
- void appendSpaces(SkString* str, int level) {
+ static void appendSpaces(SkString* str, int level) {
for (int i = 0 ; i < level; i++) {
str->append(" ");
}
}
- SkString toString(int firstRowLevel = 0, int level = 0) {
+ SkString toString(int firstRowLevel = 0, int level = 0) const {
SkString str;
appendSpaces(&str, firstRowLevel);
switch (fObjectType) {
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698