| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 CFWL_EventType::CheckWord, | 84 CFWL_EventType::CheckWord, |
| 85 CFX_ByteString bsWord; | 85 CFX_ByteString bsWord; |
| 86 bool bCheckWord;) | 86 bool bCheckWord;) |
| 87 | 87 |
| 88 FWL_EVENT_DEF(CFWL_EvtEdtGetSuggestWords, | 88 FWL_EVENT_DEF(CFWL_EvtEdtGetSuggestWords, |
| 89 CFWL_EventType::GetSuggestedWords, | 89 CFWL_EventType::GetSuggestedWords, |
| 90 bool bSuggestWords; | 90 bool bSuggestWords; |
| 91 CFX_ByteString bsWord; | 91 CFX_ByteString bsWord; |
| 92 std::vector<CFX_ByteString> bsArraySuggestWords;) | 92 std::vector<CFX_ByteString> bsArraySuggestWords;) |
| 93 | 93 |
| 94 class CFWL_WidgetImpProperties; | |
| 95 class IFDE_TxtEdtDoRecord; | 94 class IFDE_TxtEdtDoRecord; |
| 96 class IFWL_Edit; | 95 class IFWL_Edit; |
| 97 class CFWL_MsgActivate; | 96 class CFWL_MsgActivate; |
| 98 class CFWL_MsgDeactivate; | 97 class CFWL_MsgDeactivate; |
| 99 class CFWL_MsgMouse; | 98 class CFWL_MsgMouse; |
| 100 class CFWL_WidgetImpProperties; | 99 class CFWL_WidgetProperties; |
| 101 class IFWL_Caret; | 100 class IFWL_Caret; |
| 102 | 101 |
| 103 class IFWL_EditDP : public IFWL_DataProvider {}; | 102 class IFWL_EditDP : public IFWL_DataProvider {}; |
| 104 | 103 |
| 105 class IFWL_Edit : public IFWL_Widget { | 104 class IFWL_Edit : public IFWL_Widget { |
| 106 public: | 105 public: |
| 107 IFWL_Edit(const IFWL_App* app, | 106 IFWL_Edit(const IFWL_App* app, |
| 108 const CFWL_WidgetImpProperties& properties, | 107 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 109 IFWL_Widget* pOuter); | 108 IFWL_Widget* pOuter); |
| 110 ~IFWL_Edit() override; | 109 ~IFWL_Edit() override; |
| 111 | 110 |
| 112 // IFWL_Widget: | 111 // IFWL_Widget: |
| 113 FWL_Type GetClassID() const override; | 112 FWL_Type GetClassID() const override; |
| 114 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 113 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
| 115 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; | 114 FWL_Error SetWidgetRect(const CFX_RectF& rect) override; |
| 116 FWL_Error Update() override; | 115 FWL_Error Update() override; |
| 117 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 116 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 118 void SetStates(uint32_t dwStates, bool bSet = true) override; | 117 void SetStates(uint32_t dwStates, bool bSet = true) override; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 259 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| 261 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 260 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 262 void OnButtonDblClk(CFWL_MsgMouse* pMsg); | 261 void OnButtonDblClk(CFWL_MsgMouse* pMsg); |
| 263 void OnMouseMove(CFWL_MsgMouse* pMsg); | 262 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 264 void OnKeyDown(CFWL_MsgKey* pMsg); | 263 void OnKeyDown(CFWL_MsgKey* pMsg); |
| 265 void OnChar(CFWL_MsgKey* pMsg); | 264 void OnChar(CFWL_MsgKey* pMsg); |
| 266 bool OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 265 bool OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
| 267 }; | 266 }; |
| 268 | 267 |
| 269 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ | 268 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ |
| OLD | NEW |