| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_FWL_CORE_FWL_APPIMP_H_ | |
| 8 #define XFA_FWL_CORE_FWL_APPIMP_H_ | |
| 9 | |
| 10 #include <memory> | |
| 11 | |
| 12 #include "xfa/fwl/core/fwl_noteimp.h" | |
| 13 | |
| 14 class CFWL_WidgetMgr; | |
| 15 class CXFA_FFApp; | |
| 16 class IFWL_App; | |
| 17 class IFWL_NoteThread; | |
| 18 class IFWL_ThemeProvider; | |
| 19 | |
| 20 class CFWL_AppImp { | |
| 21 public: | |
| 22 CFWL_AppImp(IFWL_App* pIface, CXFA_FFApp* pAdapter); | |
| 23 ~CFWL_AppImp(); | |
| 24 | |
| 25 IFWL_App* GetInterface() const { return m_pIface; } | |
| 26 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); } | |
| 27 | |
| 28 FWL_Error Initialize(); | |
| 29 FWL_Error Finalize(); | |
| 30 CXFA_FFApp* GetAdapterNative() const; | |
| 31 CFWL_WidgetMgr* GetWidgetMgr() const; | |
| 32 IFWL_ThemeProvider* GetThemeProvider() const; | |
| 33 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | |
| 34 void Exit(int32_t iExitCode); | |
| 35 | |
| 36 private: | |
| 37 CXFA_FFApp* const m_pAdapterNative; | |
| 38 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; | |
| 39 IFWL_ThemeProvider* m_pThemeProvider; | |
| 40 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver; | |
| 41 IFWL_App* const m_pIface; | |
| 42 }; | |
| 43 | |
| 44 #endif // XFA_FWL_CORE_FWL_APPIMP_H_ | |
| OLD | NEW |