OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |