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_FWL_CORE_FWL_SDADAPTERIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_SDADAPTERIMP_H_ |
8 #define XFA_FWL_CORE_FWL_SDADAPTERIMP_H_ | 8 #define XFA_FWL_CORE_FWL_SDADAPTERIMP_H_ |
9 | 9 |
10 #include "xfa/fwl/core/ifwl_adapterthreadmgr.h" | 10 #include "xfa/fwl/core/ifwl_adapterthreadmgr.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 CFX_RectF& rtPopup); | 38 CFX_RectF& rtPopup); |
39 | 39 |
40 public: | 40 public: |
41 virtual FWL_ERR GetWidgetRect(IFWL_Widget* pWidget, CFX_RectF& rect); | 41 virtual FWL_ERR GetWidgetRect(IFWL_Widget* pWidget, CFX_RectF& rect); |
42 virtual FWL_ERR SetWidgetIcon(IFWL_Widget* pWidget, | 42 virtual FWL_ERR SetWidgetIcon(IFWL_Widget* pWidget, |
43 const CFX_DIBitmap* pIcon, | 43 const CFX_DIBitmap* pIcon, |
44 FX_BOOL bBig); | 44 FX_BOOL bBig); |
45 virtual FWL_ERR SetWidgetCaption(IFWL_Widget* pWidget, | 45 virtual FWL_ERR SetWidgetCaption(IFWL_Widget* pWidget, |
46 const CFX_WideStringC& wsCaption); | 46 const CFX_WideStringC& wsCaption); |
47 virtual FWL_ERR SetBorderRegion(IFWL_Widget* pWidget, CFX_Path* pPath); | 47 virtual FWL_ERR SetBorderRegion(IFWL_Widget* pWidget, CFX_Path* pPath); |
48 virtual FWL_ERR SetTransparent(IFWL_Widget* pWidget, FX_DWORD dwAlpha); | 48 virtual FWL_ERR SetTransparent(IFWL_Widget* pWidget, uint32_t dwAlpha); |
49 virtual FWL_ERR SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen); | 49 virtual FWL_ERR SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen); |
50 virtual FX_BOOL CheckMessage(); | 50 virtual FX_BOOL CheckMessage(); |
51 virtual FX_BOOL IsIdleMessage(); | 51 virtual FX_BOOL IsIdleMessage(); |
52 virtual FWL_ERR DispatchMessage(); | 52 virtual FWL_ERR DispatchMessage(); |
53 virtual FWL_ERR GetWidgetDC(IFWL_Widget* pWidget, void*& pDC); | 53 virtual FWL_ERR GetWidgetDC(IFWL_Widget* pWidget, void*& pDC); |
54 virtual FWL_ERR ReleaseWidgetDC(IFWL_Widget* pWidget, | 54 virtual FWL_ERR ReleaseWidgetDC(IFWL_Widget* pWidget, |
55 void* pDC, | 55 void* pDC, |
56 CFX_RectF* pClip = 0); | 56 CFX_RectF* pClip = 0); |
57 virtual void* GetWindow(IFWL_Widget* pWidget); | 57 virtual void* GetWindow(IFWL_Widget* pWidget); |
58 virtual FX_DWORD GetKeyState(FX_DWORD dwVirtKey); | 58 virtual uint32_t GetKeyState(uint32_t dwVirtKey); |
59 virtual FWL_ERR RunLoop(IFWL_Widget* widget); | 59 virtual FWL_ERR RunLoop(IFWL_Widget* widget); |
60 virtual FWL_ERR EndLoop(); | 60 virtual FWL_ERR EndLoop(); |
61 virtual FWL_ERR InitMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData); | 61 virtual FWL_ERR InitMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData); |
62 virtual FWL_ERR UpdateMenu(IFWL_Menu* pMenu, | 62 virtual FWL_ERR UpdateMenu(IFWL_Menu* pMenu, |
63 const void* hItem, | 63 const void* hItem, |
64 int32_t iType); | 64 int32_t iType); |
65 virtual int32_t TrackPopupMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData); | 65 virtual int32_t TrackPopupMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData); |
66 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook* hook); | 66 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook* hook); |
67 virtual FWL_ERR GetSystemBorder(FX_FLOAT& l, | 67 virtual FWL_ERR GetSystemBorder(FX_FLOAT& l, |
68 FX_FLOAT& t, | 68 FX_FLOAT& t, |
(...skipping 11 matching lines...) Expand all Loading... |
80 FWL_HTHREAD& hThread, | 80 FWL_HTHREAD& hThread, |
81 FX_BOOL bSuspended = FALSE); | 81 FX_BOOL bSuspended = FALSE); |
82 virtual FWL_ERR Resume(FWL_HTHREAD hThread); | 82 virtual FWL_ERR Resume(FWL_HTHREAD hThread); |
83 virtual FWL_ERR Suspend(FWL_HTHREAD hThread); | 83 virtual FWL_ERR Suspend(FWL_HTHREAD hThread); |
84 virtual FWL_ERR Kill(FWL_HTHREAD hThread, int32_t iExitCode); | 84 virtual FWL_ERR Kill(FWL_HTHREAD hThread, int32_t iExitCode); |
85 virtual FWL_ERR Stop(FWL_HTHREAD hThread, int32_t iExitCode); | 85 virtual FWL_ERR Stop(FWL_HTHREAD hThread, int32_t iExitCode); |
86 virtual IFWL_Thread* GetCurrentThread(); | 86 virtual IFWL_Thread* GetCurrentThread(); |
87 }; | 87 }; |
88 | 88 |
89 #endif // XFA_FWL_CORE_FWL_SDADAPTERIMP_H_ | 89 #endif // XFA_FWL_CORE_FWL_SDADAPTERIMP_H_ |
OLD | NEW |