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_INCLUDE_FWL_CORE_FWL_APP_H_ | |
8 #define XFA_INCLUDE_FWL_CORE_FWL_APP_H_ | |
9 | |
10 #include "core/fxcrt/include/fx_string.h" | |
11 #include "xfa/include/fwl/core/fwl_thread.h" | |
12 | |
13 class IFWL_AdapterNative; | |
14 class IFWL_Widget; | |
15 class IFWL_WidgetMgr; | |
16 class IFWL_ThemeProvider; | |
17 class IFWL_AdapterWidgetMgr; | |
18 | |
19 class IFWL_App : public IFWL_NoteThread { | |
20 public: | |
21 static IFWL_App* Create(IFWL_AdapterNative* pAdapter); | |
22 | |
23 FWL_ERR Initialize(); | |
24 FWL_ERR Finalize(); | |
25 IFWL_AdapterNative* GetAdapterNative(); | |
26 IFWL_WidgetMgr* GetWidgetMgr(); | |
27 IFWL_ThemeProvider* GetThemeProvider(); | |
28 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | |
29 FWL_ERR Exit(int32_t iExitCode); | |
30 | |
31 private: | |
32 IFWL_App() {} | |
33 }; | |
34 IFWL_App* FWL_GetApp(); | |
35 void FWL_SetApp(IFWL_App* pApp); | |
36 IFWL_AdapterNative* FWL_GetAdapterNative(); | |
37 IFWL_AdapterWidgetMgr* FWL_GetAdapterWidgetMgr(); | |
38 IFWL_ThemeProvider* FWL_GetThemeProvider(); | |
39 extern FWL_ERR FWL_Execute(const CFX_WideStringC& wsExecutable, | |
40 const CFX_WideStringC& wsParameters); | |
41 FWL_ERR FWL_SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen); | |
42 FX_BOOL FWL_AppIsActived(); | |
43 | |
44 #endif // XFA_INCLUDE_FWL_CORE_FWL_APP_H_ | |
OLD | NEW |