| 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 <utility> | 10 #include <utility> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 67 } |
| 68 | 68 |
| 69 void CXFA_FileRead::Release() { | 69 void CXFA_FileRead::Release() { |
| 70 delete this; | 70 delete this; |
| 71 } | 71 } |
| 72 | 72 |
| 73 CXFA_FFApp::CXFA_FFApp(IXFA_AppProvider* pProvider) | 73 CXFA_FFApp::CXFA_FFApp(IXFA_AppProvider* pProvider) |
| 74 : m_pProvider(pProvider), | 74 : m_pProvider(pProvider), |
| 75 m_pWidgetMgrDelegate(nullptr), | 75 m_pWidgetMgrDelegate(nullptr), |
| 76 m_pFWLApp(new IFWL_App(this)) { | 76 m_pFWLApp(new IFWL_App(this)) { |
| 77 CXFA_TimeZoneProvider::Create(); | |
| 78 } | 77 } |
| 79 | 78 |
| 80 CXFA_FFApp::~CXFA_FFApp() { | 79 CXFA_FFApp::~CXFA_FFApp() {} |
| 81 CXFA_TimeZoneProvider::Destroy(); | |
| 82 } | |
| 83 | 80 |
| 84 CXFA_FFDocHandler* CXFA_FFApp::GetDocHandler() { | 81 CXFA_FFDocHandler* CXFA_FFApp::GetDocHandler() { |
| 85 if (!m_pDocHandler) | 82 if (!m_pDocHandler) |
| 86 m_pDocHandler.reset(new CXFA_FFDocHandler); | 83 m_pDocHandler.reset(new CXFA_FFDocHandler); |
| 87 return m_pDocHandler.get(); | 84 return m_pDocHandler.get(); |
| 88 } | 85 } |
| 89 | 86 |
| 90 CXFA_FFDoc* CXFA_FFApp::CreateDoc(IXFA_DocEnvironment* pDocEnvironment, | 87 CXFA_FFDoc* CXFA_FFApp::CreateDoc(IXFA_DocEnvironment* pDocEnvironment, |
| 91 IFX_SeekableReadStream* pStream, | 88 IFX_SeekableReadStream* pStream, |
| 92 bool bTakeOverFile) { | 89 bool bTakeOverFile) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 return m_pAdapterWidgetMgr.get(); | 141 return m_pAdapterWidgetMgr.get(); |
| 145 } | 142 } |
| 146 | 143 |
| 147 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const { | 144 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const { |
| 148 return m_pProvider->GetTimerMgr(); | 145 return m_pProvider->GetTimerMgr(); |
| 149 } | 146 } |
| 150 | 147 |
| 151 void CXFA_FFApp::ClearEventTargets() { | 148 void CXFA_FFApp::ClearEventTargets() { |
| 152 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false); | 149 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false); |
| 153 } | 150 } |
| OLD | NEW |