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

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

Issue 2435603003: Cleanup unused methods and return values in FWL code. (Closed)
Patch Set: Fix typo Created 4 years, 2 months 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/ifwl_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_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_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>
11 #include <memory> 11 #include <memory>
12 #include <vector> 12 #include <vector>
13 13
14 #include "xfa/fde/ifde_txtedtdorecord.h" 14 #include "xfa/fde/ifde_txtedtdorecord.h"
15 #include "xfa/fde/ifde_txtedtengine.h" 15 #include "xfa/fde/ifde_txtedtengine.h"
16 #include "xfa/fwl/core/cfwl_event.h" 16 #include "xfa/fwl/core/cfwl_event.h"
17 #include "xfa/fwl/core/ifwl_dataprovider.h" 17 #include "xfa/fwl/core/ifwl_dataprovider.h"
18 #include "xfa/fwl/core/ifwl_scrollbar.h" 18 #include "xfa/fwl/core/ifwl_scrollbar.h"
19 #include "xfa/fwl/lightwidget/cfwl_widget.h" 19 #include "xfa/fwl/lightwidget/cfwl_widget.h"
20 #include "xfa/fxgraphics/cfx_path.h" 20 #include "xfa/fxgraphics/cfx_path.h"
21 21
22 #define FWL_CLASS_Edit L"FWL_EDIT"
23 #define FWL_STYLEEXT_EDT_ReadOnly (1L << 0) 22 #define FWL_STYLEEXT_EDT_ReadOnly (1L << 0)
24 #define FWL_STYLEEXT_EDT_MultiLine (1L << 1) 23 #define FWL_STYLEEXT_EDT_MultiLine (1L << 1)
25 #define FWL_STYLEEXT_EDT_WantReturn (1L << 2) 24 #define FWL_STYLEEXT_EDT_WantReturn (1L << 2)
26 #define FWL_STYLEEXT_EDT_NoHideSel (1L << 3) 25 #define FWL_STYLEEXT_EDT_NoHideSel (1L << 3)
27 #define FWL_STYLEEXT_EDT_AutoHScroll (1L << 4) 26 #define FWL_STYLEEXT_EDT_AutoHScroll (1L << 4)
28 #define FWL_STYLEEXT_EDT_AutoVScroll (1L << 5) 27 #define FWL_STYLEEXT_EDT_AutoVScroll (1L << 5)
29 #define FWL_STYLEEXT_EDT_NoRedoUndo (1L << 6) 28 #define FWL_STYLEEXT_EDT_NoRedoUndo (1L << 6)
30 #define FWL_STYLEEXT_EDT_Validate (1L << 7) 29 #define FWL_STYLEEXT_EDT_Validate (1L << 7)
31 #define FWL_STYLEEXT_EDT_Password (1L << 8) 30 #define FWL_STYLEEXT_EDT_Password (1L << 8)
32 #define FWL_STYLEEXT_EDT_Number (1L << 9) 31 #define FWL_STYLEEXT_EDT_Number (1L << 9)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 class IFWL_Caret; 103 class IFWL_Caret;
105 104
106 class IFWL_EditDP : public IFWL_DataProvider {}; 105 class IFWL_EditDP : public IFWL_DataProvider {};
107 106
108 class IFWL_Edit : public IFWL_Widget { 107 class IFWL_Edit : public IFWL_Widget {
109 public: 108 public:
110 IFWL_Edit(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); 109 IFWL_Edit(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter);
111 ~IFWL_Edit() override; 110 ~IFWL_Edit() override;
112 111
113 // IFWL_Widget: 112 // IFWL_Widget:
114 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
115 FWL_Type GetClassID() const override; 113 FWL_Type GetClassID() const override;
116 FWL_Error Initialize() override; 114 FWL_Error Initialize() override;
117 FWL_Error Finalize() override; 115 void Finalize() 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
127 virtual FWL_Error SetText(const CFX_WideString& wsText); 125 virtual FWL_Error SetText(const CFX_WideString& wsText);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimepicker.cpp ('k') | xfa/fwl/core/ifwl_edit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698