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

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

Issue 2070583003: Make code compile with clang_use_chrome_plugin (part VI) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: better macros Created 4 years, 6 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
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_widgetproperties.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/fwl/lightwidget/cfwl_widgetproperties.h" 7 #include "xfa/fwl/lightwidget/cfwl_widgetproperties.h"
8 8
9 #include "xfa/fwl/lightwidget/cfwl_widget.h" 9 #include "xfa/fwl/lightwidget/cfwl_widget.h"
10 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
11 CFWL_WidgetImpProperties CFWL_WidgetProperties::MakeWidgetImpProperties( 25 CFWL_WidgetImpProperties CFWL_WidgetProperties::MakeWidgetImpProperties(
12 IFWL_DataProvider* pDataProvider) const { 26 IFWL_DataProvider* pDataProvider) const {
13 CFWL_WidgetImpProperties result; 27 CFWL_WidgetImpProperties result;
14 result.m_ctmOnParent = m_ctmOnParent; 28 result.m_ctmOnParent = m_ctmOnParent;
15 result.m_rtWidget = m_rtWidget; 29 result.m_rtWidget = m_rtWidget;
16 result.m_dwStyles = m_dwStyles; 30 result.m_dwStyles = m_dwStyles;
17 result.m_dwStyleExes = m_dwStyleExes; 31 result.m_dwStyleExes = m_dwStyleExes;
18 result.m_dwStates = m_dwStates; 32 result.m_dwStates = m_dwStates;
19 if (m_pParent) 33 if (m_pParent)
20 result.m_pParent = m_pParent->GetWidget(); 34 result.m_pParent = m_pParent->GetWidget();
21 if (m_pOwner) 35 if (m_pOwner)
22 result.m_pOwner = m_pOwner->GetWidget(); 36 result.m_pOwner = m_pOwner->GetWidget();
23 result.m_pDataProvider = pDataProvider; 37 result.m_pDataProvider = pDataProvider;
24 return result; 38 return result;
25 } 39 }
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_widgetproperties.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698