Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: xfa/fwl/core/cfwl_edit.h

Issue 2533623002: Cleanup default FWL params part I (Closed)
Patch Set: Rebase to master Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/cfwl_datetimepicker.cpp ('k') | xfa/fwl/core/cfwl_edit.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 = false) override; 68 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override;
69 void Update() override; 69 void Update() override;
70 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 70 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
71 void SetStates(uint32_t dwStates, bool bSet = true) override; 71 void SetStates(uint32_t dwStates) override;
72 void DrawWidget(CFX_Graphics* pGraphics, 72 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
73 const CFX_Matrix* pMatrix = nullptr) override;
74 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 73 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
75 void OnProcessMessage(CFWL_Message* pMessage) override; 74 void OnProcessMessage(CFWL_Message* pMessage) override;
76 void OnProcessEvent(CFWL_Event* pEvent) override; 75 void OnProcessEvent(CFWL_Event* pEvent) override;
77 void OnDrawWidget(CFX_Graphics* pGraphics, 76 void OnDrawWidget(CFX_Graphics* pGraphics,
78 const CFX_Matrix* pMatrix) override; 77 const CFX_Matrix* pMatrix) override;
79 78
80 virtual void SetText(const CFX_WideString& wsText); 79 virtual void SetText(const CFX_WideString& wsText);
81 80
82 int32_t GetTextLength() const; 81 int32_t GetTextLength() const;
83 CFX_WideString GetText(int32_t nStart = 0, int32_t nCount = -1) const; 82 CFX_WideString GetText(int32_t nStart = 0, int32_t nCount = -1) const;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar; 187 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar;
189 std::unique_ptr<CFWL_Caret> m_pCaret; 188 std::unique_ptr<CFWL_Caret> m_pCaret;
190 CFX_WideString m_wsCache; 189 CFX_WideString m_wsCache;
191 CFX_WideString m_wsFont; 190 CFX_WideString m_wsFont;
192 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; 191 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords;
193 int32_t m_iCurRecord; 192 int32_t m_iCurRecord;
194 int32_t m_iMaxRecord; 193 int32_t m_iMaxRecord;
195 }; 194 };
196 195
197 #endif // XFA_FWL_CORE_CFWL_EDIT_H_ 196 #endif // XFA_FWL_CORE_CFWL_EDIT_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_datetimepicker.cpp ('k') | xfa/fwl/core/cfwl_edit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698