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

Side by Side Diff: fpdfsdk/src/fpdf_ext.cpp

Issue 297993002: Fix a typo with PAGEMODE_UNKNOWN. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « fpdfsdk/include/fpdf_ext.h ('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 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../include/fsdk_define.h" 7 #include "../include/fsdk_define.h"
8 #include "../include/fpdf_ext.h" 8 #include "../include/fpdf_ext.h"
9 9
10 #define FPDFSDK_UNSUPPORT_CALL 100 10 #define FPDFSDK_UNSUPPORT_CALL 100
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 if(pInterForm->HasXFAForm()) 212 if(pInterForm->HasXFAForm())
213 { 213 {
214 FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM); 214 FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM);
215 } 215 }
216 delete pInterForm; 216 delete pInterForm;
217 } 217 }
218 } 218 }
219 219
220 DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document) 220 DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document)
221 { 221 {
222 » if (!document) return PAGEMODE_UNKONOWN; 222 » if (!document) return PAGEMODE_UNKNOWN;
223 CPDF_Dictionary *pRoot = ((CPDF_Document*)document)->GetRoot(); 223 CPDF_Dictionary *pRoot = ((CPDF_Document*)document)->GetRoot();
224 if (!pRoot) 224 if (!pRoot)
225 » » return PAGEMODE_UNKONOWN; 225 » » return PAGEMODE_UNKNOWN;
226 CPDF_Object* pName = pRoot->GetElement("PageMode"); 226 CPDF_Object* pName = pRoot->GetElement("PageMode");
227 if (!pName) 227 if (!pName)
228 return PAGEMODE_USENONE; 228 return PAGEMODE_USENONE;
229 CFX_ByteString strPageMode = pName->GetString(); 229 CFX_ByteString strPageMode = pName->GetString();
230 230
231 if (strPageMode.IsEmpty()||strPageMode.EqualNoCase(FX_BSTR("UseNone"))) 231 if (strPageMode.IsEmpty()||strPageMode.EqualNoCase(FX_BSTR("UseNone")))
232 return PAGEMODE_USENONE; 232 return PAGEMODE_USENONE;
233 else if (strPageMode.EqualNoCase(FX_BSTR("UseOutlines"))) 233 else if (strPageMode.EqualNoCase(FX_BSTR("UseOutlines")))
234 return PAGEMODE_USEOUTLINES; 234 return PAGEMODE_USEOUTLINES;
235 else if (strPageMode.EqualNoCase(FX_BSTR("UseThumbs"))) 235 else if (strPageMode.EqualNoCase(FX_BSTR("UseThumbs")))
236 return PAGEMODE_USETHUMBS; 236 return PAGEMODE_USETHUMBS;
237 else if (strPageMode.EqualNoCase(FX_BSTR("FullScreen"))) 237 else if (strPageMode.EqualNoCase(FX_BSTR("FullScreen")))
238 return PAGEMODE_FULLSCREEN; 238 return PAGEMODE_FULLSCREEN;
239 else if (strPageMode.EqualNoCase(FX_BSTR("UseOC"))) 239 else if (strPageMode.EqualNoCase(FX_BSTR("UseOC")))
240 return PAGEMODE_USEOC; 240 return PAGEMODE_USEOC;
241 else if (strPageMode.EqualNoCase(FX_BSTR("UseAttachments"))) 241 else if (strPageMode.EqualNoCase(FX_BSTR("UseAttachments")))
242 return PAGEMODE_USEATTACHMENTS; 242 return PAGEMODE_USEATTACHMENTS;
243 243
244 » return PAGEMODE_UNKONOWN; 244 » return PAGEMODE_UNKNOWN;
245 } 245 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/fpdf_ext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698