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

Side by Side Diff: fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp

Issue 2333413003: Rename CPDFDoc_Environment to CPDFSDK_Environment (Closed)
Patch Set: Review feedback Created 4 years, 3 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 | « fpdfsdk/fpdfxfa/fpdfxfa_app.cpp ('k') | fpdfsdk/fpdfxfa/fpdfxfa_util.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 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" 7 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
8 8
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
10 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h" 10 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_app.h"
11 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h" 11 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_page.h"
12 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h" 12 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h"
13 #include "fpdfsdk/include/cpdfdoc_environment.h"
14 #include "fpdfsdk/include/cpdfsdk_document.h" 13 #include "fpdfsdk/include/cpdfsdk_document.h"
14 #include "fpdfsdk/include/cpdfsdk_environment.h"
15 #include "fpdfsdk/include/cpdfsdk_interform.h" 15 #include "fpdfsdk/include/cpdfsdk_interform.h"
16 #include "fpdfsdk/include/cpdfsdk_pageview.h" 16 #include "fpdfsdk/include/cpdfsdk_pageview.h"
17 #include "fpdfsdk/include/fsdk_define.h" 17 #include "fpdfsdk/include/fsdk_define.h"
18 #include "fpdfsdk/javascript/ijs_runtime.h" 18 #include "fpdfsdk/javascript/ijs_runtime.h"
19 #include "public/fpdf_formfill.h" 19 #include "public/fpdf_formfill.h"
20 #include "xfa/fxfa/include/cxfa_eventparam.h" 20 #include "xfa/fxfa/include/cxfa_eventparam.h"
21 #include "xfa/fxfa/include/xfa_ffapp.h" 21 #include "xfa/fxfa/include/xfa_ffapp.h"
22 #include "xfa/fxfa/include/xfa_ffdoc.h" 22 #include "xfa/fxfa/include/xfa_ffdoc.h"
23 #include "xfa/fxfa/include/xfa_ffdocview.h" 23 #include "xfa/fxfa/include/xfa_ffdocview.h"
24 #include "xfa/fxfa/include/xfa_ffpageview.h" 24 #include "xfa/fxfa/include/xfa_ffpageview.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 if (CPDFXFA_Page* pPage = m_XFAPageList.GetAt(page_index)) 186 if (CPDFXFA_Page* pPage = m_XFAPageList.GetAt(page_index))
187 pPage->Release(); 187 pPage->Release();
188 } 188 }
189 189
190 void CPDFXFA_Document::RemovePage(CPDFXFA_Page* page) { 190 void CPDFXFA_Document::RemovePage(CPDFXFA_Page* page) {
191 m_XFAPageList.SetAt(page->GetPageIndex(), nullptr); 191 m_XFAPageList.SetAt(page->GetPageIndex(), nullptr);
192 } 192 }
193 193
194 CPDFSDK_Document* CPDFXFA_Document::GetSDKDocument( 194 CPDFSDK_Document* CPDFXFA_Document::GetSDKDocument(
195 CPDFDoc_Environment* pFormFillEnv) { 195 CPDFSDK_Environment* pFormFillEnv) {
196 if (!m_pSDKDoc && pFormFillEnv) 196 if (!m_pSDKDoc && pFormFillEnv)
197 m_pSDKDoc.reset(new CPDFSDK_Document(this, pFormFillEnv)); 197 m_pSDKDoc.reset(new CPDFSDK_Document(this, pFormFillEnv));
198 return m_pSDKDoc.get(); 198 return m_pSDKDoc.get();
199 } 199 }
200 200
201 void CPDFXFA_Document::ClearChangeMark() { 201 void CPDFXFA_Document::ClearChangeMark() {
202 if (m_pSDKDoc) 202 if (m_pSDKDoc)
203 m_pSDKDoc->ClearChangeMark(); 203 m_pSDKDoc->ClearChangeMark();
204 } 204 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_app.cpp ('k') | fpdfsdk/fpdfxfa/fpdfxfa_util.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698