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

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

Issue 2524173002: Merge IFWL and CFWL classes. (Closed)
Patch Set: make chrome build happy Created 4 years 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
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/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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return m_pFDEFontMgr.get(); 125 return m_pFDEFontMgr.get();
126 } 126 }
127 127
128 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() { 128 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() {
129 if (!m_pFWLTheme) 129 if (!m_pFWLTheme)
130 m_pFWLTheme.reset(new CXFA_FWLTheme(this)); 130 m_pFWLTheme.reset(new CXFA_FWLTheme(this));
131 return m_pFWLTheme.get(); 131 return m_pFWLTheme.get();
132 } 132 }
133 133
134 CXFA_FWLAdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr( 134 CXFA_FWLAdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr(
135 IFWL_WidgetMgrDelegate* pDelegate) { 135 CFWL_WidgetMgrDelegate* pDelegate) {
136 if (!m_pAdapterWidgetMgr) { 136 if (!m_pAdapterWidgetMgr) {
137 m_pAdapterWidgetMgr.reset(new CXFA_FWLAdapterWidgetMgr); 137 m_pAdapterWidgetMgr.reset(new CXFA_FWLAdapterWidgetMgr);
138 pDelegate->OnSetCapability(FWL_WGTMGR_DisableForm); 138 pDelegate->OnSetCapability(FWL_WGTMGR_DisableForm);
139 m_pWidgetMgrDelegate = pDelegate; 139 m_pWidgetMgrDelegate = pDelegate;
140 } 140 }
141 return m_pAdapterWidgetMgr.get(); 141 return m_pAdapterWidgetMgr.get();
142 } 142 }
143 143
144 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const { 144 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const {
145 return m_pProvider->GetTimerMgr(); 145 return m_pProvider->GetTimerMgr();
146 } 146 }
147 147
148 void CXFA_FFApp::ClearEventTargets() { 148 void CXFA_FFApp::ClearEventTargets() {
149 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false); 149 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false);
150 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698