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

Side by Side Diff: xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp

Issue 2067903002: Make code compile with clang_use_chrome_plugin (part III) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 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
« no previous file with comments | « xfa/fxbarcode/oned/BC_OnedUPCAWriter.h ('k') | xfa/fxbarcode/pdf417/BC_PDF417.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 // Original code is licensed as follows: 6 // Original code is licensed as follows:
7 /* 7 /*
8 * Copyright 2010 ZXing authors 8 * Copyright 2010 ZXing authors
9 * 9 *
10 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * Licensed under the Apache License, Version 2.0 (the "License");
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return nullptr; 98 return nullptr;
99 } 99 }
100 CFX_ByteString toEAN13String = '0' + contents; 100 CFX_ByteString toEAN13String = '0' + contents;
101 m_iDataLenth = 13; 101 m_iDataLenth = 13;
102 uint8_t* ret = m_subWriter->Encode(toEAN13String, BCFORMAT_EAN_13, outWidth, 102 uint8_t* ret = m_subWriter->Encode(toEAN13String, BCFORMAT_EAN_13, outWidth,
103 outHeight, hints, e); 103 outHeight, hints, e);
104 BC_EXCEPTION_CHECK_ReturnValue(e, nullptr); 104 BC_EXCEPTION_CHECK_ReturnValue(e, nullptr);
105 return ret; 105 return ret;
106 } 106 }
107 107
108 uint8_t* CBC_OnedUPCAWriter::Encode(const CFX_ByteString& contents,
109 int32_t& outLength,
110 int32_t& e) {
111 return nullptr;
112 }
113
108 void CBC_OnedUPCAWriter::ShowChars(const CFX_WideStringC& contents, 114 void CBC_OnedUPCAWriter::ShowChars(const CFX_WideStringC& contents,
109 CFX_DIBitmap* pOutBitmap, 115 CFX_DIBitmap* pOutBitmap,
110 CFX_RenderDevice* device, 116 CFX_RenderDevice* device,
111 const CFX_Matrix* matrix, 117 const CFX_Matrix* matrix,
112 int32_t barWidth, 118 int32_t barWidth,
113 int32_t multiple, 119 int32_t multiple,
114 int32_t& e) { 120 int32_t& e) {
115 if (!device && !pOutBitmap) { 121 if (!device && !pOutBitmap) {
116 e = BCExceptionIllegalArgument; 122 e = BCExceptionIllegalArgument;
117 return; 123 return;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 FX_Free(pCharPos); 276 FX_Free(pCharPos);
271 } 277 }
272 278
273 void CBC_OnedUPCAWriter::RenderResult(const CFX_WideStringC& contents, 279 void CBC_OnedUPCAWriter::RenderResult(const CFX_WideStringC& contents,
274 uint8_t* code, 280 uint8_t* code,
275 int32_t codeLength, 281 int32_t codeLength,
276 FX_BOOL isDevice, 282 FX_BOOL isDevice,
277 int32_t& e) { 283 int32_t& e) {
278 CBC_OneDimWriter::RenderResult(contents, code, codeLength, isDevice, e); 284 CBC_OneDimWriter::RenderResult(contents, code, codeLength, isDevice, e);
279 } 285 }
OLDNEW
« no previous file with comments | « xfa/fxbarcode/oned/BC_OnedUPCAWriter.h ('k') | xfa/fxbarcode/pdf417/BC_PDF417.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698