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_IFWL_ADAPTERWIDGETMGR_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_ADAPTERWIDGETMGR_H_ |
8 #define XFA_FWL_CORE_IFWL_ADAPTERWIDGETMGR_H_ | 8 #define XFA_FWL_CORE_IFWL_ADAPTERWIDGETMGR_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 FX_FLOAT fx, | 31 FX_FLOAT fx, |
32 FX_FLOAT fy) = 0; | 32 FX_FLOAT fy) = 0; |
33 virtual FWL_ERR SetParentWidget(IFWL_Widget* pWidget, | 33 virtual FWL_ERR SetParentWidget(IFWL_Widget* pWidget, |
34 IFWL_Widget* pParent) = 0; | 34 IFWL_Widget* pParent) = 0; |
35 virtual FWL_ERR SetWidgetIcon(IFWL_Widget* pWidget, | 35 virtual FWL_ERR SetWidgetIcon(IFWL_Widget* pWidget, |
36 const CFX_DIBitmap* pIcon, | 36 const CFX_DIBitmap* pIcon, |
37 FX_BOOL bBig) = 0; | 37 FX_BOOL bBig) = 0; |
38 virtual FWL_ERR SetWidgetCaption(IFWL_Widget* pWidget, | 38 virtual FWL_ERR SetWidgetCaption(IFWL_Widget* pWidget, |
39 const CFX_WideStringC& wsCaption) = 0; | 39 const CFX_WideStringC& wsCaption) = 0; |
40 virtual FWL_ERR SetBorderRegion(IFWL_Widget* pWidget, CFX_Path* pPath) = 0; | 40 virtual FWL_ERR SetBorderRegion(IFWL_Widget* pWidget, CFX_Path* pPath) = 0; |
41 virtual FWL_ERR SetTransparent(IFWL_Widget* pWidget, FX_DWORD dwAlpha) = 0; | 41 virtual FWL_ERR SetTransparent(IFWL_Widget* pWidget, uint32_t dwAlpha) = 0; |
42 virtual FWL_ERR ShowWidget(IFWL_Widget* pWidget) = 0; | 42 virtual FWL_ERR ShowWidget(IFWL_Widget* pWidget) = 0; |
43 virtual FWL_ERR HideWidget(IFWL_Widget* pWidget) = 0; | 43 virtual FWL_ERR HideWidget(IFWL_Widget* pWidget) = 0; |
44 virtual FWL_ERR SetNormal(IFWL_Widget* pWidget) = 0; | 44 virtual FWL_ERR SetNormal(IFWL_Widget* pWidget) = 0; |
45 virtual FWL_ERR SetMaximize(IFWL_Widget* pWidget) = 0; | 45 virtual FWL_ERR SetMaximize(IFWL_Widget* pWidget) = 0; |
46 virtual FWL_ERR SetMinimize(IFWL_Widget* pWidget) = 0; | 46 virtual FWL_ERR SetMinimize(IFWL_Widget* pWidget) = 0; |
47 virtual FWL_ERR SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen) = 0; | 47 virtual FWL_ERR SetFullScreen(IFWL_Widget* pWidget, FX_BOOL bFullScreen) = 0; |
48 virtual FX_BOOL CheckMessage() = 0; | 48 virtual FX_BOOL CheckMessage() = 0; |
49 virtual FX_BOOL IsIdleMessage() = 0; | 49 virtual FX_BOOL IsIdleMessage() = 0; |
50 virtual FWL_ERR DispatchMessage() = 0; | 50 virtual FWL_ERR DispatchMessage() = 0; |
51 virtual FWL_ERR RepaintWidget(IFWL_Widget* pWidget, | 51 virtual FWL_ERR RepaintWidget(IFWL_Widget* pWidget, |
52 const CFX_RectF* pRect) = 0; | 52 const CFX_RectF* pRect) = 0; |
53 virtual FWL_ERR Exit(int32_t iExitCode) = 0; | 53 virtual FWL_ERR Exit(int32_t iExitCode) = 0; |
54 virtual FWL_ERR CreateWidgetWithNativeId(IFWL_Widget* pWidget, | 54 virtual FWL_ERR CreateWidgetWithNativeId(IFWL_Widget* pWidget, |
55 void* UserData) = 0; | 55 void* UserData) = 0; |
56 virtual FWL_ERR GetWidgetDC(IFWL_Widget* pWidget, void*& pDC) = 0; | 56 virtual FWL_ERR GetWidgetDC(IFWL_Widget* pWidget, void*& pDC) = 0; |
57 virtual FWL_ERR ReleaseWidgetDC(IFWL_Widget* pWidget, | 57 virtual FWL_ERR ReleaseWidgetDC(IFWL_Widget* pWidget, |
58 void* pDC, | 58 void* pDC, |
59 CFX_RectF* pClip = 0) = 0; | 59 CFX_RectF* pClip = 0) = 0; |
60 virtual void* GetWindow(IFWL_Widget* pWidget) = 0; | 60 virtual void* GetWindow(IFWL_Widget* pWidget) = 0; |
61 virtual FX_DWORD GetKeyState(FX_DWORD dwVirtKey) = 0; | 61 virtual uint32_t GetKeyState(uint32_t dwVirtKey) = 0; |
62 virtual FWL_ERR RunLoop(IFWL_Widget* widget) = 0; | 62 virtual FWL_ERR RunLoop(IFWL_Widget* widget) = 0; |
63 virtual FWL_ERR EndLoop() = 0; | 63 virtual FWL_ERR EndLoop() = 0; |
64 virtual FWL_ERR InitMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData) = 0; | 64 virtual FWL_ERR InitMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData) = 0; |
65 virtual FWL_ERR UpdateMenu(IFWL_Menu* pMenu, | 65 virtual FWL_ERR UpdateMenu(IFWL_Menu* pMenu, |
66 const void* hItem, | 66 const void* hItem, |
67 int32_t iType) = 0; | 67 int32_t iType) = 0; |
68 virtual int32_t TrackPopupMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData) = 0; | 68 virtual int32_t TrackPopupMenu(IFWL_Menu* pMenu, IFWL_MenuDP* pMenuData) = 0; |
69 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook* hook) = 0; | 69 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook* hook) = 0; |
70 virtual FWL_ERR GetSystemBorder(FX_FLOAT& l, | 70 virtual FWL_ERR GetSystemBorder(FX_FLOAT& l, |
71 FX_FLOAT& t, | 71 FX_FLOAT& t, |
72 FX_FLOAT& r, | 72 FX_FLOAT& r, |
73 FX_FLOAT& b) = 0; | 73 FX_FLOAT& b) = 0; |
74 virtual FX_BOOL GetPopupPos(IFWL_Widget* pWidget, | 74 virtual FX_BOOL GetPopupPos(IFWL_Widget* pWidget, |
75 FX_FLOAT fMinHeight, | 75 FX_FLOAT fMinHeight, |
76 FX_FLOAT fMaxHeight, | 76 FX_FLOAT fMaxHeight, |
77 const CFX_RectF& rtAnchor, | 77 const CFX_RectF& rtAnchor, |
78 CFX_RectF& rtPopup) = 0; | 78 CFX_RectF& rtPopup) = 0; |
79 }; | 79 }; |
80 | 80 |
81 #endif // XFA_FWL_CORE_IFWL_ADAPTERWIDGETMGR_H_ | 81 #endif // XFA_FWL_CORE_IFWL_ADAPTERWIDGETMGR_H_ |
OLD | NEW |