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

Side by Side Diff: xfa/fwl/core/cfwl_widgetproperties.cpp

Issue 2469893004: Unify CFWL_WidgetProperties and CFWL_WidgetImpProperties. (Closed)
Patch Set: review cleanup Created 4 years, 1 month 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
« no previous file with comments | « xfa/fwl/core/cfwl_widgetproperties.h ('k') | xfa/fwl/core/ifwl_barcode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/core/cfwl_widgetproperties.h"
8
9 #include "xfa/fwl/core/cfwl_widget.h"
10
11 CFWL_WidgetProperties::CFWL_WidgetProperties()
12 : m_dwStyles(FWL_WGTSTYLE_Child),
13 m_dwStyleExes(0),
14 m_dwStates(0),
15 m_pParent(nullptr),
16 m_pOwner(nullptr) {
17 m_rtWidget.Set(0, 0, 0, 0);
18 }
19
20 CFWL_WidgetProperties::~CFWL_WidgetProperties() {}
21
22 CFWL_WidgetProperties::CFWL_WidgetProperties(
23 const CFWL_WidgetProperties& other) = default;
24
25 CFWL_WidgetImpProperties CFWL_WidgetProperties::MakeWidgetImpProperties(
26 IFWL_DataProvider* pDataProvider) const {
27 CFWL_WidgetImpProperties result;
28 result.m_ctmOnParent = m_ctmOnParent;
29 result.m_rtWidget = m_rtWidget;
30 result.m_dwStyles = m_dwStyles;
31 result.m_dwStyleExes = m_dwStyleExes;
32 result.m_dwStates = m_dwStates;
33 if (m_pParent)
34 result.m_pParent = m_pParent->GetWidget();
35 if (m_pOwner)
36 result.m_pOwner = m_pOwner->GetWidget();
37 result.m_pDataProvider = pDataProvider;
38 return result;
39 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_widgetproperties.h ('k') | xfa/fwl/core/ifwl_barcode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698