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

Side by Side Diff: xfa/src/fxbarcode/datamatrix/BC_DefaultPlacement.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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
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 _BC_DEFAULTPLACEMENT_H_ 7 #ifndef _BC_DEFAULTPLACEMENT_H_
8 #define _BC_DEFAULTPLACEMENT_H_ 8 #define _BC_DEFAULTPLACEMENT_H_
9 class CBC_DefaultPlacement 9 class CBC_DefaultPlacement
10 { 10 {
11 public: 11 public:
12 CBC_DefaultPlacement(CFX_WideString codewords, FX_INT32 numcols, FX_INT32 nu mrows); 12 CBC_DefaultPlacement(CFX_WideString codewords, int32_t numcols, int32_t numr ows);
13 virtual ~CBC_DefaultPlacement(); 13 virtual ~CBC_DefaultPlacement();
14 14
15 FX_INT32 getNumrows(); 15 int32_t getNumrows();
16 FX_INT32 getNumcols(); 16 int32_t getNumcols();
17 CFX_ByteArray& getBits(); 17 CFX_ByteArray& getBits();
18 FX_BOOL getBit(FX_INT32 col, FX_INT32 row); 18 FX_BOOL getBit(int32_t col, int32_t row);
19 void setBit(FX_INT32 col, FX_INT32 row, FX_BOOL bit); 19 void setBit(int32_t col, int32_t row, FX_BOOL bit);
20 FX_BOOL hasBit(FX_INT32 col, FX_INT32 row); 20 FX_BOOL hasBit(int32_t col, int32_t row);
21 void place(); 21 void place();
22 private: 22 private:
23 CFX_WideString m_codewords; 23 CFX_WideString m_codewords;
24 FX_INT32 m_numrows; 24 int32_t m_numrows;
25 FX_INT32 m_numcols; 25 int32_t m_numcols;
26 CFX_ByteArray m_bits; 26 CFX_ByteArray m_bits;
27 void module(FX_INT32 row, FX_INT32 col, FX_INT32 pos, FX_INT32 bit); 27 void module(int32_t row, int32_t col, int32_t pos, int32_t bit);
28 void utah(FX_INT32 row, FX_INT32 col, FX_INT32 pos); 28 void utah(int32_t row, int32_t col, int32_t pos);
29 void corner1(FX_INT32 pos); 29 void corner1(int32_t pos);
30 void corner2(FX_INT32 pos); 30 void corner2(int32_t pos);
31 void corner3(FX_INT32 pos); 31 void corner3(int32_t pos);
32 void corner4(FX_INT32 pos); 32 void corner4(int32_t pos);
33 }; 33 };
34 #endif 34 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/datamatrix/BC_DataMatrixWriter.cpp ('k') | xfa/src/fxbarcode/datamatrix/BC_DefaultPlacement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698