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

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

Issue 2488953003: Cleanup IFWL_Widget visibility and virtual parameters (Closed)
Patch Set: fixes 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_widget.cpp ('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
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 #ifndef XFA_FWL_CORE_CFWL_WIDGETPROPERTIES_H_ 7 #ifndef XFA_FWL_CORE_CFWL_WIDGETPROPERTIES_H_
8 #define XFA_FWL_CORE_CFWL_WIDGETPROPERTIES_H_ 8 #define XFA_FWL_CORE_CFWL_WIDGETPROPERTIES_H_
9 9
10 #include "core/fxcrt/fx_coordinates.h" 10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/fx_system.h" 11 #include "core/fxcrt/fx_system.h"
12 #include "xfa/fwl/core/fwl_widgetdef.h" 12 #include "xfa/fwl/core/fwl_widgetdef.h"
13 13
14 class IFWL_DataProvider; 14 class IFWL_DataProvider;
15 class IFWL_ThemeProvider; 15 class IFWL_ThemeProvider;
16 class IFWL_Widget; 16 class IFWL_Widget;
17 17
18 class CFWL_WidgetProperties { 18 class CFWL_WidgetProperties {
19 public: 19 public:
20 CFWL_WidgetProperties(); 20 CFWL_WidgetProperties();
21 CFWL_WidgetProperties(IFWL_DataProvider* dataProvider); 21 CFWL_WidgetProperties(IFWL_DataProvider* dataProvider);
22 ~CFWL_WidgetProperties(); 22 ~CFWL_WidgetProperties();
23 23
24 CFX_Matrix m_ctmOnParent;
25 CFX_RectF m_rtWidget; 24 CFX_RectF m_rtWidget;
26 uint32_t m_dwStyles; 25 uint32_t m_dwStyles;
27 uint32_t m_dwStyleExes; 26 uint32_t m_dwStyleExes;
28 uint32_t m_dwStates; 27 uint32_t m_dwStates;
29 IFWL_ThemeProvider* m_pThemeProvider; 28 IFWL_ThemeProvider* m_pThemeProvider;
30 IFWL_DataProvider* m_pDataProvider; 29 IFWL_DataProvider* m_pDataProvider;
31 IFWL_Widget* m_pParent; 30 IFWL_Widget* m_pParent;
32 IFWL_Widget* m_pOwner; 31 IFWL_Widget* m_pOwner;
33 }; 32 };
34 33
35 inline CFWL_WidgetProperties::CFWL_WidgetProperties() 34 inline CFWL_WidgetProperties::CFWL_WidgetProperties()
36 : CFWL_WidgetProperties(nullptr) {} 35 : CFWL_WidgetProperties(nullptr) {}
37 36
38 inline CFWL_WidgetProperties::CFWL_WidgetProperties( 37 inline CFWL_WidgetProperties::CFWL_WidgetProperties(
39 IFWL_DataProvider* dataProvider) 38 IFWL_DataProvider* dataProvider)
40 : m_dwStyles(FWL_WGTSTYLE_Child), 39 : m_dwStyles(FWL_WGTSTYLE_Child),
41 m_dwStyleExes(0), 40 m_dwStyleExes(0),
42 m_dwStates(0), 41 m_dwStates(0),
43 m_pThemeProvider(nullptr), 42 m_pThemeProvider(nullptr),
44 m_pDataProvider(dataProvider), 43 m_pDataProvider(dataProvider),
45 m_pParent(nullptr), 44 m_pParent(nullptr),
46 m_pOwner(nullptr) { 45 m_pOwner(nullptr) {
47 m_ctmOnParent.SetIdentity();
48 m_rtWidget.Set(0, 0, 0, 0); 46 m_rtWidget.Set(0, 0, 0, 0);
49 } 47 }
50 48
51 inline CFWL_WidgetProperties::~CFWL_WidgetProperties() {} 49 inline CFWL_WidgetProperties::~CFWL_WidgetProperties() {}
52 50
53 #endif // XFA_FWL_CORE_CFWL_WIDGETPROPERTIES_H_ 51 #endif // XFA_FWL_CORE_CFWL_WIDGETPROPERTIES_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_widget.cpp ('k') | xfa/fwl/core/ifwl_barcode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698