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

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

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month 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_codebase.cpp » ('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 <memory> 10 #include <memory>
11 11
12 #include "core/fxcrt/fx_system.h" 12 #include "core/fxcrt/fx_system.h"
13 #include "core/fxge/fx_dib.h" 13 #include "core/fxge/fx_dib.h"
14 #include "xfa/fxbarcode/BC_Library.h" 14 #include "xfa/fxbarcode/BC_Library.h"
15 15
16 class CBC_Writer; 16 class CBC_Writer;
17 class CBC_Reader; 17 class CBC_Reader;
18 class CFX_DIBitmap; 18 class CFX_DIBitmap;
19 class CFX_RenderDevice; 19 class CFX_RenderDevice;
20 20
21 class CBC_CodeBase { 21 class CBC_CodeBase {
22 public: 22 public:
23 explicit CBC_CodeBase(CBC_Writer* pWriter); 23 explicit CBC_CodeBase(CBC_Writer* pWriter);
24 virtual ~CBC_CodeBase(); 24 virtual ~CBC_CodeBase();
25 25
26 virtual BC_TYPE GetType() = 0; 26 virtual BC_TYPE GetType() = 0;
27 virtual FX_BOOL Encode(const CFX_WideStringC& contents, 27 virtual bool Encode(const CFX_WideStringC& contents,
28 FX_BOOL isDevice, 28 bool isDevice,
29 int32_t& e) = 0; 29 int32_t& e) = 0;
30 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, 30 virtual bool RenderDevice(CFX_RenderDevice* device,
31 const CFX_Matrix* matrix, 31 const CFX_Matrix* matrix,
32 int32_t& e) = 0; 32 int32_t& e) = 0;
33 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0; 33 virtual bool RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0;
34 34
35 FX_BOOL SetCharEncoding(int32_t encoding); 35 bool SetCharEncoding(int32_t encoding);
36 FX_BOOL SetModuleHeight(int32_t moduleHeight); 36 bool SetModuleHeight(int32_t moduleHeight);
37 FX_BOOL SetModuleWidth(int32_t moduleWidth); 37 bool SetModuleWidth(int32_t moduleWidth);
38 FX_BOOL SetHeight(int32_t height); 38 bool SetHeight(int32_t height);
39 FX_BOOL SetWidth(int32_t width); 39 bool SetWidth(int32_t width);
40 void SetBackgroundColor(FX_ARGB backgroundColor); 40 void SetBackgroundColor(FX_ARGB backgroundColor);
41 void SetBarcodeColor(FX_ARGB foregroundColor); 41 void SetBarcodeColor(FX_ARGB foregroundColor);
42 42
43 protected: 43 protected:
44 std::unique_ptr<CBC_Writer> m_pBCWriter; 44 std::unique_ptr<CBC_Writer> m_pBCWriter;
45 }; 45 };
46 46
47 #endif // XFA_FXBARCODE_CBC_CODEBASE_H_ 47 #endif // XFA_FXBARCODE_CBC_CODEBASE_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/cbc_code39.cpp ('k') | xfa/fxbarcode/cbc_codebase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698