| 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_EDIT_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_EDIT_H_ |
| 8 #define XFA_FWL_CORE_IFWL_EDIT_H_ | 8 #define XFA_FWL_CORE_IFWL_EDIT_H_ |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 class IFWL_EditDP : public IFWL_DataProvider {}; | 105 class IFWL_EditDP : public IFWL_DataProvider {}; |
| 106 | 106 |
| 107 class IFWL_Edit : public IFWL_Widget { | 107 class IFWL_Edit : public IFWL_Widget { |
| 108 public: | 108 public: |
| 109 IFWL_Edit(const IFWL_App* app, | 109 IFWL_Edit(const IFWL_App* app, |
| 110 const CFWL_WidgetImpProperties& properties, | 110 const CFWL_WidgetImpProperties& properties, |
| 111 IFWL_Widget* pOuter); | 111 IFWL_Widget* pOuter); |
| 112 ~IFWL_Edit() override; | 112 ~IFWL_Edit() override; |
| 113 | 113 |
| 114 // IFWL_Widget: | 114 // IFWL_Widget: |
| 115 void Initialize() override; | |
| 116 void Finalize() override; | |
| 117 FWL_Type GetClassID() const override; | 115 FWL_Type GetClassID() const override; |
| 118 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 116 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 119 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; | 117 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; |
| 120 FWL_Error Update() override; | 118 FWL_Error Update() override; |
| 121 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 119 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 122 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; | 120 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; |
| 123 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 121 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 124 const CFX_Matrix* pMatrix = nullptr) override; | 122 const CFX_Matrix* pMatrix = nullptr) override; |
| 125 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 123 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
| 126 | 124 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 void OnButtonDblClk(CFWL_MsgMouse* pMsg); | 270 void OnButtonDblClk(CFWL_MsgMouse* pMsg); |
| 273 void OnMouseMove(CFWL_MsgMouse* pMsg); | 271 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 274 void OnKeyDown(CFWL_MsgKey* pMsg); | 272 void OnKeyDown(CFWL_MsgKey* pMsg); |
| 275 void OnChar(CFWL_MsgKey* pMsg); | 273 void OnChar(CFWL_MsgKey* pMsg); |
| 276 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 274 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
| 277 void DoCursor(CFWL_MsgMouse* pMsg); | 275 void DoCursor(CFWL_MsgMouse* pMsg); |
| 278 IFWL_Edit* m_pOwner; | 276 IFWL_Edit* m_pOwner; |
| 279 }; | 277 }; |
| 280 | 278 |
| 281 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ | 279 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ |
| OLD | NEW |