| 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_formproxy.h" | 7 #include "xfa/fwl/core/ifwl_formproxy.h" |
| 8 | 8 |
| 9 #include "third_party/base/ptr_util.h" | 9 #include "third_party/base/ptr_util.h" |
| 10 #include "xfa/fwl/core/fwl_noteimp.h" | 10 #include "xfa/fwl/core/fwl_noteimp.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 return FWL_Type::FormProxy; | 21 return FWL_Type::FormProxy; |
| 22 } | 22 } |
| 23 | 23 |
| 24 bool IFWL_FormProxy::IsInstance(const CFX_WideStringC& wsClass) const { | 24 bool IFWL_FormProxy::IsInstance(const CFX_WideStringC& wsClass) const { |
| 25 if (wsClass == CFX_WideStringC(FWL_CLASS_FormProxy)) { | 25 if (wsClass == CFX_WideStringC(FWL_CLASS_FormProxy)) { |
| 26 return true; | 26 return true; |
| 27 } | 27 } |
| 28 return IFWL_Form::IsInstance(wsClass); | 28 return IFWL_Form::IsInstance(wsClass); |
| 29 } | 29 } |
| 30 | 30 |
| 31 FWL_Error IFWL_FormProxy::Update() { | 31 void IFWL_FormProxy::Update() {} |
| 32 return FWL_Error::Succeeded; | |
| 33 } | |
| 34 | 32 |
| 35 FWL_Error IFWL_FormProxy::DrawWidget(CFX_Graphics* pGraphics, | 33 void IFWL_FormProxy::DrawWidget(CFX_Graphics* pGraphics, |
| 36 const CFX_Matrix* pMatrix) { | 34 const CFX_Matrix* pMatrix) {} |
| 37 return FWL_Error::Succeeded; | |
| 38 } | |
| 39 | 35 |
| 40 void IFWL_FormProxy::OnProcessMessage(CFWL_Message* pMessage) { | 36 void IFWL_FormProxy::OnProcessMessage(CFWL_Message* pMessage) { |
| 41 m_pOuter->GetDelegate()->OnProcessMessage(pMessage); | 37 m_pOuter->GetDelegate()->OnProcessMessage(pMessage); |
| 42 } | 38 } |
| OLD | NEW |