OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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/lightwidget/cfwl_widgetproperties.h" |
| 8 |
| 9 #include "xfa/fwl/lightwidget/cfwl_widget.h" |
| 10 |
| 11 CFWL_WidgetImpProperties CFWL_WidgetProperties::MakeWidgetImpProperties( |
| 12 IFWL_DataProvider* pDataProvider) const { |
| 13 CFWL_WidgetImpProperties result; |
| 14 result.m_ctmOnParent = m_ctmOnParent; |
| 15 result.m_rtWidget = m_rtWidget; |
| 16 result.m_dwStyles = m_dwStyles; |
| 17 result.m_dwStyleExes = m_dwStyleExes; |
| 18 result.m_dwStates = m_dwStates; |
| 19 if (m_pParent) |
| 20 result.m_pParent = m_pParent->GetWidget(); |
| 21 if (m_pOwner) |
| 22 result.m_pOwner = m_pOwner->GetWidget(); |
| 23 result.m_pDataProvider = pDataProvider; |
| 24 return result; |
| 25 } |
OLD | NEW |