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

Side by Side Diff: xfa/fwl/basewidget/fwl_editimp.h

Issue 1946213003: Remove CLASSHASH defines in favour of an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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
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_BASEWIDGET_FWL_EDITIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 class CFWL_EditImp; 24 class CFWL_EditImp;
25 class CFWL_EditImpDelegate; 25 class CFWL_EditImpDelegate;
26 26
27 class CFWL_EditImp : public CFWL_WidgetImp { 27 class CFWL_EditImp : public CFWL_WidgetImp {
28 public: 28 public:
29 CFWL_EditImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); 29 CFWL_EditImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter);
30 ~CFWL_EditImp() override; 30 ~CFWL_EditImp() override;
31 31
32 // CFWL_WidgetImp: 32 // CFWL_WidgetImp:
33 FWL_ERR GetClassName(CFX_WideString& wsClass) const override; 33 FWL_ERR GetClassName(CFX_WideString& wsClass) const override;
34 uint32_t GetClassID() const override; 34 FWL_Type GetClassID() const override { return FWL_Type::Edit; }
35 FWL_ERR Initialize() override; 35 FWL_ERR Initialize() override;
36 FWL_ERR Finalize() override; 36 FWL_ERR Finalize() override;
37 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 37 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
38 FWL_ERR SetWidgetRect(const CFX_RectF& rect) override; 38 FWL_ERR SetWidgetRect(const CFX_RectF& rect) override;
39 FWL_ERR Update() override; 39 FWL_ERR Update() override;
40 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 40 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
41 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; 41 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override;
42 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, 42 FWL_ERR DrawWidget(CFX_Graphics* pGraphics,
43 const CFX_Matrix* pMatrix = NULL) override; 43 const CFX_Matrix* pMatrix = NULL) override;
44 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 44 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void OnButtonDblClk(CFWL_MsgMouse* pMsg); 189 void OnButtonDblClk(CFWL_MsgMouse* pMsg);
190 void OnMouseMove(CFWL_MsgMouse* pMsg); 190 void OnMouseMove(CFWL_MsgMouse* pMsg);
191 void OnKeyDown(CFWL_MsgKey* pMsg); 191 void OnKeyDown(CFWL_MsgKey* pMsg);
192 void OnChar(CFWL_MsgKey* pMsg); 192 void OnChar(CFWL_MsgKey* pMsg);
193 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); 193 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos);
194 void DoCursor(CFWL_MsgMouse* pMsg); 194 void DoCursor(CFWL_MsgMouse* pMsg);
195 CFWL_EditImp* m_pOwner; 195 CFWL_EditImp* m_pOwner;
196 }; 196 };
197 197
198 #endif // XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_ 198 #endif // XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698