Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / include / fwl / core / fwl_app.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FWL_APP_H\r
8 #define _FWL_APP_H\r
9 class IFWL_NoteThread;\r
10 class IFWL_AdapterNative;\r
11 class IFWL_Widget;\r
12 class IFWL_WidgetMgr;\r
13 class IFWL_ThemeProvider;\r
14 class IFWL_AdapterWidgetMgr;\r
15 class IFWL_App;\r
16 class IFWL_App : public IFWL_NoteThread\r
17 {\r
18 public:\r
19     static IFWL_App* Create(IFWL_AdapterNative *pAdapter);\r
20     virtual FWL_ERR                             Initialize() = 0;\r
21     virtual FWL_ERR                             Finalize() = 0;\r
22     virtual IFWL_AdapterNative* GetAdapterNative() = 0;\r
23     virtual IFWL_WidgetMgr*             GetWidgetMgr() = 0;\r
24     virtual FWL_ERR                             SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) = 0;\r
25     virtual FWL_ERR                             Exit(int32_t iExitCode = 0) = 0;\r
26 };\r
27 IFWL_App* FWL_GetApp();\r
28 void FWL_SetApp(IFWL_App *pApp);\r
29 IFWL_AdapterNative*     FWL_GetAdapterNative();\r
30 IFWL_AdapterWidgetMgr* FWL_GetAdapterWidgetMgr();\r
31 IFWL_ThemeProvider*     FWL_GetThemeProvider();\r
32 extern FWL_ERR FWL_Execute(FX_WSTR wsExecutable, FX_WSTR wsParameters);\r
33 FWL_ERR FWL_SetFullScreen(IFWL_Widget *pWidget, FX_BOOL bFullScreen);\r
34 FX_BOOL FWL_AppIsActived();\r
35 #endif\r