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_ADAPTER_FWL_ADAPTERWIDGETMGR_H_ | 7 #ifndef XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERWIDGETMGR_H_ |
8 #define XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERWIDGETMGR_H_ | 8 #define XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERWIDGETMGR_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_coordinates.h" | 10 #include "core/include/fxcrt/fx_coordinates.h" |
11 #include "core/include/fxcrt/fx_system.h" | 11 #include "core/include/fxcrt/fx_system.h" |
12 #include "xfa/include/fwl/core/fwl_error.h" | 12 #include "xfa/include/fwl/core/fwl_error.h" |
13 | 13 |
14 class IFWL_Widget; | 14 class IFWL_Widget; |
15 class IFWL_Menu; | 15 class IFWL_Menu; |
16 class IFWL_MenuDP; | 16 class IFWL_MenuDP; |
17 class CFX_Path; | 17 class CFX_Path; |
18 class CFX_DIBitmap; | 18 class CFX_DIBitmap; |
19 class IFWL_AdapterMessageHook; | 19 class IFWL_AdapterMessageHook; |
20 class IFWL_AppDelegate; | |
21 | 20 |
22 class IFWL_AdapterWidgetMgr { | 21 class IFWL_AdapterWidgetMgr { |
23 public: | 22 public: |
24 virtual ~IFWL_AdapterWidgetMgr() {} | 23 virtual ~IFWL_AdapterWidgetMgr() {} |
25 virtual FWL_ERR CreateWidget(IFWL_Widget* pWidget, | 24 virtual FWL_ERR CreateWidget(IFWL_Widget* pWidget, |
26 IFWL_Widget* pParent = NULL) = 0; | 25 IFWL_Widget* pParent = NULL) = 0; |
27 virtual FWL_ERR DestroyWidget(IFWL_Widget* pWidget) = 0; | 26 virtual FWL_ERR DestroyWidget(IFWL_Widget* pWidget) = 0; |
28 virtual FWL_ERR GetWidgetRect(IFWL_Widget* pWidget, CFX_RectF& rect) = 0; | 27 virtual FWL_ERR GetWidgetRect(IFWL_Widget* pWidget, CFX_RectF& rect) = 0; |
29 virtual FWL_ERR SetWidgetRect(IFWL_Widget* pWidget, | 28 virtual FWL_ERR SetWidgetRect(IFWL_Widget* pWidget, |
30 const CFX_RectF& rect) = 0; | 29 const CFX_RectF& rect) = 0; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 FX_FLOAT& r, | 72 FX_FLOAT& r, |
74 FX_FLOAT& b) = 0; | 73 FX_FLOAT& b) = 0; |
75 virtual FX_BOOL GetPopupPos(IFWL_Widget* pWidget, | 74 virtual FX_BOOL GetPopupPos(IFWL_Widget* pWidget, |
76 FX_FLOAT fMinHeight, | 75 FX_FLOAT fMinHeight, |
77 FX_FLOAT fMaxHeight, | 76 FX_FLOAT fMaxHeight, |
78 const CFX_RectF& rtAnchor, | 77 const CFX_RectF& rtAnchor, |
79 CFX_RectF& rtPopup) = 0; | 78 CFX_RectF& rtPopup) = 0; |
80 }; | 79 }; |
81 | 80 |
82 #endif // XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERWIDGETMGR_H_ | 81 #endif // XFA_INCLUDE_FWL_ADAPTER_FWL_ADAPTERWIDGETMGR_H_ |
OLD | NEW |