| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() { | 127 CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() { |
| 128 if (!m_pFWLTheme) | 128 if (!m_pFWLTheme) |
| 129 m_pFWLTheme.reset(new CXFA_FWLTheme(this)); | 129 m_pFWLTheme.reset(new CXFA_FWLTheme(this)); |
| 130 return m_pFWLTheme.get(); | 130 return m_pFWLTheme.get(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 CXFA_FWLAdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr( | 133 CXFA_FWLAdapterWidgetMgr* CXFA_FFApp::GetWidgetMgr( |
| 134 IFWL_WidgetMgrDelegate* pDelegate) { | 134 IFWL_WidgetMgrDelegate* pDelegate) { |
| 135 if (!m_pAdapterWidgetMgr) { | 135 if (!m_pAdapterWidgetMgr) { |
| 136 m_pAdapterWidgetMgr.reset(new CXFA_FWLAdapterWidgetMgr); | 136 m_pAdapterWidgetMgr.reset(new CXFA_FWLAdapterWidgetMgr); |
| 137 pDelegate->OnSetCapability(FWL_WGTMGR_DisableThread | | 137 pDelegate->OnSetCapability(FWL_WGTMGR_DisableForm); |
| 138 FWL_WGTMGR_DisableForm); | |
| 139 m_pWidgetMgrDelegate = pDelegate; | 138 m_pWidgetMgrDelegate = pDelegate; |
| 140 } | 139 } |
| 141 return m_pAdapterWidgetMgr.get(); | 140 return m_pAdapterWidgetMgr.get(); |
| 142 } | 141 } |
| 143 | 142 |
| 144 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const { | 143 IFWL_AdapterTimerMgr* CXFA_FFApp::GetTimerMgr() const { |
| 145 return m_pProvider->GetTimerMgr(); | 144 return m_pProvider->GetTimerMgr(); |
| 146 } | 145 } |
| 147 | 146 |
| 148 void CXFA_FFApp::ClearEventTargets() { | 147 void CXFA_FFApp::ClearEventTargets() { |
| 149 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false); | 148 m_pFWLApp->GetNoteDriver()->ClearEventTargets(false); |
| 150 } | 149 } |
| OLD | NEW |