| 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_WIDGETIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| 9 | 9 |
| 10 #include <memory> |
| 11 |
| 10 #include "core/fxcrt/include/fx_coordinates.h" | 12 #include "core/fxcrt/include/fx_coordinates.h" |
| 11 #include "core/fxcrt/include/fx_system.h" | 13 #include "core/fxcrt/include/fx_system.h" |
| 12 #include "xfa/fwl/core/cfwl_event.h" | 14 #include "xfa/fwl/core/cfwl_event.h" |
| 13 #include "xfa/fwl/core/cfwl_themepart.h" | 15 #include "xfa/fwl/core/cfwl_themepart.h" |
| 14 #include "xfa/fwl/core/ifwl_widgetdelegate.h" | 16 #include "xfa/fwl/core/ifwl_widgetdelegate.h" |
| 15 #include "xfa/fwl/core/include/fwl_widgethit.h" | 17 #include "xfa/fwl/core/include/fwl_widgethit.h" |
| 16 #include "xfa/fwl/theme/cfwl_widgettp.h" | 18 #include "xfa/fwl/theme/cfwl_widgettp.h" |
| 17 | 19 |
| 18 class CFWL_AppImp; | 20 class CFWL_AppImp; |
| 19 class CFWL_MsgKey; | 21 class CFWL_MsgKey; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 IFWL_ThemeProvider* pTheme, | 149 IFWL_ThemeProvider* pTheme, |
| 148 const CFX_Matrix* pMatrix = nullptr); | 150 const CFX_Matrix* pMatrix = nullptr); |
| 149 void DrawEdge(CFX_Graphics* pGraphics, | 151 void DrawEdge(CFX_Graphics* pGraphics, |
| 150 CFWL_Part iPartEdge, | 152 CFWL_Part iPartEdge, |
| 151 IFWL_ThemeProvider* pTheme, | 153 IFWL_ThemeProvider* pTheme, |
| 152 const CFX_Matrix* pMatrix = nullptr); | 154 const CFX_Matrix* pMatrix = nullptr); |
| 153 void NotifyDriver(); | 155 void NotifyDriver(); |
| 154 | 156 |
| 155 FX_BOOL IsParent(IFWL_Widget* pParent); | 157 FX_BOOL IsParent(IFWL_Widget* pParent); |
| 156 | 158 |
| 157 CFWL_WidgetMgr* m_pWidgetMgr; | 159 CFWL_WidgetMgr* const m_pWidgetMgr; |
| 158 CFWL_AppImp* m_pOwnerApp; | 160 CFWL_AppImp* m_pOwnerApp; |
| 159 CFWL_WidgetImpProperties* m_pProperties; | 161 std::unique_ptr<CFWL_WidgetImpProperties> m_pProperties; |
| 160 IFWL_WidgetDelegate* m_pDelegate; | 162 IFWL_WidgetDelegate* m_pDelegate; |
| 161 IFWL_WidgetDelegate* m_pCurDelegate; | 163 IFWL_WidgetDelegate* m_pCurDelegate; |
| 162 IFWL_Widget* m_pOuter; | 164 IFWL_Widget* m_pOuter; |
| 163 IFWL_Widget* m_pInterface; | 165 IFWL_Widget* m_pInterface; |
| 164 void* m_pLayoutItem; | 166 void* m_pLayoutItem; |
| 165 void* m_pAssociate; | 167 void* m_pAssociate; |
| 166 int32_t m_iLock; | 168 int32_t m_iLock; |
| 167 uint32_t m_nEventKey; | 169 uint32_t m_nEventKey; |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate { | 172 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate { |
| 171 public: | 173 public: |
| 172 CFWL_WidgetImpDelegate(); | 174 CFWL_WidgetImpDelegate(); |
| 173 ~CFWL_WidgetImpDelegate() override {} | 175 ~CFWL_WidgetImpDelegate() override {} |
| 174 void OnProcessMessage(CFWL_Message* pMessage) override; | 176 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 175 void OnProcessEvent(CFWL_Event* pEvent) override; | 177 void OnProcessEvent(CFWL_Event* pEvent) override; |
| 176 void OnDrawWidget(CFX_Graphics* pGraphics, | 178 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 177 const CFX_Matrix* pMatrix = nullptr) override; | 179 const CFX_Matrix* pMatrix = nullptr) override; |
| 178 }; | 180 }; |
| 179 | 181 |
| 180 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 182 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
| OLD | NEW |