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 #include "xfa/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
| 8 #include "xfa/src/fwl/src/core/include/fwl_contentimp.h" |
| 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |
8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 10 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
9 #include "xfa/src/fwl/src/core/include/fwl_threadimp.h" | 11 #include "xfa/src/fwl/src/core/include/fwl_threadimp.h" |
10 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | |
11 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" | 12 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" |
12 #include "xfa/src/fwl/src/core/include/fwl_contentimp.h" | |
13 #include "xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h" | 13 #include "xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h" |
14 FWL_ERR IFWL_Content::InsertWidget(IFWL_Widget* pChild, int32_t nIndex) { | 14 FWL_ERR IFWL_Content::InsertWidget(IFWL_Widget* pChild, int32_t nIndex) { |
15 return static_cast<CFWL_ContentImp*>(GetImpl())->InsertWidget(pChild, nIndex); | 15 return static_cast<CFWL_ContentImp*>(GetImpl())->InsertWidget(pChild, nIndex); |
16 } | 16 } |
17 FWL_ERR IFWL_Content::RemoveWidget(IFWL_Widget* pWidget) { | 17 FWL_ERR IFWL_Content::RemoveWidget(IFWL_Widget* pWidget) { |
18 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveWidget(pWidget); | 18 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveWidget(pWidget); |
19 } | 19 } |
20 FWL_ERR IFWL_Content::RemoveAllWidgets() { | 20 FWL_ERR IFWL_Content::RemoveAllWidgets() { |
21 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveAllWidgets(); | 21 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveAllWidgets(); |
22 } | 22 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 FWL_ERR CFWL_ContentImp::GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) { | 84 FWL_ERR CFWL_ContentImp::GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) { |
85 fWidth = m_fWidthMax; | 85 fWidth = m_fWidthMax; |
86 fHeight = m_fHeightMax; | 86 fHeight = m_fHeightMax; |
87 return FWL_ERR_Succeeded; | 87 return FWL_ERR_Succeeded; |
88 } | 88 } |
89 FWL_ERR CFWL_ContentImp::SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight) { | 89 FWL_ERR CFWL_ContentImp::SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight) { |
90 m_fWidthMax = fWidth; | 90 m_fWidthMax = fWidth; |
91 m_fHeightMax = fHeight; | 91 m_fHeightMax = fHeight; |
92 return FWL_ERR_Succeeded; | 92 return FWL_ERR_Succeeded; |
93 } | 93 } |
OLD | NEW |