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

Side by Side Diff: xfa/fxfa/parser/cxfa_node.cpp

Issue 2160343002: Rename remaining xfa_script_* files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@rename_cscript
Patch Set: Review fixes Created 4 years, 5 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
« no previous file with comments | « xfa/fxfa/parser/cscript_signaturepseudomodel.cpp ('k') | xfa/fxfa/parser/cxfa_nodehelper.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 #include "xfa/fxfa/parser/xfa_object.h" 7 #include "xfa/fxfa/parser/xfa_object.h"
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fxcrt/include/fx_ext.h" 12 #include "core/fxcrt/include/fx_ext.h"
13 #include "fxjs/include/cfxjse_value.h" 13 #include "fxjs/include/cfxjse_value.h"
14 #include "third_party/base/stl_util.h" 14 #include "third_party/base/stl_util.h"
15 #include "xfa/fde/xml/fde_xml_imp.h" 15 #include "xfa/fde/xml/fde_xml_imp.h"
16 #include "xfa/fgas/crt/fgas_codepage.h" 16 #include "xfa/fgas/crt/fgas_codepage.h"
17 #include "xfa/fgas/crt/fgas_system.h" 17 #include "xfa/fgas/crt/fgas_system.h"
18 #include "xfa/fxfa/app/xfa_ffnotify.h" 18 #include "xfa/fxfa/app/xfa_ffnotify.h"
19 #include "xfa/fxfa/include/cxfa_eventparam.h" 19 #include "xfa/fxfa/include/cxfa_eventparam.h"
20 #include "xfa/fxfa/parser/cxfa_occur.h" 20 #include "xfa/fxfa/parser/cxfa_occur.h"
21 #include "xfa/fxfa/parser/cxfa_scriptcontext.h"
21 #include "xfa/fxfa/parser/cxfa_simple_parser.h" 22 #include "xfa/fxfa/parser/cxfa_simple_parser.h"
22 #include "xfa/fxfa/parser/xfa_basic_data.h" 23 #include "xfa/fxfa/parser/xfa_basic_data.h"
23 #include "xfa/fxfa/parser/xfa_document.h" 24 #include "xfa/fxfa/parser/xfa_document.h"
24 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" 25 #include "xfa/fxfa/parser/xfa_document_layout_imp.h"
25 #include "xfa/fxfa/parser/xfa_script_imp.h"
26 26
27 namespace { 27 namespace {
28 28
29 void XFA_DeleteWideString(void* pData) { 29 void XFA_DeleteWideString(void* pData) {
30 delete static_cast<CFX_WideString*>(pData); 30 delete static_cast<CFX_WideString*>(pData);
31 } 31 }
32 32
33 void XFA_CopyWideString(void*& pData) { 33 void XFA_CopyWideString(void*& pData) {
34 if (pData) { 34 if (pData) {
35 CFX_WideString* pNewData = new CFX_WideString(*(CFX_WideString*)pData); 35 CFX_WideString* pNewData = new CFX_WideString(*(CFX_WideString*)pData);
(...skipping 5127 matching lines...) Expand 10 before | Expand all | Expand 10 after
5163 CXFA_Node* pSrcChild = pSrcModule->GetNodeItem(XFA_NODEITEM_FirstChild); 5163 CXFA_Node* pSrcChild = pSrcModule->GetNodeItem(XFA_NODEITEM_FirstChild);
5164 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild); 5164 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild);
5165 for (; pSrcChild && pDstChild; 5165 for (; pSrcChild && pDstChild;
5166 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling), 5166 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling),
5167 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) { 5167 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) {
5168 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE); 5168 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE);
5169 } 5169 }
5170 } 5170 }
5171 pSrcModule->MoveBufferMapData(pDstModule, pKey); 5171 pSrcModule->MoveBufferMapData(pDstModule, pKey);
5172 } 5172 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cscript_signaturepseudomodel.cpp ('k') | xfa/fxfa/parser/cxfa_nodehelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698