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/include/xfa_ffapp.h" | 7 #include "xfa/fxfa/include/xfa_ffapp.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "xfa/fwl/core/ifwl_widgetmgrdelegate.h" | 11 #include "xfa/fwl/core/fwl_widgetmgrimp.h" |
12 #include "xfa/fxfa/app/xfa_fwladapter.h" | 12 #include "xfa/fxfa/app/xfa_fwladapter.h" |
13 #include "xfa/fxfa/app/xfa_fwltheme.h" | 13 #include "xfa/fxfa/app/xfa_fwltheme.h" |
14 #include "xfa/fxfa/include/xfa_ffdoc.h" | 14 #include "xfa/fxfa/include/xfa_ffdoc.h" |
15 #include "xfa/fxfa/include/xfa_ffdochandler.h" | 15 #include "xfa/fxfa/include/xfa_ffdochandler.h" |
16 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" | 16 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" |
17 #include "xfa/fxfa/include/xfa_fontmgr.h" | 17 #include "xfa/fxfa/include/xfa_fontmgr.h" |
18 | 18 |
19 CXFA_FileRead::CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams) { | 19 CXFA_FileRead::CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams) { |
20 int32_t iCount = streams.GetSize(); | 20 int32_t iCount = streams.GetSize(); |
21 for (int32_t i = 0; i < iCount; i++) { | 21 for (int32_t i = 0; i < iCount; i++) { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
153 return m_pFDEFontMgr; | 153 return m_pFDEFontMgr; |
154 } | 154 } |
155 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() { | 155 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() { |
156 if (!m_pFWLTheme) { | 156 if (!m_pFWLTheme) { |
157 m_pFWLTheme = new CXFA_FWLTheme(this); | 157 m_pFWLTheme = new CXFA_FWLTheme(this); |
158 } | 158 } |
159 return m_pFWLTheme; | 159 return m_pFWLTheme; |
160 } | 160 } |
161 IFWL_AdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr( | 161 IFWL_AdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr( |
162 IFWL_WidgetMgrDelegate* pDelegate) { | 162 CFWL_WidgetMgrDelegate* pDelegate) { |
163 if (!m_pAdapterWidgetMgr) { | 163 if (!m_pAdapterWidgetMgr) { |
164 m_pAdapterWidgetMgr = new CXFA_FWLAdapterWidgetMgr; | 164 m_pAdapterWidgetMgr = new CXFA_FWLAdapterWidgetMgr; |
165 pDelegate->OnSetCapability(FWL_WGTMGR_DisableThread | | 165 pDelegate->OnSetCapability(FWL_WGTMGR_DisableThread | |
166 FWL_WGTMGR_DisableForm); | 166 FWL_WGTMGR_DisableForm); |
167 m_pWidgetMgrDelegate = pDelegate; | 167 m_pWidgetMgrDelegate = pDelegate; |
168 } | 168 } |
169 return m_pAdapterWidgetMgr; | 169 return m_pAdapterWidgetMgr; |
170 } | 170 } |
171 IFWL_AdapterThreadMgr* CXFA_FFApp::GetThreadMgr() { | 171 IFWL_AdapterThreadMgr* CXFA_FFApp::GetThreadMgr() { |
172 if (!m_pAdapterThreadMgr) { | 172 if (!m_pAdapterThreadMgr) { |
173 m_pAdapterThreadMgr = new CFWL_SDAdapterThreadMgr; | 173 m_pAdapterThreadMgr = new CFWL_SDAdapterThreadMgr; |
174 } | 174 } |
175 return m_pAdapterThreadMgr; | 175 return m_pAdapterThreadMgr; |
176 } | 176 } |
177 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() { | 177 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() { |
178 return m_pProvider->GetTimerMgr(); | 178 return m_pProvider->GetTimerMgr(); |
179 } | 179 } |
OLD | NEW |