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

Side by Side Diff: xfa/src/fxbarcode/BC_TwoDimWriter.h

Issue 1570893003: Clean compiling warnings on Linux (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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
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 #ifndef XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_ 7 #ifndef XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_
8 #define XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_ 8 #define XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_
9 9
10 #include "xfa/src/fxbarcode/BC_Writer.h" 10 #include "xfa/src/fxbarcode/BC_Writer.h"
11 11
12 class CBC_CommonBitMatrix; 12 class CBC_CommonBitMatrix;
13 13
14 class CBC_TwoDimWriter : public CBC_Writer { 14 class CBC_TwoDimWriter : public CBC_Writer {
15 public: 15 public:
16 CBC_TwoDimWriter(); 16 CBC_TwoDimWriter();
17 virtual ~CBC_TwoDimWriter(); 17 virtual ~CBC_TwoDimWriter();
18 virtual uint8_t* Encode(const CFX_WideString& contents,
19 int32_t ecLevel,
20 int32_t& outWidth,
21 int32_t& outHeight,
22 int32_t& e) {
23 return nullptr;
24 };
25 virtual uint8_t* Encode(const CFX_ByteString& contents,
26 BCFORMAT format,
27 int32_t& outWidth,
28 int32_t& outHeight,
29 int32_t hints,
30 int32_t& e) {
31 return nullptr;
32 };
33 virtual uint8_t* Encode(const CFX_ByteString& contents,
34 BCFORMAT format,
35 int32_t& outWidth,
36 int32_t& outHeight,
37 int32_t& e) {
38 return nullptr;
39 };
40 virtual void RenderResult(uint8_t* code, 18 virtual void RenderResult(uint8_t* code,
41 int32_t codeWidth, 19 int32_t codeWidth,
42 int32_t codeHeight, 20 int32_t codeHeight,
43 int32_t& e); 21 int32_t& e);
44 virtual void RenderBitmapResult(CFX_DIBitmap*& pOutBitmap, int32_t& e); 22 virtual void RenderBitmapResult(CFX_DIBitmap*& pOutBitmap, int32_t& e);
45 virtual void RenderDeviceResult(CFX_RenderDevice* device, 23 virtual void RenderDeviceResult(CFX_RenderDevice* device,
46 const CFX_Matrix* matrix); 24 const CFX_Matrix* matrix);
47 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0; 25 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0;
48 virtual int32_t GetErrorCorrectionLevel() { return m_iCorrectLevel; }; 26 virtual int32_t GetErrorCorrectionLevel() { return m_iCorrectLevel; };
49 27
50 protected: 28 protected:
51 int32_t m_iCorrectLevel; 29 int32_t m_iCorrectLevel;
52 FX_BOOL m_bFixedSize; 30 FX_BOOL m_bFixedSize;
53 CBC_CommonBitMatrix* m_output; 31 CBC_CommonBitMatrix* m_output;
54 }; 32 };
55 33
56 #endif // XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_ 34 #endif // XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698