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

Side by Side Diff: xfa/fwl/basewidget/fxmath_barcodeimp.cpp

Issue 1890443002: Remove IFX_Barcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « xfa/fwl/basewidget/fxmath_barcodeimp.h ('k') | xfa/fwl/basewidget/ifx_barcode.h » ('j') | 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 "xfa/fwl/basewidget/fxmath_barcodeimp.h" 7 #include "xfa/fwl/basewidget/fxmath_barcodeimp.h"
8 8
9 #include "xfa/fxbarcode/cbc_codabar.h" 9 #include "xfa/fxbarcode/cbc_codabar.h"
10 #include "xfa/fxbarcode/cbc_code128.h" 10 #include "xfa/fxbarcode/cbc_code128.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 continue; 379 continue;
380 } 380 }
381 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode); 381 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode);
382 if (errorCode == BCExceptionNO) { 382 if (errorCode == BCExceptionNO) {
383 return ret; 383 return ret;
384 } 384 }
385 } 385 }
386 errorCode = BCExceptionUnSupportedBarcode; 386 errorCode = BCExceptionUnSupportedBarcode;
387 return CFX_WideString(); 387 return CFX_WideString();
388 } 388 }
389 IFX_Barcode* FX_Barcode_Create(BC_TYPE type) {
390 CFX_Barcode* pBarcode = new CFX_Barcode;
391 if (pBarcode->Create(type)) {
392 return pBarcode;
393 }
394 pBarcode->Release();
395 return NULL;
396 }
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fxmath_barcodeimp.h ('k') | xfa/fwl/basewidget/ifx_barcode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698