Chromium Code Reviews| Index: xfa/fwl/core/fwl_widgetmgrimp.h |
| diff --git a/xfa/fwl/core/fwl_widgetmgrimp.h b/xfa/fwl/core/fwl_widgetmgrimp.h |
| index 528ecdb792328453d043c642aaa30be5eb2d5547..9d6b6358acc239b3e7631e413d4d54aab0d2f927 100644 |
| --- a/xfa/fwl/core/fwl_widgetmgrimp.h |
| +++ b/xfa/fwl/core/fwl_widgetmgrimp.h |
| @@ -17,10 +17,10 @@ |
| class CFWL_Message; |
| class CFWL_WidgetMgrDelegate; |
| +class CXFA_FFApp; |
| +class CXFA_FWLAdapterWidgetMgr; |
| class CFX_Graphics; |
| class CFX_Matrix; |
| -class IFWL_AdapterWidgetMgr; |
| -class IFWL_AdapterNative; |
| class IFWL_Widget; |
| class CFWL_WidgetMgrItem { |
| @@ -61,7 +61,7 @@ class CFWL_WidgetMgrItem { |
| class CFWL_WidgetMgr : public IFWL_WidgetMgr { |
| public: |
| - CFWL_WidgetMgr(IFWL_AdapterNative* pAdapterNative); |
| + CFWL_WidgetMgr(CXFA_FFApp* pAdapterNative); |
| ~CFWL_WidgetMgr() override; |
| // IFWL_WidgetMgr: |
| @@ -83,29 +83,7 @@ class CFWL_WidgetMgr : public IFWL_WidgetMgr { |
| void SetOwner(IFWL_Widget* pOwner, IFWL_Widget* pOwned); |
| void SetParent(IFWL_Widget* pParent, IFWL_Widget* pChild); |
| FX_BOOL IsChild(IFWL_Widget* pChild, IFWL_Widget* pParent); |
| - FWL_ERR CreateWidget_Native(IFWL_Widget* pWidget); |
| - FWL_ERR DestroyWidget_Native(IFWL_Widget* pWidget); |
| - FWL_ERR GetWidgetRect_Native(IFWL_Widget* pWidget, CFX_RectF& rect); |
| FWL_ERR SetWidgetRect_Native(IFWL_Widget* pWidget, const CFX_RectF& rect); |
| - FWL_ERR SetWidgetPosition_Native(IFWL_Widget* pWidget, |
| - FX_FLOAT fx, |
| - FX_FLOAT fy); |
| - FWL_ERR SetWidgetIcon_Native(IFWL_Widget* pWidget, |
| - const CFX_DIBitmap* pIcon, |
| - FX_BOOL bBig); |
| - FWL_ERR SetWidgetCaption_Native(IFWL_Widget* pWidget, |
| - const CFX_WideStringC& wsCaption); |
| - FWL_ERR SetBorderRegion_Native(IFWL_Widget* pWidget, CFX_Path* pPath); |
| - FWL_ERR ShowWidget_Native(IFWL_Widget* pWidget); |
| - FWL_ERR HideWidget_Native(IFWL_Widget* pWidget); |
| - FWL_ERR SetNormal_Native(IFWL_Widget* pWidget); |
| - FWL_ERR SetMaximize_Native(IFWL_Widget* pWidget); |
| - FWL_ERR SetMinimize_Native(IFWL_Widget* pWidget); |
| - FX_BOOL CheckMessage_Native(); |
| - FWL_ERR DispatchMessage_Native(); |
| - FX_BOOL IsIdleMessage_Native(); |
| - FWL_ERR Exit_Native(int32_t iExitCode); |
| - FWL_ERR CreateWidgetWithNativeId_Native(IFWL_Widget* pWidget, void* vp); |
| IFWL_Widget* GetWidgetAtPoint(IFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); |
| void NotifySizeChanged(IFWL_Widget* pForm, FX_FLOAT fx, FX_FLOAT fy); |
| IFWL_Widget* nextTab(IFWL_Widget* parent, IFWL_Widget* focus, FX_BOOL& bFind); |
| @@ -116,7 +94,7 @@ class CFWL_WidgetMgr : public IFWL_WidgetMgr { |
| IFWL_Widget* GetDefaultButton(IFWL_Widget* pParent); |
| void AddRedrawCounts(IFWL_Widget* pWidget); |
| void ResetRedrawCounts(IFWL_Widget* pWidget); |
| - IFWL_AdapterWidgetMgr* GetAdapterWidgetMgr() { return m_pAdapter; } |
| + CXFA_FWLAdapterWidgetMgr* GetAdapterWidgetMgr() { return m_pAdapter; } |
|
Tom Sepez
2016/04/28 16:42:12
nit: const method
dsinclair
2016/04/28 17:53:46
Done.
|
| CFWL_WidgetMgrDelegate* GetDelegate() { return m_pDelegate; } |
|
Tom Sepez
2016/04/28 16:42:12
nit: const method
dsinclair
2016/04/28 17:53:46
Done.
|
| CFWL_WidgetMgrItem* GetWidgetMgrItem(IFWL_Widget* pWidget); |
| FX_BOOL IsThreadEnabled(); |
| @@ -134,7 +112,7 @@ class CFWL_WidgetMgr : public IFWL_WidgetMgr { |
| IFWL_Widget** pWidget = NULL); |
| FX_BOOL IsAbleNative(IFWL_Widget* pWidget); |
| CFX_MapPtrToPtr m_mapWidgetItem; |
| - IFWL_AdapterWidgetMgr* m_pAdapter; |
| + CXFA_FWLAdapterWidgetMgr* m_pAdapter; |
| CFWL_WidgetMgrDelegate* m_pDelegate; |
| friend class CFWL_WidgetMgrDelegate; |
| uint32_t m_dwCapability; |