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

Side by Side Diff: xfa/fxbarcode/cbc_codebase.h

Issue 1935793002: Fix lint bugs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 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 | « xfa/fxbarcode/cbc_code39.cpp ('k') | xfa/fxbarcode/cbc_datamatrix.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FXBARCODE_CBC_CODEBASE_H_ 7 #ifndef XFA_FXBARCODE_CBC_CODEBASE_H_
8 #define XFA_FXBARCODE_CBC_CODEBASE_H_ 8 #define XFA_FXBARCODE_CBC_CODEBASE_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
11 #include "core/fxge/include/fx_dib.h" 11 #include "core/fxge/include/fx_dib.h"
12 #include "xfa/fxbarcode/include/BC_Library.h" 12 #include "xfa/fxbarcode/include/BC_Library.h"
13 13
14 class CBC_Writer; 14 class CBC_Writer;
15 class CBC_Reader; 15 class CBC_Reader;
16 class CFX_DIBitmap; 16 class CFX_DIBitmap;
17 class CFX_RenderDevice; 17 class CFX_RenderDevice;
18 18
19 class CBC_CodeBase { 19 class CBC_CodeBase {
20 public: 20 public:
21 CBC_CodeBase(); 21 CBC_CodeBase();
22 virtual ~CBC_CodeBase(); 22 virtual ~CBC_CodeBase();
23 23
24 virtual BC_TYPE GetType() = 0; 24 virtual BC_TYPE GetType() = 0;
25 virtual FX_BOOL Encode(const CFX_WideStringC& contents, 25 virtual FX_BOOL Encode(const CFX_WideStringC& contents,
26 FX_BOOL isDevice, 26 FX_BOOL isDevice,
27 int32_t& e) = 0; 27 int32_t& e) = 0;
28 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, 28 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device,
29 const CFX_Matrix* matirx, 29 const CFX_Matrix* matrix,
30 int32_t& e) = 0; 30 int32_t& e) = 0;
31 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0; 31 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0;
32 virtual CFX_WideString Decode(uint8_t* buf, 32 virtual CFX_WideString Decode(uint8_t* buf,
33 int32_t width, 33 int32_t width,
34 int32_t hight, 34 int32_t height,
35 int32_t& e) = 0; 35 int32_t& e) = 0;
36 virtual CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e) = 0; 36 virtual CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e) = 0;
37 37
38 virtual FX_BOOL SetCharEncoding(int32_t encoding); 38 virtual FX_BOOL SetCharEncoding(int32_t encoding);
39 virtual FX_BOOL SetModuleHeight(int32_t moduleHeight); 39 virtual FX_BOOL SetModuleHeight(int32_t moduleHeight);
40 virtual FX_BOOL SetModuleWidth(int32_t moduleWidth); 40 virtual FX_BOOL SetModuleWidth(int32_t moduleWidth);
41 41
42 virtual FX_BOOL SetHeight(int32_t height); 42 virtual FX_BOOL SetHeight(int32_t height);
43 virtual FX_BOOL SetWidth(int32_t width); 43 virtual FX_BOOL SetWidth(int32_t width);
44 virtual void SetBackgroundColor(FX_ARGB backgroundColor); 44 virtual void SetBackgroundColor(FX_ARGB backgroundColor);
45 virtual void SetBarcodeColor(FX_ARGB foregroundColor); 45 virtual void SetBarcodeColor(FX_ARGB foregroundColor);
46 46
47 protected: 47 protected:
48 CBC_Writer* m_pBCWriter; 48 CBC_Writer* m_pBCWriter;
49 CBC_Reader* m_pBCReader; 49 CBC_Reader* m_pBCReader;
50 }; 50 };
51 51
52 #endif // XFA_FXBARCODE_CBC_CODEBASE_H_ 52 #endif // XFA_FXBARCODE_CBC_CODEBASE_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/cbc_code39.cpp ('k') | xfa/fxbarcode/cbc_datamatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698