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

Side by Side Diff: xfa/fxbarcode/qrcode/BC_QRCoder.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/qrcode/BC_QRCodeWriter.cpp ('k') | xfa/fxbarcode/qrcode/BC_QRCoder.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 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_FXBARCODE_QRCODE_BC_QRCODER_H_ 7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODER_H_
8 #define XFA_FXBARCODE_QRCODE_BC_QRCODER_H_ 8 #define XFA_FXBARCODE_QRCODE_BC_QRCODER_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 int32_t GetVersion() const; 27 int32_t GetVersion() const;
28 int32_t GetMatrixWidth() const; 28 int32_t GetMatrixWidth() const;
29 int32_t GetMaskPattern() const; 29 int32_t GetMaskPattern() const;
30 int32_t GetNumTotalBytes() const; 30 int32_t GetNumTotalBytes() const;
31 int32_t GetNumDataBytes() const; 31 int32_t GetNumDataBytes() const;
32 int32_t GetNumECBytes() const; 32 int32_t GetNumECBytes() const;
33 int32_t GetNumRSBlocks() const; 33 int32_t GetNumRSBlocks() const;
34 CBC_CommonByteMatrix* GetMatrix() const; 34 CBC_CommonByteMatrix* GetMatrix() const;
35 35
36 int32_t At(int32_t x, int32_t y, int32_t& e); 36 int32_t At(int32_t x, int32_t y, int32_t& e);
37 FX_BOOL IsValid(); 37 bool IsValid();
38 38
39 void SetMode(CBC_QRCoderMode* value); 39 void SetMode(CBC_QRCoderMode* value);
40 void SetECLevel(CBC_QRCoderErrorCorrectionLevel* ecLevel); 40 void SetECLevel(CBC_QRCoderErrorCorrectionLevel* ecLevel);
41 void SetVersion(int32_t version); 41 void SetVersion(int32_t version);
42 void SetMatrixWidth(int32_t width); 42 void SetMatrixWidth(int32_t width);
43 void SetMaskPattern(int32_t pattern); 43 void SetMaskPattern(int32_t pattern);
44 void SetNumDataBytes(int32_t bytes); 44 void SetNumDataBytes(int32_t bytes);
45 void SetNumTotalBytes(int32_t value); 45 void SetNumTotalBytes(int32_t value);
46 void SetNumECBytes(int32_t value); 46 void SetNumECBytes(int32_t value);
47 void SetNumRSBlocks(int32_t block); 47 void SetNumRSBlocks(int32_t block);
48 void SetMatrix(std::unique_ptr<CBC_CommonByteMatrix> pMatrix); 48 void SetMatrix(std::unique_ptr<CBC_CommonByteMatrix> pMatrix);
49 49
50 private: 50 private:
51 CBC_QRCoderMode* m_mode; 51 CBC_QRCoderMode* m_mode;
52 CBC_QRCoderErrorCorrectionLevel* m_ecLevel; 52 CBC_QRCoderErrorCorrectionLevel* m_ecLevel;
53 int32_t m_version; 53 int32_t m_version;
54 int32_t m_matrixWidth; 54 int32_t m_matrixWidth;
55 int32_t m_maskPattern; 55 int32_t m_maskPattern;
56 int32_t m_numTotalBytes; 56 int32_t m_numTotalBytes;
57 int32_t m_numDataBytes; 57 int32_t m_numDataBytes;
58 int32_t m_numECBytes; 58 int32_t m_numECBytes;
59 int32_t m_numRSBlocks; 59 int32_t m_numRSBlocks;
60 std::unique_ptr<CBC_CommonByteMatrix> m_matrix; 60 std::unique_ptr<CBC_CommonByteMatrix> m_matrix;
61 }; 61 };
62 62
63 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODER_H_ 63 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODER_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp ('k') | xfa/fxbarcode/qrcode/BC_QRCoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698