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

Side by Side Diff: xfa/fxfa/parser/xfa_resolvenode_rs.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/parser/xfa_object.h ('k') | xfa/fxfa/parser/xfa_utils.h » ('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_PARSER_XFA_RESOLVENODE_RS_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_
8 #define XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_ 8 #define XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_
9 9
10 #include "fxjs/cfxjse_value.h" 10 #include "fxjs/cfxjse_value.h"
(...skipping 29 matching lines...) Expand all
40 struct XFA_RESOLVENODE_RS { 40 struct XFA_RESOLVENODE_RS {
41 XFA_RESOLVENODE_RS(); 41 XFA_RESOLVENODE_RS();
42 ~XFA_RESOLVENODE_RS(); 42 ~XFA_RESOLVENODE_RS();
43 43
44 int32_t GetAttributeResult(CXFA_ValueArray& valueArray) const { 44 int32_t GetAttributeResult(CXFA_ValueArray& valueArray) const {
45 if (pScriptAttribute && pScriptAttribute->eValueType == XFA_SCRIPT_Object) { 45 if (pScriptAttribute && pScriptAttribute->eValueType == XFA_SCRIPT_Object) {
46 v8::Isolate* pIsolate = valueArray.m_pIsolate; 46 v8::Isolate* pIsolate = valueArray.m_pIsolate;
47 for (int32_t i = 0; i < nodes.GetSize(); i++) { 47 for (int32_t i = 0; i < nodes.GetSize(); i++) {
48 std::unique_ptr<CFXJSE_Value> pValue(new CFXJSE_Value(pIsolate)); 48 std::unique_ptr<CFXJSE_Value> pValue(new CFXJSE_Value(pIsolate));
49 (nodes[i]->*(pScriptAttribute->lpfnCallback))( 49 (nodes[i]->*(pScriptAttribute->lpfnCallback))(
50 pValue.get(), FALSE, (XFA_ATTRIBUTE)pScriptAttribute->eAttribute); 50 pValue.get(), false, (XFA_ATTRIBUTE)pScriptAttribute->eAttribute);
51 valueArray.Add(pValue.release()); 51 valueArray.Add(pValue.release());
52 } 52 }
53 } 53 }
54 return valueArray.GetSize(); 54 return valueArray.GetSize();
55 } 55 }
56 56
57 CXFA_ObjArray nodes; 57 CXFA_ObjArray nodes;
58 XFA_RESOVENODE_RSTYPE dwFlags; 58 XFA_RESOVENODE_RSTYPE dwFlags;
59 const XFA_SCRIPTATTRIBUTEINFO* pScriptAttribute; 59 const XFA_SCRIPTATTRIBUTEINFO* pScriptAttribute;
60 }; 60 };
61 61
62 inline XFA_RESOLVENODE_RS::XFA_RESOLVENODE_RS() 62 inline XFA_RESOLVENODE_RS::XFA_RESOLVENODE_RS()
63 : dwFlags(XFA_RESOVENODE_RSTYPE_Nodes), pScriptAttribute(nullptr) {} 63 : dwFlags(XFA_RESOVENODE_RSTYPE_Nodes), pScriptAttribute(nullptr) {}
64 64
65 inline XFA_RESOLVENODE_RS::~XFA_RESOLVENODE_RS() { 65 inline XFA_RESOLVENODE_RS::~XFA_RESOLVENODE_RS() {
66 nodes.RemoveAll(); 66 nodes.RemoveAll();
67 } 67 }
68 #endif // XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_ 68 #endif // XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_object.h ('k') | xfa/fxfa/parser/xfa_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698