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_CFWL_EDIT_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_EDIT_H_ |
8 #define XFA_FWL_CORE_CFWL_EDIT_H_ | 8 #define XFA_FWL_CORE_CFWL_EDIT_H_ |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 class CFWL_Edit : public CFWL_Widget { | 59 class CFWL_Edit : public CFWL_Widget { |
60 public: | 60 public: |
61 CFWL_Edit(const CFWL_App* app, | 61 CFWL_Edit(const CFWL_App* app, |
62 std::unique_ptr<CFWL_WidgetProperties> properties, | 62 std::unique_ptr<CFWL_WidgetProperties> properties, |
63 CFWL_Widget* pOuter); | 63 CFWL_Widget* pOuter); |
64 ~CFWL_Edit() override; | 64 ~CFWL_Edit() override; |
65 | 65 |
66 // CFWL_Widget: | 66 // CFWL_Widget: |
67 FWL_Type GetClassID() const override; | 67 FWL_Type GetClassID() const override; |
68 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override; | 68 CFX_RectF GetAutosizedWidgetRect() override; |
| 69 CFX_RectF GetWidgetRect() override; |
69 void Update() override; | 70 void Update() override; |
70 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 71 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
71 void SetStates(uint32_t dwStates) override; | 72 void SetStates(uint32_t dwStates) override; |
72 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; | 73 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
73 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 74 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
74 void OnProcessMessage(CFWL_Message* pMessage) override; | 75 void OnProcessMessage(CFWL_Message* pMessage) override; |
75 void OnProcessEvent(CFWL_Event* pEvent) override; | 76 void OnProcessEvent(CFWL_Event* pEvent) override; |
76 void OnDrawWidget(CFX_Graphics* pGraphics, | 77 void OnDrawWidget(CFX_Graphics* pGraphics, |
77 const CFX_Matrix* pMatrix) override; | 78 const CFX_Matrix* pMatrix) override; |
78 | 79 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar; | 182 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar; |
182 std::unique_ptr<CFWL_Caret> m_pCaret; | 183 std::unique_ptr<CFWL_Caret> m_pCaret; |
183 CFX_WideString m_wsCache; | 184 CFX_WideString m_wsCache; |
184 CFX_WideString m_wsFont; | 185 CFX_WideString m_wsFont; |
185 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; | 186 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; |
186 int32_t m_iCurRecord; | 187 int32_t m_iCurRecord; |
187 int32_t m_iMaxRecord; | 188 int32_t m_iMaxRecord; |
188 }; | 189 }; |
189 | 190 |
190 #endif // XFA_FWL_CORE_CFWL_EDIT_H_ | 191 #endif // XFA_FWL_CORE_CFWL_EDIT_H_ |
OLD | NEW |