| OLD | NEW |
| 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 "xfa/fxfa/xfa_ffapp.h" | 7 #include "xfa/fxfa/xfa_ffapp.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 return false; | 68 return false; |
| 69 } | 69 } |
| 70 | 70 |
| 71 void CXFA_FileRead::Release() { | 71 void CXFA_FileRead::Release() { |
| 72 delete this; | 72 delete this; |
| 73 } | 73 } |
| 74 | 74 |
| 75 CXFA_FFApp::CXFA_FFApp(IXFA_AppProvider* pProvider) | 75 CXFA_FFApp::CXFA_FFApp(IXFA_AppProvider* pProvider) |
| 76 : m_pProvider(pProvider), | 76 : m_pProvider(pProvider), |
| 77 m_pWidgetMgrDelegate(nullptr), | 77 m_pWidgetMgrDelegate(nullptr), |
| 78 m_pFWLApp(new IFWL_App(this)) { | 78 m_pFWLApp(new CFWL_App(this)) {} |
| 79 } | |
| 80 | 79 |
| 81 CXFA_FFApp::~CXFA_FFApp() {} | 80 CXFA_FFApp::~CXFA_FFApp() {} |
| 82 | 81 |
| 83 CXFA_FFDocHandler* CXFA_FFApp::GetDocHandler() { | 82 CXFA_FFDocHandler* CXFA_FFApp::GetDocHandler() { |
| 84 if (!m_pDocHandler) | 83 if (!m_pDocHandler) |
| 85 m_pDocHandler.reset(new CXFA_FFDocHandler); | 84 m_pDocHandler.reset(new CXFA_FFDocHandler); |
| 86 return m_pDocHandler.get(); | 85 return m_pDocHandler.get(); |
| 87 } | 86 } |
| 88 | 87 |
| 89 CXFA_FFDoc* CXFA_FFApp::CreateDoc(IXFA_DocEnvironment* pDocEnvironment, | 88 CXFA_FFDoc* CXFA_FFApp::CreateDoc(IXFA_DocEnvironment* pDocEnvironment, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 return m_pAdapterWidgetMgr.get(); | 141 return m_pAdapterWidgetMgr.get(); |
| 143 } | 142 } |
| 144 | 143 |
| 145 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const { | 144 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const { |
| 146 return m_pProvider->GetTimerMgr(); | 145 return m_pProvider->GetTimerMgr(); |
| 147 } | 146 } |
| 148 | 147 |
| 149 void CXFA_FFApp::ClearEventTargets() { | 148 void CXFA_FFApp::ClearEventTargets() { |
| 150 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false); | 149 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false); |
| 151 } | 150 } |
| OLD | NEW |