| 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_WidgetProperties; | 12 class CFWL_WidgetProperties; |
| 13 | 13 |
| 14 class IFWL_FormProxy : public IFWL_Form { | 14 class IFWL_FormProxy : public IFWL_Form { |
| 15 public: | 15 public: |
| 16 IFWL_FormProxy(const IFWL_App* app, | 16 IFWL_FormProxy(const IFWL_App* app, |
| 17 std::unique_ptr<CFWL_WidgetProperties> properties, | 17 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 18 IFWL_Widget* pOuter); | 18 IFWL_Widget* pOuter); |
| 19 ~IFWL_FormProxy() override; | 19 ~IFWL_FormProxy() override; |
| 20 | 20 |
| 21 // IFWL_Widget | 21 // IFWL_Widget |
| 22 FWL_Type GetClassID() const override; | 22 FWL_Type GetClassID() const override; |
| 23 bool IsInstance(const CFX_WideStringC& wsClass) const override; | 23 bool IsInstance(const CFX_WideStringC& wsClass) const override; |
| 24 void Update() override; | 24 void Update() override; |
| 25 void DrawWidget(CFX_Graphics* pGraphics, | 25 void DrawWidget(CFX_Graphics* pGraphics, |
| 26 const CFX_Matrix* pMatrix = nullptr) override; | 26 const CFX_Matrix* pMatrix = nullptr) override; |
| 27 void OnProcessMessage(CFWL_Message* pMessage) override; | 27 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 28 | |
| 29 protected: | |
| 30 friend class CFWL_FormProxyImpDelegate; | |
| 31 }; | 28 }; |
| 32 | 29 |
| 33 #endif // XFA_FWL_CORE_IFWL_FORMPROXY_H_ | 30 #endif // XFA_FWL_CORE_IFWL_FORMPROXY_H_ |
| OLD | NEW |