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

Side by Side Diff: experimental/PdfViewer/pdf_viewer_main.cpp

Issue 17063014: map podofo to SkPdfObject for SkPdfArray::operator[] (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/PdfViewer/generate_code.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkDevice.h" 9 #include "SkDevice.h"
10 #include "SkForceLinking.h" 10 #include "SkForceLinking.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const char* key, 136 const char* key,
137 const char* abr, 137 const char* abr,
138 SkRect* data); 138 SkRect* data);
139 139
140 bool FunctionFromDictionary(const PdfMemDocument* pdfDoc, 140 bool FunctionFromDictionary(const PdfMemDocument* pdfDoc,
141 const PdfDictionary& dict, 141 const PdfDictionary& dict,
142 const char* key, 142 const char* key,
143 const char* abr, 143 const char* abr,
144 SkPdfFunction* data); 144 SkPdfFunction* data);
145 145
146 bool skpdfmap(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdf Object** out);
146 147
147 #include "SkPdfHeaders_autogen.h" 148 #include "SkPdfHeaders_autogen.h"
148 #include "SkPdfPodofoMapper_autogen.h" 149 #include "SkPdfPodofoMapper_autogen.h"
149 #include "SkPdfParser.h" 150 #include "SkPdfParser.h"
150 #include "SkPdfFont.h" 151 #include "SkPdfFont.h"
151 152
152 // TODO(edisonn): fix the mess with the files. 153 // TODO(edisonn): fix the mess with the files.
153 #include "SkPdfFont.cpp" 154 #include "SkPdfFont.cpp"
154 155
156 bool skpdfmap(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPdf Object** out) {
157 return PodofoMapper::map(podofoDoc, podofoObj, out);
158 }
159
160
155 bool ArrayFromDictionary(const PdfMemDocument* pdfDoc, 161 bool ArrayFromDictionary(const PdfMemDocument* pdfDoc,
156 const PdfDictionary& dict, 162 const PdfDictionary& dict,
157 const char* key, 163 const char* key,
158 const char* abr, 164 const char* abr,
159 SkPdfArray* data) {return false;} 165 SkPdfArray* data) {return false;}
160 166
161 bool FileSpecFromDictionary(const PdfMemDocument* pdfDoc, 167 bool FileSpecFromDictionary(const PdfMemDocument* pdfDoc,
162 const PdfDictionary& dict, 168 const PdfDictionary& dict,
163 const char* key, 169 const char* key,
164 const char* abr, 170 const char* abr,
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after
3065 } 3071 }
3066 3072
3067 return 0; 3073 return 0;
3068 } 3074 }
3069 3075
3070 #if !defined SK_BUILD_FOR_IOS 3076 #if !defined SK_BUILD_FOR_IOS
3071 int main(int argc, char * const argv[]) { 3077 int main(int argc, char * const argv[]) {
3072 return tool_main(argc, (char**) argv); 3078 return tool_main(argc, (char**) argv);
3073 } 3079 }
3074 #endif 3080 #endif
OLDNEW
« no previous file with comments | « experimental/PdfViewer/generate_code.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698