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/fwl_gridimp.h" | 7 #include "xfa/fwl/core/fwl_gridimp.h" |
8 | 8 |
9 #include "xfa/fwl/core/cfwl_message.h" | 9 #include "xfa/fwl/core/cfwl_message.h" |
10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 delete pInfo; | 161 delete pInfo; |
162 } | 162 } |
163 m_mapWidgetInfo.RemoveAll(); | 163 m_mapWidgetInfo.RemoveAll(); |
164 delete m_pDelegate; | 164 delete m_pDelegate; |
165 m_pDelegate = nullptr; | 165 m_pDelegate = nullptr; |
166 } | 166 } |
167 FWL_ERR CFWL_GridImp::GetClassName(CFX_WideString& wsClass) const { | 167 FWL_ERR CFWL_GridImp::GetClassName(CFX_WideString& wsClass) const { |
168 wsClass = FWL_CLASS_Grid; | 168 wsClass = FWL_CLASS_Grid; |
169 return FWL_ERR_Succeeded; | 169 return FWL_ERR_Succeeded; |
170 } | 170 } |
171 FX_DWORD CFWL_GridImp::GetClassID() const { | 171 uint32_t CFWL_GridImp::GetClassID() const { |
172 return FWL_CLASSHASH_Grid; | 172 return FWL_CLASSHASH_Grid; |
173 } | 173 } |
174 FWL_ERR CFWL_GridImp::Initialize() { | 174 FWL_ERR CFWL_GridImp::Initialize() { |
175 if (CFWL_ContentImp::Initialize() != FWL_ERR_Succeeded) | 175 if (CFWL_ContentImp::Initialize() != FWL_ERR_Succeeded) |
176 return FWL_ERR_Indefinite; | 176 return FWL_ERR_Indefinite; |
177 m_pDelegate = new CFWL_GridImpDelegate(this); | 177 m_pDelegate = new CFWL_GridImpDelegate(this); |
178 return FWL_ERR_Succeeded; | 178 return FWL_ERR_Succeeded; |
179 } | 179 } |
180 FWL_ERR CFWL_GridImp::Finalize() { | 180 FWL_ERR CFWL_GridImp::Finalize() { |
181 if (CFWL_ContentImp::Finalize() != FWL_ERR_Succeeded) | 181 if (CFWL_ContentImp::Finalize() != FWL_ERR_Succeeded) |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage); | 1373 CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage); |
1374 if (pMsg->m_dwCmd != FWL_MSGMOUSECMD_LButtonDown) { | 1374 if (pMsg->m_dwCmd != FWL_MSGMOUSECMD_LButtonDown) { |
1375 return 0; | 1375 return 0; |
1376 } | 1376 } |
1377 return 1; | 1377 return 1; |
1378 } | 1378 } |
1379 FWL_ERR CFWL_GridImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 1379 FWL_ERR CFWL_GridImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
1380 const CFX_Matrix* pMatrix) { | 1380 const CFX_Matrix* pMatrix) { |
1381 return m_pOwner->DrawWidget(pGraphics, pMatrix); | 1381 return m_pOwner->DrawWidget(pGraphics, pMatrix); |
1382 } | 1382 } |
OLD | NEW |