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_SRC_FWL_SRC_CORE_FWL_APPIMP_H_ | 7 #ifndef XFA_SRC_FWL_CORE_FWL_APPIMP_H_ |
8 #define XFA_SRC_FWL_SRC_CORE_FWL_APPIMP_H_ | 8 #define XFA_SRC_FWL_CORE_FWL_APPIMP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "xfa/src/fwl/src/core/fwl_threadimp.h" | 12 #include "xfa/src/fwl/core/fwl_threadimp.h" |
13 | 13 |
14 class CFWL_WidgetMgr; | 14 class CFWL_WidgetMgr; |
15 class IFWL_AdapterNative; | 15 class IFWL_AdapterNative; |
16 class IFWL_WidgetMgr; | 16 class IFWL_WidgetMgr; |
17 class IFWL_ThemeProvider; | 17 class IFWL_ThemeProvider; |
18 class IFWL_App; | 18 class IFWL_App; |
19 | 19 |
20 class CFWL_AppImp : public CFWL_NoteThreadImp { | 20 class CFWL_AppImp : public CFWL_NoteThreadImp { |
21 public: | 21 public: |
22 CFWL_AppImp(IFWL_App* pIface, IFWL_AdapterNative* pAdapter); | 22 CFWL_AppImp(IFWL_App* pIface, IFWL_AdapterNative* pAdapter); |
23 virtual ~CFWL_AppImp(); | 23 virtual ~CFWL_AppImp(); |
24 virtual FWL_ERR Initialize(); | 24 virtual FWL_ERR Initialize(); |
25 virtual FWL_ERR Finalize(); | 25 virtual FWL_ERR Finalize(); |
26 virtual IFWL_AdapterNative* GetAdapterNative() const; | 26 virtual IFWL_AdapterNative* GetAdapterNative() const; |
27 virtual IFWL_WidgetMgr* GetWidgetMgr() const; | 27 virtual IFWL_WidgetMgr* GetWidgetMgr() const; |
28 virtual IFWL_ThemeProvider* GetThemeProvider() const; | 28 virtual IFWL_ThemeProvider* GetThemeProvider() const; |
29 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 29 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
30 virtual FWL_ERR Exit(int32_t iExitCode = 0); | 30 virtual FWL_ERR Exit(int32_t iExitCode = 0); |
31 | 31 |
32 protected: | 32 protected: |
33 IFWL_AdapterNative* const m_pAdapterNative; | 33 IFWL_AdapterNative* const m_pAdapterNative; |
34 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; | 34 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; |
35 IFWL_ThemeProvider* m_pThemeProvider; | 35 IFWL_ThemeProvider* m_pThemeProvider; |
36 }; | 36 }; |
37 | 37 |
38 #endif // XFA_SRC_FWL_SRC_CORE_FWL_APPIMP_H_ | 38 #endif // XFA_SRC_FWL_CORE_FWL_APPIMP_H_ |
OLD | NEW |