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

Side by Side Diff: xfa/src/fxbarcode/datamatrix/BC_EncoderContext.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_ENCODERCONTEXT_H_ 7 #ifndef _BC_ENCODERCONTEXT_H_
8 #define _BC_ENCODERCONTEXT_H_ 8 #define _BC_ENCODERCONTEXT_H_
9 class CBC_SymbolShapeHint; 9 class CBC_SymbolShapeHint;
10 class CBC_SymbolInfo; 10 class CBC_SymbolInfo;
11 class CBC_Dimension; 11 class CBC_Dimension;
12 class CBC_EncoderContext; 12 class CBC_EncoderContext;
13 class CBC_EncoderContext : public CBC_SymbolShapeHint 13 class CBC_EncoderContext : public CBC_SymbolShapeHint
14 { 14 {
15 public: 15 public:
16 CBC_EncoderContext(const CFX_WideString msg, CFX_WideString ecLevel, FX_INT3 2 &e); 16 CBC_EncoderContext(const CFX_WideString msg, CFX_WideString ecLevel, int32_t &e);
17 virtual ~CBC_EncoderContext(); 17 virtual ~CBC_EncoderContext();
18 void setSymbolShape(SymbolShapeHint shape); 18 void setSymbolShape(SymbolShapeHint shape);
19 void setSizeConstraints(CBC_Dimension* minSize, CBC_Dimension* maxSize); 19 void setSizeConstraints(CBC_Dimension* minSize, CBC_Dimension* maxSize);
20 CFX_WideString getMessage(); 20 CFX_WideString getMessage();
21 void setSkipAtEnd(FX_INT32 count); 21 void setSkipAtEnd(int32_t count);
22 FX_WCHAR getCurrentChar(); 22 FX_WCHAR getCurrentChar();
23 FX_WCHAR getCurrent(); 23 FX_WCHAR getCurrent();
24 void writeCodewords(CFX_WideString codewords); 24 void writeCodewords(CFX_WideString codewords);
25 void writeCodeword(FX_WCHAR codeword); 25 void writeCodeword(FX_WCHAR codeword);
26 FX_INT32 getCodewordCount(); 26 int32_t getCodewordCount();
27 void signalEncoderChange(FX_INT32 encoding); 27 void signalEncoderChange(int32_t encoding);
28 void resetEncoderSignal(); 28 void resetEncoderSignal();
29 FX_BOOL hasMoreCharacters(); 29 FX_BOOL hasMoreCharacters();
30 FX_INT32 getRemainingCharacters(); 30 int32_t getRemainingCharacters();
31 void updateSymbolInfo(FX_INT32 &e); 31 void updateSymbolInfo(int32_t &e);
32 void updateSymbolInfo(FX_INT32 len, FX_INT32 &e); 32 void updateSymbolInfo(int32_t len, int32_t &e);
33 void resetSymbolInfo(); 33 void resetSymbolInfo();
34 public: 34 public:
35 CFX_WideString m_msg; 35 CFX_WideString m_msg;
36 CFX_WideString m_codewords; 36 CFX_WideString m_codewords;
37 FX_INT32 m_pos; 37 int32_t m_pos;
38 FX_INT32 m_newEncoding; 38 int32_t m_newEncoding;
39 CBC_SymbolInfo* m_symbolInfo; 39 CBC_SymbolInfo* m_symbolInfo;
40 private: 40 private:
41 FX_INT32 getTotalMessageCharCount(); 41 int32_t getTotalMessageCharCount();
42 private: 42 private:
43 SymbolShapeHint m_shape; 43 SymbolShapeHint m_shape;
44 CBC_Dimension* m_minSize; 44 CBC_Dimension* m_minSize;
45 CBC_Dimension* m_maxSize; 45 CBC_Dimension* m_maxSize;
46 FX_INT32 m_skipAtEnd; 46 int32_t m_skipAtEnd;
47 }; 47 };
48 #endif 48 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/datamatrix/BC_Encoder.h ('k') | xfa/src/fxbarcode/datamatrix/BC_EncoderContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698