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