| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_INCLUDE_FWL_CORE_FWL_PANEL_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_CUSTOMPANEL_H_ |
| 8 #define XFA_INCLUDE_FWL_CORE_FWL_PANEL_H_ | 8 #define XFA_FWL_CORE_IFWL_CUSTOMPANEL_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/fwl_widgetimp.h" | 10 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 11 #include "xfa/fwl/core/ifwl_widget.h" |
| 11 | 12 |
| 12 class IFWL_Content; | 13 class IFWL_Proxy; |
| 13 | |
| 14 #define FWL_CLASS_Panel L"FWL_Panel" | |
| 15 #define FWL_CLASSHASH_Panel 881567292 | |
| 16 | |
| 17 class IFWL_Panel : public IFWL_Widget { | |
| 18 public: | |
| 19 static IFWL_Panel* Create(CFWL_WidgetImpProperties& properties, | |
| 20 IFWL_Widget* pOuter); | |
| 21 | |
| 22 IFWL_Content* GetContent(); | |
| 23 FWL_ERR SetContent(IFWL_Content* pContent); | |
| 24 | |
| 25 protected: | |
| 26 IFWL_Panel(); | |
| 27 }; | |
| 28 | 14 |
| 29 class IFWL_CustomPanel : public IFWL_Widget { | 15 class IFWL_CustomPanel : public IFWL_Widget { |
| 30 public: | 16 public: |
| 31 static IFWL_CustomPanel* Create(CFWL_WidgetImpProperties& properties, | 17 static IFWL_CustomPanel* Create(CFWL_WidgetImpProperties& properties, |
| 32 IFWL_Widget* pOuter); | 18 IFWL_Widget* pOuter); |
| 33 | 19 |
| 34 IFWL_Content* GetContent(); | 20 IFWL_Content* GetContent(); |
| 35 FWL_ERR SetContent(IFWL_Content* pContent); | 21 FWL_ERR SetContent(IFWL_Content* pContent); |
| 36 FWL_ERR SetProxy(IFWL_Proxy* pProxy); | 22 FWL_ERR SetProxy(IFWL_Proxy* pProxy); |
| 37 | 23 |
| 38 protected: | 24 protected: |
| 39 IFWL_CustomPanel(); | 25 IFWL_CustomPanel(); |
| 40 }; | 26 }; |
| 41 | 27 |
| 42 #endif // XFA_INCLUDE_FWL_CORE_FWL_PANEL_H_ | 28 #endif // XFA_FWL_CORE_IFWL_CUSTOMPANEL_H_ |
| OLD | NEW |