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 class IFWL_App; |
16 class IFWL_App : public IFWL_NoteThread | 16 class IFWL_App : public IFWL_NoteThread |
17 { | 17 { |
18 public: | 18 public: |
19 static IFWL_App* Create(IFWL_AdapterNative *pAdapter); | 19 static IFWL_App* Create(IFWL_AdapterNative *pAdapter); |
20 virtual FWL_ERR Initialize() = 0; | 20 virtual FWL_ERR Initialize() = 0; |
21 virtual FWL_ERR Finalize() = 0; | 21 virtual FWL_ERR Finalize() = 0; |
22 virtual IFWL_AdapterNative* GetAdapterNative() = 0; | 22 virtual IFWL_AdapterNative* GetAdapterNative() = 0; |
23 virtual IFWL_WidgetMgr* GetWidgetMgr() = 0; | 23 virtual IFWL_WidgetMgr* GetWidgetMgr() = 0; |
24 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvi
der* pThemeProvider) = 0; | 24 virtual FWL_ERR SetThemeProvider(IFWL_ThemeProvi
der* pThemeProvider) = 0; |
25 virtual FWL_ERR» » » » Exit(FX_INT32 iExitCode = 0) = 0
; | 25 virtual FWL_ERR» » » » Exit(int32_t iExitCode = 0) = 0; |
26 }; | 26 }; |
27 IFWL_App* FWL_GetApp(); | 27 IFWL_App* FWL_GetApp(); |
28 void FWL_SetApp(IFWL_App *pApp); | 28 void FWL_SetApp(IFWL_App *pApp); |
29 IFWL_AdapterNative* FWL_GetAdapterNative(); | 29 IFWL_AdapterNative* FWL_GetAdapterNative(); |
30 IFWL_AdapterWidgetMgr* FWL_GetAdapterWidgetMgr(); | 30 IFWL_AdapterWidgetMgr* FWL_GetAdapterWidgetMgr(); |
31 IFWL_ThemeProvider* FWL_GetThemeProvider(); | 31 IFWL_ThemeProvider* FWL_GetThemeProvider(); |
32 extern FWL_ERR FWL_Execute(FX_WSTR wsExecutable, FX_WSTR wsParameters); | 32 extern FWL_ERR FWL_Execute(FX_WSTR wsExecutable, FX_WSTR wsParameters); |
33 FWL_ERR FWL_SetFullScreen(IFWL_Widget *pWidget, FX_BOOL bFullScreen); | 33 FWL_ERR FWL_SetFullScreen(IFWL_Widget *pWidget, FX_BOOL bFullScreen); |
34 FX_BOOL FWL_AppIsActived(); | 34 FX_BOOL FWL_AppIsActived(); |
35 #endif | 35 #endif |
OLD | NEW |