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

Side by Side Diff: xfa/fxfa/fm2js/xfa_expression.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/fxfa/cxfa_eventparam.h ('k') | xfa/fxfa/fm2js/xfa_expression.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_FXFA_FM2JS_XFA_EXPRESSION_H_ 7 #ifndef XFA_FXFA_FM2JS_XFA_EXPRESSION_H_
8 #define XFA_FXFA_FM2JS_XFA_EXPRESSION_H_ 8 #define XFA_FXFA_FM2JS_XFA_EXPRESSION_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 protected: 35 protected:
36 XFA_FM_EXPTYPE m_type; 36 XFA_FM_EXPTYPE m_type;
37 uint32_t m_line; 37 uint32_t m_line;
38 }; 38 };
39 39
40 class CXFA_FMFunctionDefinition : public CXFA_FMExpression { 40 class CXFA_FMFunctionDefinition : public CXFA_FMExpression {
41 public: 41 public:
42 // Takes ownership of |pExpressions|. 42 // Takes ownership of |pExpressions|.
43 CXFA_FMFunctionDefinition( 43 CXFA_FMFunctionDefinition(
44 uint32_t line, 44 uint32_t line,
45 FX_BOOL isGlobal, 45 bool isGlobal,
46 const CFX_WideStringC& wsName, 46 const CFX_WideStringC& wsName,
47 std::unique_ptr<CFX_WideStringCArray> pArguments, 47 std::unique_ptr<CFX_WideStringCArray> pArguments,
48 CFX_ArrayTemplate<CXFA_FMExpression*>* pExpressions); 48 CFX_ArrayTemplate<CXFA_FMExpression*>* pExpressions);
49 ~CXFA_FMFunctionDefinition() override; 49 ~CXFA_FMFunctionDefinition() override;
50 50
51 void ToJavaScript(CFX_WideTextBuf& javascript) override; 51 void ToJavaScript(CFX_WideTextBuf& javascript) override;
52 void ToImpliedReturnJS(CFX_WideTextBuf&) override; 52 void ToImpliedReturnJS(CFX_WideTextBuf&) override;
53 53
54 private: 54 private:
55 CFX_WideStringC m_wsName; 55 CFX_WideStringC m_wsName;
56 std::unique_ptr<CFX_WideStringCArray> m_pArguments; 56 std::unique_ptr<CFX_WideStringCArray> m_pArguments;
57 CFX_ArrayTemplate<CXFA_FMExpression*>* m_pExpressions; 57 CFX_ArrayTemplate<CXFA_FMExpression*>* m_pExpressions;
58 FX_BOOL m_isGlobal; 58 bool m_isGlobal;
59 }; 59 };
60 60
61 class CXFA_FMVarExpression : public CXFA_FMExpression { 61 class CXFA_FMVarExpression : public CXFA_FMExpression {
62 public: 62 public:
63 CXFA_FMVarExpression(uint32_t line, 63 CXFA_FMVarExpression(uint32_t line,
64 const CFX_WideStringC& wsName, 64 const CFX_WideStringC& wsName,
65 CXFA_FMExpression* pInit); 65 CXFA_FMExpression* pInit);
66 ~CXFA_FMVarExpression() override; 66 ~CXFA_FMVarExpression() override;
67 67
68 void ToJavaScript(CFX_WideTextBuf& javascript) override; 68 void ToJavaScript(CFX_WideTextBuf& javascript) override;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void ToJavaScript(CFX_WideTextBuf& javascript) override; 204 void ToJavaScript(CFX_WideTextBuf& javascript) override;
205 void ToImpliedReturnJS(CFX_WideTextBuf&) override; 205 void ToImpliedReturnJS(CFX_WideTextBuf&) override;
206 206
207 private: 207 private:
208 CFX_WideStringC m_wsIdentifier; 208 CFX_WideStringC m_wsIdentifier;
209 CFX_ArrayTemplate<CXFA_FMSimpleExpression*>* m_pAccessors; 209 CFX_ArrayTemplate<CXFA_FMSimpleExpression*>* m_pAccessors;
210 std::unique_ptr<CXFA_FMExpression> m_pList; 210 std::unique_ptr<CXFA_FMExpression> m_pList;
211 }; 211 };
212 212
213 #endif // XFA_FXFA_FM2JS_XFA_EXPRESSION_H_ 213 #endif // XFA_FXFA_FM2JS_XFA_EXPRESSION_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/cxfa_eventparam.h ('k') | xfa/fxfa/fm2js/xfa_expression.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698