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_SDAPATER_IMP_H | 7 #ifndef _FWL_SDAPATER_IMP_H |
8 #define _FWL_SDAPATER_IMP_H | 8 #define _FWL_SDAPATER_IMP_H |
9 class IFWL_AdapterNative; | 9 class IFWL_AdapterNative; |
10 class IFWL_AdapterWidgetMgr; | 10 class IFWL_AdapterWidgetMgr; |
11 class IFWL_AdapterThreadMgr; | 11 class IFWL_AdapterThreadMgr; |
12 class IFWL_AdapterTimerMgr; | 12 class IFWL_AdapterTimerMgr; |
13 class IFWL_WidgetMgrDelegate; | 13 class IFWL_WidgetMgrDelegate; |
14 class CFWL_SDAdatperNative; | 14 class CFWL_SDAdatperNative; |
15 class CFWL_SDAdapterWidgetMgr; | 15 class CFWL_SDAdapterWidgetMgr; |
16 class CFWL_SDAdapterTimerMgr; | 16 class CFWL_SDAdapterTimerMgr; |
17 class CFWL_SDAdapterWidgetMgr : public IFWL_AdapterWidgetMgr, public CFX_Object | 17 class CFWL_SDAdapterWidgetMgr : public IFWL_AdapterWidgetMgr |
18 { | 18 { |
19 public: | 19 public: |
20 CFWL_SDAdapterWidgetMgr(); | 20 CFWL_SDAdapterWidgetMgr(); |
21 ~CFWL_SDAdapterWidgetMgr(); | 21 ~CFWL_SDAdapterWidgetMgr(); |
22 virtual FWL_ERR CreateWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent = NU
LL); | 22 virtual FWL_ERR CreateWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent = NU
LL); |
23 virtual FWL_ERR DestroyWidget(IFWL_Widget *pWidget); | 23 virtual FWL_ERR DestroyWidget(IFWL_Widget *pWidget); |
24 virtual FWL_ERR SetWidgetRect(IFWL_Widget *pWidget, const CFX_RectF &rect); | 24 virtual FWL_ERR SetWidgetRect(IFWL_Widget *pWidget, const CFX_RectF &rect); |
25 virtual FWL_ERR SetWidgetPosition(IFWL_Widget *pWidget, FX_FLOAT fx, FX_FLOA
T fy); | 25 virtual FWL_ERR SetWidgetPosition(IFWL_Widget *pWidget, FX_FLOAT fx, FX_FLOA
T fy); |
26 virtual FWL_ERR SetParentWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent); | 26 virtual FWL_ERR SetParentWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent); |
27 virtual FWL_ERR ShowWidget(IFWL_Widget *pWidget); | 27 virtual FWL_ERR ShowWidget(IFWL_Widget *pWidget); |
(...skipping 21 matching lines...) Expand all Loading... |
49 virtual FX_LPVOID GetWindow(IFWL_Widget *pWidget); | 49 virtual FX_LPVOID GetWindow(IFWL_Widget *pWidget); |
50 virtual FX_DWORD GetKeyState(FX_DWORD dwVirtKey); | 50 virtual FX_DWORD GetKeyState(FX_DWORD dwVirtKey); |
51 virtual FWL_ERR RunLoop(IFWL_Widget *widget); | 51 virtual FWL_ERR RunLoop(IFWL_Widget *widget); |
52 virtual FWL_ERR EndLoop(); | 52 virtual FWL_ERR EndLoop(); |
53 virtual FWL_ERR InitMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData); | 53 virtual FWL_ERR InitMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData); |
54 virtual FWL_ERR UpdateMenu(IFWL_Menu *pMenu, FX_LPCVOID hItem, FX_INT32 iTy
pe); | 54 virtual FWL_ERR UpdateMenu(IFWL_Menu *pMenu, FX_LPCVOID hItem, FX_INT32 iTy
pe); |
55 virtual FX_INT32 TrackPopupMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData); | 55 virtual FX_INT32 TrackPopupMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData); |
56 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook *hook); | 56 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook *hook); |
57 virtual FWL_ERR GetSystemBorder(FX_FLOAT &l, FX_FLOAT &t, FX_FLOAT &r, FX_F
LOAT &b); | 57 virtual FWL_ERR GetSystemBorder(FX_FLOAT &l, FX_FLOAT &t, FX_FLOAT &r, FX_F
LOAT &b); |
58 }; | 58 }; |
59 class CFWL_SDAdapterThreadMgr : public IFWL_AdapterThreadMgr, public CFX_Object | 59 class CFWL_SDAdapterThreadMgr : public IFWL_AdapterThreadMgr |
60 { | 60 { |
61 public: | 61 public: |
62 CFWL_SDAdapterThreadMgr(); | 62 CFWL_SDAdapterThreadMgr(); |
63 ~CFWL_SDAdapterThreadMgr(); | 63 ~CFWL_SDAdapterThreadMgr(); |
64 public: | 64 public: |
65 virtual FWL_ERR Start(IFWL_Thread *pThread, FWL_HTHREAD &hThread
, FX_BOOL bSuspended = FALSE); | 65 virtual FWL_ERR Start(IFWL_Thread *pThread, FWL_HTHREAD &hThread
, FX_BOOL bSuspended = FALSE); |
66 virtual FWL_ERR Resume(FWL_HTHREAD hThread); | 66 virtual FWL_ERR Resume(FWL_HTHREAD hThread); |
67 virtual FWL_ERR Suspend(FWL_HTHREAD hThread); | 67 virtual FWL_ERR Suspend(FWL_HTHREAD hThread); |
68 virtual FWL_ERR Kill(FWL_HTHREAD hThread, FX_INT32 iExitCode); | 68 virtual FWL_ERR Kill(FWL_HTHREAD hThread, FX_INT32 iExitCode); |
69 virtual FWL_ERR Stop(FWL_HTHREAD hThread, FX_INT32 iExitCode); | 69 virtual FWL_ERR Stop(FWL_HTHREAD hThread, FX_INT32 iExitCode); |
70 virtual IFWL_Thread* GetCurrentThread(); | 70 virtual IFWL_Thread* GetCurrentThread(); |
71 }; | 71 }; |
72 #endif | 72 #endif |
OLD | NEW |