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/ifwl_edit.h

Issue 2464703006: Fold IFWL*::{Initialize|Finalize} into constructor/destructor (Closed)
Patch Set: Rebase to master Created 4 years, 1 month 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>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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