| 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/fwl/core/fwl_appimp.h" | 7 #include "xfa/fwl/core/fwl_appimp.h" |
| 8 | 8 |
| 9 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 9 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 10 #include "xfa/fwl/core/fwl_noteimp.h" | 10 #include "xfa/fwl/core/fwl_noteimp.h" |
| 11 #include "xfa/fwl/core/ifwl_app.h" | 11 #include "xfa/fwl/core/ifwl_app.h" |
| 12 #include "xfa/fwl/core/ifwl_widget.h" | 12 #include "xfa/fwl/core/ifwl_widget.h" |
| 13 #include "xfa/fxfa/app/xfa_fwladapter.h" | 13 #include "xfa/fxfa/app/xfa_fwladapter.h" |
| 14 | 14 |
| 15 IFWL_App* IFWL_App::Create(CXFA_FFApp* pAdapter) { | 15 IFWL_App* IFWL_App::Create(CXFA_FFApp* pAdapter) { |
| 16 IFWL_App* pApp = new IFWL_App; | 16 IFWL_App* pApp = new IFWL_App; |
| 17 pApp->SetImpl(new CFWL_AppImp(pApp, pAdapter)); | 17 pApp->SetImpl(new CFWL_AppImp(pApp, pAdapter)); |
| 18 return pApp; | 18 return pApp; |
| 19 } | 19 } |
| 20 | 20 |
| 21 IFWL_App::IFWL_App() {} |
| 22 |
| 23 IFWL_App::~IFWL_App() {} |
| 24 |
| 21 void IFWL_App::Release() {} | 25 void IFWL_App::Release() {} |
| 22 | 26 |
| 23 FWL_Error IFWL_App::Initialize() { | 27 FWL_Error IFWL_App::Initialize() { |
| 24 return static_cast<CFWL_AppImp*>(GetImpl())->Initialize(); | 28 return static_cast<CFWL_AppImp*>(GetImpl())->Initialize(); |
| 25 } | 29 } |
| 26 | 30 |
| 27 FWL_Error IFWL_App::Finalize() { | 31 FWL_Error IFWL_App::Finalize() { |
| 28 return static_cast<CFWL_AppImp*>(GetImpl())->Finalize(); | 32 return static_cast<CFWL_AppImp*>(GetImpl())->Finalize(); |
| 29 } | 33 } |
| 30 | 34 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 108 } |
| 105 | 109 |
| 106 static IFWL_App* g_theApp = nullptr; | 110 static IFWL_App* g_theApp = nullptr; |
| 107 IFWL_App* FWL_GetApp() { | 111 IFWL_App* FWL_GetApp() { |
| 108 return g_theApp; | 112 return g_theApp; |
| 109 } | 113 } |
| 110 | 114 |
| 111 void FWL_SetApp(IFWL_App* pApp) { | 115 void FWL_SetApp(IFWL_App* pApp) { |
| 112 g_theApp = pApp; | 116 g_theApp = pApp; |
| 113 } | 117 } |
| OLD | NEW |