| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #include "xfa/fwl/core/fwl_panelimp.h" | |
| 8 | |
| 9 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | |
| 10 #include "xfa/fwl/core/fwl_noteimp.h" | |
| 11 #include "xfa/fwl/core/fwl_targetimp.h" | |
| 12 #include "xfa/fwl/core/fwl_widgetimp.h" | |
| 13 #include "xfa/fwl/core/fwl_widgetmgrimp.h" | |
| 14 #include "xfa/fwl/core/ifwl_panel.h" | |
| 15 | |
| 16 IFWL_Panel::IFWL_Panel() {} | |
| 17 | |
| 18 CFWL_PanelImp::CFWL_PanelImp(const CFWL_WidgetImpProperties& properties, | |
| 19 IFWL_Widget* pOuter) | |
| 20 : CFWL_WidgetImp(properties, pOuter) {} | |
| 21 CFWL_PanelImp::~CFWL_PanelImp() {} | |
| 22 FWL_ERR CFWL_PanelImp::GetClassName(CFX_WideString& wsClass) const { | |
| 23 wsClass = FWL_CLASS_Panel; | |
| 24 return FWL_ERR_Succeeded; | |
| 25 } | |
| 26 uint32_t CFWL_PanelImp::GetClassID() const { | |
| 27 return FWL_CLASSHASH_Panel; | |
| 28 } | |
| 29 FWL_ERR CFWL_PanelImp::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { | |
| 30 if (!bAutoSize) | |
| 31 rect = m_pProperties->m_rtWidget; | |
| 32 | |
| 33 return FWL_ERR_Succeeded; | |
| 34 } | |
| OLD | NEW |