• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #include "xfa/fwl/cfwl_formproxy.h"
8 
9 #include <memory>
10 #include <utility>
11 
12 #include "third_party/base/ptr_util.h"
13 #include "xfa/fwl/cfwl_notedriver.h"
14 
CFWL_FormProxy(const CFWL_App * app,std::unique_ptr<CFWL_WidgetProperties> properties,CFWL_Widget * pOuter)15 CFWL_FormProxy::CFWL_FormProxy(
16     const CFWL_App* app,
17     std::unique_ptr<CFWL_WidgetProperties> properties,
18     CFWL_Widget* pOuter)
19     : CFWL_Form(app, std::move(properties), pOuter) {}
20 
~CFWL_FormProxy()21 CFWL_FormProxy::~CFWL_FormProxy() {}
22 
GetClassID() const23 FWL_Type CFWL_FormProxy::GetClassID() const {
24   return FWL_Type::FormProxy;
25 }
26 
IsInstance(const WideStringView & wsClass) const27 bool CFWL_FormProxy::IsInstance(const WideStringView& wsClass) const {
28   if (wsClass == WideStringView(FWL_CLASS_FormProxy))
29     return true;
30   return CFWL_Form::IsInstance(wsClass);
31 }
32 
Update()33 void CFWL_FormProxy::Update() {}
34 
DrawWidget(CXFA_Graphics * pGraphics,const CFX_Matrix & matrix)35 void CFWL_FormProxy::DrawWidget(CXFA_Graphics* pGraphics,
36                                 const CFX_Matrix& matrix) {}
37 
OnProcessMessage(CFWL_Message * pMessage)38 void CFWL_FormProxy::OnProcessMessage(CFWL_Message* pMessage) {
39   m_pOuter->GetDelegate()->OnProcessMessage(pMessage);
40 }
41