| 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 #ifndef XFA_FWL_CORE_FWL_APPIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_APPIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_APPIMP_H_ | 8 #define XFA_FWL_CORE_FWL_APPIMP_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "xfa/fwl/core/fwl_noteimp.h" | 12 #include "xfa/fwl/core/fwl_noteimp.h" |
| 13 | 13 |
| 14 class CFWL_WidgetMgr; | 14 class CFWL_WidgetMgr; |
| 15 class CXFA_FFApp; | 15 class CXFA_FFApp; |
| 16 class IFWL_App; | 16 class IFWL_App; |
| 17 class IFWL_NoteThread; | 17 class IFWL_NoteThread; |
| 18 class IFWL_ThemeProvider; | 18 class IFWL_ThemeProvider; |
| 19 class IFWL_WidgetMgr; | |
| 20 | 19 |
| 21 class CFWL_AppImp { | 20 class CFWL_AppImp { |
| 22 public: | 21 public: |
| 23 CFWL_AppImp(IFWL_App* pIface, CXFA_FFApp* pAdapter); | 22 CFWL_AppImp(IFWL_App* pIface, CXFA_FFApp* pAdapter); |
| 24 ~CFWL_AppImp(); | 23 ~CFWL_AppImp(); |
| 25 | 24 |
| 26 IFWL_App* GetInterface() const { return m_pIface; } | 25 IFWL_App* GetInterface() const { return m_pIface; } |
| 27 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); } | 26 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); } |
| 28 | 27 |
| 29 FWL_Error Initialize(); | 28 FWL_Error Initialize(); |
| 30 FWL_Error Finalize(); | 29 FWL_Error Finalize(); |
| 31 CXFA_FFApp* GetAdapterNative() const; | 30 CXFA_FFApp* GetAdapterNative() const; |
| 32 IFWL_WidgetMgr* GetWidgetMgr() const; | 31 CFWL_WidgetMgr* GetWidgetMgr() const; |
| 33 IFWL_ThemeProvider* GetThemeProvider() const; | 32 IFWL_ThemeProvider* GetThemeProvider() const; |
| 34 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 33 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
| 35 void Exit(int32_t iExitCode); | 34 void Exit(int32_t iExitCode); |
| 36 | 35 |
| 37 private: | 36 private: |
| 38 CXFA_FFApp* const m_pAdapterNative; | 37 CXFA_FFApp* const m_pAdapterNative; |
| 39 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; | 38 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; |
| 40 IFWL_ThemeProvider* m_pThemeProvider; | 39 IFWL_ThemeProvider* m_pThemeProvider; |
| 41 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver; | 40 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver; |
| 42 IFWL_App* const m_pIface; | 41 IFWL_App* const m_pIface; |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 #endif // XFA_FWL_CORE_FWL_APPIMP_H_ | 44 #endif // XFA_FWL_CORE_FWL_APPIMP_H_ |
| OLD | NEW |