OLD | NEW |
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_FORMPROXY_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_FORMPROXY_H_ |
8 #define XFA_FWL_CORE_IFWL_FORMPROXY_H_ | 8 #define XFA_FWL_CORE_IFWL_FORMPROXY_H_ |
9 | 9 |
10 #include "xfa/fwl/core/ifwl_form.h" | 10 #include "xfa/fwl/core/ifwl_form.h" |
11 | 11 |
12 class CFWL_WidgetImpProperties; | 12 class CFWL_WidgetImpProperties; |
13 class CFWL_FormProxyImpDelegate; | 13 class CFWL_FormProxyImpDelegate; |
14 | 14 |
15 class IFWL_FormProxy : public IFWL_Form { | 15 class IFWL_FormProxy : public IFWL_Form { |
16 public: | 16 public: |
17 IFWL_FormProxy(const IFWL_App* app, | 17 IFWL_FormProxy(const IFWL_App* app, |
18 const CFWL_WidgetImpProperties& properties, | 18 const CFWL_WidgetImpProperties& properties, |
19 IFWL_Widget* pOuter); | 19 IFWL_Widget* pOuter); |
20 ~IFWL_FormProxy() override; | 20 ~IFWL_FormProxy() override; |
21 | 21 |
22 // IFWL_Widget | 22 // IFWL_Widget |
23 void Initialize() override; | |
24 void Finalize() override; | |
25 FWL_Type GetClassID() const override; | 23 FWL_Type GetClassID() const override; |
26 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; | 24 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; |
27 FWL_Error Update() override; | 25 FWL_Error Update() override; |
28 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 26 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
29 const CFX_Matrix* pMatrix = nullptr) override; | 27 const CFX_Matrix* pMatrix = nullptr) override; |
30 | 28 |
31 protected: | 29 protected: |
32 friend class CFWL_FormProxyImpDelegate; | 30 friend class CFWL_FormProxyImpDelegate; |
33 }; | 31 }; |
34 | 32 |
35 class CFWL_FormProxyImpDelegate : public CFWL_WidgetImpDelegate { | 33 class CFWL_FormProxyImpDelegate : public CFWL_WidgetImpDelegate { |
36 public: | 34 public: |
37 CFWL_FormProxyImpDelegate(IFWL_FormProxy* pOwner); | 35 CFWL_FormProxyImpDelegate(IFWL_FormProxy* pOwner); |
38 void OnProcessMessage(CFWL_Message* pMessage) override; | 36 void OnProcessMessage(CFWL_Message* pMessage) override; |
39 | 37 |
40 protected: | 38 protected: |
41 IFWL_FormProxy* m_pOwner; | 39 IFWL_FormProxy* m_pOwner; |
42 }; | 40 }; |
43 | 41 |
44 #endif // XFA_FWL_CORE_IFWL_FORMPROXY_H_ | 42 #endif // XFA_FWL_CORE_IFWL_FORMPROXY_H_ |
OLD | NEW |