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