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

Side by Side Diff: fpdfsdk/cpdfsdk_formfillenvironment.cpp

Issue 2400473002: Start proxying CPDFSDK_Document methods through CPDFSDK_FormFillEnvironment (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/cpdfsdk_formfillenvironment.h ('k') | fpdfsdk/cpdfsdk_interform.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 "fpdfsdk/cpdfsdk_formfillenvironment.h" 7 #include "fpdfsdk/cpdfsdk_formfillenvironment.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" 11 #include "fpdfsdk/cpdfsdk_annothandlermgr.h"
12 #include "fpdfsdk/cpdfsdk_document.h" 12 #include "fpdfsdk/cpdfsdk_document.h"
13 #include "fpdfsdk/cpdfsdk_interform.h"
13 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" 14 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h"
14 #include "fpdfsdk/fsdk_actionhandler.h" 15 #include "fpdfsdk/fsdk_actionhandler.h"
15 #include "fpdfsdk/javascript/ijs_runtime.h" 16 #include "fpdfsdk/javascript/ijs_runtime.h"
16 #include "third_party/base/ptr_util.h" 17 #include "third_party/base/ptr_util.h"
17 18
18 #ifdef PDF_ENABLE_XFA 19 #ifdef PDF_ENABLE_XFA
19 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h" 20 #include "fpdfsdk/fpdfxfa/cpdfxfa_app.h"
20 #endif // PDF_ENABLE_XFA 21 #endif // PDF_ENABLE_XFA
21 22
22 namespace { 23 namespace {
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 delete[] pbuff; 546 delete[] pbuff;
546 return wsRet; 547 return wsRet;
547 } 548 }
548 549
549 void CPDFSDK_FormFillEnvironment::PageEvent(int iPageCount, 550 void CPDFSDK_FormFillEnvironment::PageEvent(int iPageCount,
550 uint32_t dwEventType) const { 551 uint32_t dwEventType) const {
551 if (m_pInfo && m_pInfo->FFI_PageEvent) 552 if (m_pInfo && m_pInfo->FFI_PageEvent)
552 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); 553 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType);
553 } 554 }
554 #endif // PDF_ENABLE_XFA 555 #endif // PDF_ENABLE_XFA
556
557 CPDFSDK_InterForm* CPDFSDK_FormFillEnvironment::GetInterForm() const {
558 return m_pSDKDoc->GetInterForm();
559 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_formfillenvironment.h ('k') | fpdfsdk/cpdfsdk_interform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698