Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: xfa/src/fwl/core/fwl_contentimp.cpp

Issue 1770953004: Remove xfa/src/fwl/src and move code up a level. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/fwl/src/core/fwl_contentimp.h" 7 #include "xfa/src/fwl/core/fwl_contentimp.h"
8 8
9 #include "xfa/include/fwl/core/fwl_content.h" 9 #include "xfa/include/fwl/core/fwl_content.h"
10 #include "xfa/src/fwl/src/core/fwl_noteimp.h" 10 #include "xfa/src/fwl/core/fwl_noteimp.h"
11 #include "xfa/src/fwl/src/core/fwl_targetimp.h" 11 #include "xfa/src/fwl/core/fwl_targetimp.h"
12 #include "xfa/src/fwl/src/core/fwl_threadimp.h" 12 #include "xfa/src/fwl/core/fwl_threadimp.h"
13 #include "xfa/src/fwl/src/core/fwl_widgetimp.h" 13 #include "xfa/src/fwl/core/fwl_widgetimp.h"
14 #include "xfa/src/fwl/src/core/fwl_widgetmgrimp.h" 14 #include "xfa/src/fwl/core/fwl_widgetmgrimp.h"
15 15
16 FWL_ERR IFWL_Content::InsertWidget(IFWL_Widget* pChild, int32_t nIndex) { 16 FWL_ERR IFWL_Content::InsertWidget(IFWL_Widget* pChild, int32_t nIndex) {
17 return static_cast<CFWL_ContentImp*>(GetImpl())->InsertWidget(pChild, nIndex); 17 return static_cast<CFWL_ContentImp*>(GetImpl())->InsertWidget(pChild, nIndex);
18 } 18 }
19 FWL_ERR IFWL_Content::RemoveWidget(IFWL_Widget* pWidget) { 19 FWL_ERR IFWL_Content::RemoveWidget(IFWL_Widget* pWidget) {
20 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveWidget(pWidget); 20 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveWidget(pWidget);
21 } 21 }
22 FWL_ERR IFWL_Content::RemoveAllWidgets() { 22 FWL_ERR IFWL_Content::RemoveAllWidgets() {
23 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveAllWidgets(); 23 return static_cast<CFWL_ContentImp*>(GetImpl())->RemoveAllWidgets();
24 } 24 }
25 FWL_ERR IFWL_Content::GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) { 25 FWL_ERR IFWL_Content::GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) {
26 return static_cast<CFWL_ContentImp*>(GetImpl())->GetMinSize(fWidth, fHeight); 26 return static_cast<CFWL_ContentImp*>(GetImpl())->GetMinSize(fWidth, fHeight);
27 } 27 }
28 FWL_ERR IFWL_Content::SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight) { 28 FWL_ERR IFWL_Content::SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight) {
29 return static_cast<CFWL_ContentImp*>(GetImpl())->SetMinSize(fWidth, fHeight); 29 return static_cast<CFWL_ContentImp*>(GetImpl())->SetMinSize(fWidth, fHeight);
30 } 30 }
31 FWL_ERR IFWL_Content::GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) { 31 FWL_ERR IFWL_Content::GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) {
32 return static_cast<CFWL_ContentImp*>(GetImpl())->GetMaxSize(fWidth, fHeight); 32 return static_cast<CFWL_ContentImp*>(GetImpl())->GetMaxSize(fWidth, fHeight);
33 } 33 }
34 FWL_ERR IFWL_Content::SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight) { 34 FWL_ERR IFWL_Content::SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight) {
35 return static_cast<CFWL_ContentImp*>(GetImpl())->SetMaxSize(fWidth, fHeight); 35 return static_cast<CFWL_ContentImp*>(GetImpl())->SetMaxSize(fWidth, fHeight);
36 } 36 }
37 IFWL_Content::IFWL_Content() { 37 IFWL_Content::IFWL_Content() {}
38 }
39 CFWL_ContentImp::CFWL_ContentImp(const CFWL_WidgetImpProperties& properties, 38 CFWL_ContentImp::CFWL_ContentImp(const CFWL_WidgetImpProperties& properties,
40 IFWL_Widget* pOuter) 39 IFWL_Widget* pOuter)
41 : CFWL_WidgetImp(properties, pOuter), 40 : CFWL_WidgetImp(properties, pOuter),
42 m_fWidthMin(0), 41 m_fWidthMin(0),
43 m_fWidthMax(10000), 42 m_fWidthMax(10000),
44 m_fHeightMin(0), 43 m_fHeightMin(0),
45 m_fHeightMax(10000) {} 44 m_fHeightMax(10000) {}
46 CFWL_ContentImp::~CFWL_ContentImp() {} 45 CFWL_ContentImp::~CFWL_ContentImp() {}
47 FWL_ERR CFWL_ContentImp::InsertWidget(IFWL_Widget* pChild, int32_t nIndex) { 46 FWL_ERR CFWL_ContentImp::InsertWidget(IFWL_Widget* pChild, int32_t nIndex) {
48 if (!pChild) 47 if (!pChild)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 FWL_ERR CFWL_ContentImp::GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) { 85 FWL_ERR CFWL_ContentImp::GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight) {
87 fWidth = m_fWidthMax; 86 fWidth = m_fWidthMax;
88 fHeight = m_fHeightMax; 87 fHeight = m_fHeightMax;
89 return FWL_ERR_Succeeded; 88 return FWL_ERR_Succeeded;
90 } 89 }
91 FWL_ERR CFWL_ContentImp::SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight) { 90 FWL_ERR CFWL_ContentImp::SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight) {
92 m_fWidthMax = fWidth; 91 m_fWidthMax = fWidth;
93 m_fHeightMax = fHeight; 92 m_fHeightMax = fHeight;
94 return FWL_ERR_Succeeded; 93 return FWL_ERR_Succeeded;
95 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698