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

Side by Side Diff: xfa/fxfa/app/xfa_ffapp.cpp

Issue 1921853006: More FWL interface cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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 | « xfa/fwl/theme/cfwl_widgettp.cpp ('k') | xfa/fxfa/app/xfa_ffbarcode.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 "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/fgas/font/fgas_stdfontmgr.h" 11 #include "xfa/fgas/font/fgas_stdfontmgr.h"
12 #include "xfa/fwl/core/ifwl_widgetmgrdelegate.h" 12 #include "xfa/fwl/core/fwl_widgetmgrimp.h"
13 #include "xfa/fxfa/app/xfa_fwladapter.h" 13 #include "xfa/fxfa/app/xfa_fwladapter.h"
14 #include "xfa/fxfa/app/xfa_fwltheme.h" 14 #include "xfa/fxfa/app/xfa_fwltheme.h"
15 #include "xfa/fxfa/include/xfa_ffdoc.h" 15 #include "xfa/fxfa/include/xfa_ffdoc.h"
16 #include "xfa/fxfa/include/xfa_ffdochandler.h" 16 #include "xfa/fxfa/include/xfa_ffdochandler.h"
17 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" 17 #include "xfa/fxfa/include/xfa_ffwidgethandler.h"
18 #include "xfa/fxfa/include/xfa_fontmgr.h" 18 #include "xfa/fxfa/include/xfa_fontmgr.h"
19 19
20 CXFA_FileRead::CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams) { 20 CXFA_FileRead::CXFA_FileRead(const CFX_ArrayTemplate<CPDF_Stream*>& streams) {
21 int32_t iCount = streams.GetSize(); 21 int32_t iCount = streams.GetSize();
22 for (int32_t i = 0; i < iCount; i++) { 22 for (int32_t i = 0; i < iCount; i++) {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 return m_pFDEFontMgr; 154 return m_pFDEFontMgr;
155 } 155 }
156 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() { 156 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() {
157 if (!m_pFWLTheme) { 157 if (!m_pFWLTheme) {
158 m_pFWLTheme = new CXFA_FWLTheme(this); 158 m_pFWLTheme = new CXFA_FWLTheme(this);
159 } 159 }
160 return m_pFWLTheme; 160 return m_pFWLTheme;
161 } 161 }
162 IFWL_AdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr( 162 IFWL_AdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr(
163 IFWL_WidgetMgrDelegate* pDelegate) { 163 CFWL_WidgetMgrDelegate* pDelegate) {
164 if (!m_pAdapterWidgetMgr) { 164 if (!m_pAdapterWidgetMgr) {
165 m_pAdapterWidgetMgr = new CXFA_FWLAdapterWidgetMgr; 165 m_pAdapterWidgetMgr = new CXFA_FWLAdapterWidgetMgr;
166 pDelegate->OnSetCapability(FWL_WGTMGR_DisableThread | 166 pDelegate->OnSetCapability(FWL_WGTMGR_DisableThread |
167 FWL_WGTMGR_DisableForm); 167 FWL_WGTMGR_DisableForm);
168 m_pWidgetMgrDelegate = pDelegate; 168 m_pWidgetMgrDelegate = pDelegate;
169 } 169 }
170 return m_pAdapterWidgetMgr; 170 return m_pAdapterWidgetMgr;
171 } 171 }
172 IFWL_AdapterThreadMgr* CXFA_FFApp::GetThreadMgr() { 172 IFWL_AdapterThreadMgr* CXFA_FFApp::GetThreadMgr() {
173 if (!m_pAdapterThreadMgr) { 173 if (!m_pAdapterThreadMgr) {
174 m_pAdapterThreadMgr = new CFWL_SDAdapterThreadMgr; 174 m_pAdapterThreadMgr = new CFWL_SDAdapterThreadMgr;
175 } 175 }
176 return m_pAdapterThreadMgr; 176 return m_pAdapterThreadMgr;
177 } 177 }
178 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() { 178 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() {
179 return m_pProvider->GetTimerMgr(); 179 return m_pProvider->GetTimerMgr();
180 } 180 }
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_widgettp.cpp ('k') | xfa/fxfa/app/xfa_ffbarcode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698