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

Side by Side Diff: xfa/fwl/core/ifwl_form.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/ifwl_form.h ('k') | xfa/fwl/core/ifwl_formproxy.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 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/fwl/core/ifwl_form.h" 7 #include "xfa/fwl/core/ifwl_form.h"
8 8
9 #include "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fde/tto/fde_textout.h" 10 #include "xfa/fde/tto/fde_textout.h"
(...skipping 20 matching lines...) Expand all
31 31
32 const uint8_t kCornerEnlarge = 10; 32 const uint8_t kCornerEnlarge = 10;
33 33
34 } // namespace 34 } // namespace
35 35
36 RestoreInfo::RestoreInfo() {} 36 RestoreInfo::RestoreInfo() {}
37 37
38 RestoreInfo::~RestoreInfo() {} 38 RestoreInfo::~RestoreInfo() {}
39 39
40 IFWL_Form::IFWL_Form(const IFWL_App* app, 40 IFWL_Form::IFWL_Form(const IFWL_App* app,
41 const CFWL_WidgetImpProperties& properties, 41 std::unique_ptr<CFWL_WidgetProperties> properties,
42 IFWL_Widget* pOuter) 42 IFWL_Widget* pOuter)
43 : IFWL_Widget(app, properties, pOuter), 43 : IFWL_Widget(app, std::move(properties), pOuter),
44 m_pCloseBox(nullptr), 44 m_pCloseBox(nullptr),
45 m_pMinBox(nullptr), 45 m_pMinBox(nullptr),
46 m_pMaxBox(nullptr), 46 m_pMaxBox(nullptr),
47 m_pCaptionBox(nullptr), 47 m_pCaptionBox(nullptr),
48 m_pSubFocus(nullptr), 48 m_pSubFocus(nullptr),
49 m_fCXBorder(0), 49 m_fCXBorder(0),
50 m_fCYBorder(0), 50 m_fCYBorder(0),
51 m_iCaptureBtn(-1), 51 m_iCaptureBtn(-1),
52 m_iSysBox(0), 52 m_iSysBox(0),
53 m_eResizeType(FORM_RESIZETYPE_None), 53 m_eResizeType(FORM_RESIZETYPE_None),
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 1064
1065 uint32_t CFWL_SysBtn::GetPartState() const { 1065 uint32_t CFWL_SysBtn::GetPartState() const {
1066 if (IsDisabled()) 1066 if (IsDisabled())
1067 return CFWL_PartState_Disabled; 1067 return CFWL_PartState_Disabled;
1068 if (m_dwState & FWL_SYSBUTTONSTATE_Pressed) 1068 if (m_dwState & FWL_SYSBUTTONSTATE_Pressed)
1069 return CFWL_PartState_Pressed; 1069 return CFWL_PartState_Pressed;
1070 if (m_dwState & FWL_SYSBUTTONSTATE_Hover) 1070 if (m_dwState & FWL_SYSBUTTONSTATE_Hover)
1071 return CFWL_PartState_Hovered; 1071 return CFWL_PartState_Hovered;
1072 return CFWL_PartState_Normal; 1072 return CFWL_PartState_Normal;
1073 } 1073 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_form.h ('k') | xfa/fwl/core/ifwl_formproxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698