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" |
11 | 11 |
12 IFWL_FormProxy::IFWL_FormProxy( | 12 IFWL_FormProxy::IFWL_FormProxy( |
13 const IFWL_App* app, | 13 const IFWL_App* app, |
14 std::unique_ptr<CFWL_WidgetProperties> properties, | 14 std::unique_ptr<CFWL_WidgetProperties> properties, |
15 IFWL_Widget* pOuter) | 15 IFWL_Widget* pOuter) |
16 : IFWL_Form(app, std::move(properties), pOuter) {} | 16 : IFWL_Form(app, std::move(properties), pOuter) {} |
17 | 17 |
18 IFWL_FormProxy::~IFWL_FormProxy() {} | 18 IFWL_FormProxy::~IFWL_FormProxy() {} |
19 | 19 |
20 FWL_Type IFWL_FormProxy::GetClassID() const { | 20 FWL_Type IFWL_FormProxy::GetClassID() const { |
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 } | |
28 return IFWL_Form::IsInstance(wsClass); | 27 return IFWL_Form::IsInstance(wsClass); |
29 } | 28 } |
30 | 29 |
31 void IFWL_FormProxy::Update() {} | 30 void IFWL_FormProxy::Update() {} |
32 | 31 |
33 void IFWL_FormProxy::DrawWidget(CFX_Graphics* pGraphics, | 32 void IFWL_FormProxy::DrawWidget(CFX_Graphics* pGraphics, |
34 const CFX_Matrix* pMatrix) {} | 33 const CFX_Matrix* pMatrix) {} |
35 | 34 |
36 void IFWL_FormProxy::OnProcessMessage(CFWL_Message* pMessage) { | 35 void IFWL_FormProxy::OnProcessMessage(CFWL_Message* pMessage) { |
37 m_pOuter->GetDelegate()->OnProcessMessage(pMessage); | 36 m_pOuter->GetDelegate()->OnProcessMessage(pMessage); |
38 } | 37 } |
OLD | NEW |