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

Side by Side Diff: xfa/fwl/basewidget/fwl_formproxyimp.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
« no previous file with comments | « xfa/fwl/basewidget/fwl_editimp.cpp ('k') | xfa/fwl/basewidget/fwl_formproxyimp.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_BASEWIDGET_FWL_FORMPROXYIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_FORMPROXYIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_FORMPROXYIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_FORMPROXYIMP_H_
9 9
10 #include "xfa/fwl/core/fwl_formimp.h" 10 #include "xfa/fwl/core/fwl_formimp.h"
11 #include "xfa/fwl/core/fwl_widgetimp.h" 11 #include "xfa/fwl/core/fwl_widgetimp.h"
12 12
13 class CFWL_WidgetImpProperties; 13 class CFWL_WidgetImpProperties;
14 class CFWL_FormProxyImpDelegate; 14 class CFWL_FormProxyImpDelegate;
15 15
16 class CFWL_FormProxyImp : public CFWL_FormImp { 16 class CFWL_FormProxyImp : public CFWL_FormImp {
17 public: 17 public:
18 CFWL_FormProxyImp(const CFWL_WidgetImpProperties& properties, 18 CFWL_FormProxyImp(const CFWL_WidgetImpProperties& properties,
19 IFWL_Widget* pOuter); 19 IFWL_Widget* pOuter);
20 ~CFWL_FormProxyImp(); 20 ~CFWL_FormProxyImp() override;
21 virtual FWL_Error GetClassName(CFX_WideString& wsClass) const; 21
22 virtual uint32_t GetClassID() const; 22 // CFWL_WidgetImp
23 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; 23 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
24 virtual FWL_Error Initialize(); 24 FWL_Type GetClassID() const override;
25 virtual FWL_Error Finalize(); 25 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override;
26 virtual FWL_Error Update(); 26 FWL_Error Initialize() override;
27 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, 27 FWL_Error Finalize() override;
28 const CFX_Matrix* pMatrix = NULL); 28 FWL_Error Update() override;
29 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
30 const CFX_Matrix* pMatrix = nullptr) override;
29 31
30 protected: 32 protected:
31 friend class CFWL_FormProxyImpDelegate; 33 friend class CFWL_FormProxyImpDelegate;
32 }; 34 };
35
33 class CFWL_FormProxyImpDelegate : public CFWL_WidgetImpDelegate { 36 class CFWL_FormProxyImpDelegate : public CFWL_WidgetImpDelegate {
34 public: 37 public:
35 CFWL_FormProxyImpDelegate(CFWL_FormProxyImp* pOwner); 38 CFWL_FormProxyImpDelegate(CFWL_FormProxyImp* pOwner);
36 void OnProcessMessage(CFWL_Message* pMessage) override; 39 void OnProcessMessage(CFWL_Message* pMessage) override;
37 40
38 protected: 41 protected:
39 CFWL_FormProxyImp* m_pOwner; 42 CFWL_FormProxyImp* m_pOwner;
40 }; 43 };
41 44
42 #endif // XFA_FWL_BASEWIDGET_FWL_FORMPROXYIMP_H_ 45 #endif // XFA_FWL_BASEWIDGET_FWL_FORMPROXYIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_editimp.cpp ('k') | xfa/fwl/basewidget/fwl_formproxyimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698