chromium/third_party/pdfium/fpdfsdk/fpdfxfa/cpdfxfa_widget.cpp

// Copyright 2016 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "fpdfsdk/fpdfxfa/cpdfxfa_widget.h"

#include "core/fxcrt/check.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_pageview.h"
#include "xfa/fgas/graphics/cfgas_gegraphics.h"
#include "xfa/fxfa/cxfa_ffdocview.h"
#include "xfa/fxfa/cxfa_ffpageview.h"
#include "xfa/fxfa/cxfa_ffwidget.h"
#include "xfa/fxfa/cxfa_ffwidgethandler.h"
#include "xfa/fxfa/parser/cxfa_node.h"

#define CHECK_FWL_VKEY_ENUM____

CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;
CHECK_FWL_VKEY_ENUM____;

#undef CHECK_FWL_VKEY_ENUM____

namespace {

Mask<XFA_FWL_KeyFlag> GetKeyFlags(Mask<FWL_EVENTFLAG> input) {}

}  // namespace

CPDFXFA_Widget::CPDFXFA_Widget(CXFA_FFWidget* pXFAFFWidget,
                               CPDFSDK_PageView* pPageView)
    :{}

CPDFXFA_Widget::~CPDFXFA_Widget() = default;

CPDFXFA_Widget* CPDFXFA_Widget::AsXFAWidget() {}

CPDFSDK_Annot::UnsafeInputHandlers* CPDFXFA_Widget::GetUnsafeInputHandlers() {}

CPDF_Annot::Subtype CPDFXFA_Widget::GetAnnotSubtype() const {}

CFX_FloatRect CPDFXFA_Widget::GetRect() const {}

void CPDFXFA_Widget::OnDraw(CFX_RenderDevice* pDevice,
                            const CFX_Matrix& mtUser2Device,
                            bool bDrawAnnots) {}

bool CPDFXFA_Widget::DoHitTest(const CFX_PointF& point) {}

bool CPDFXFA_Widget::OnChangedFocus() {}

CFX_FloatRect CPDFXFA_Widget::GetViewBBox() {}

void CPDFXFA_Widget::OnMouseEnter(Mask<FWL_EVENTFLAG> nFlags) {}

void CPDFXFA_Widget::OnMouseExit(Mask<FWL_EVENTFLAG> nFlags) {}

bool CPDFXFA_Widget::OnLButtonDown(Mask<FWL_EVENTFLAG> nFlags,
                                   const CFX_PointF& point) {}

bool CPDFXFA_Widget::OnLButtonUp(Mask<FWL_EVENTFLAG> nFlags,
                                 const CFX_PointF& point) {}

bool CPDFXFA_Widget::OnLButtonDblClk(Mask<FWL_EVENTFLAG> nFlags,
                                     const CFX_PointF& point) {}

bool CPDFXFA_Widget::OnMouseMove(Mask<FWL_EVENTFLAG> nFlags,
                                 const CFX_PointF& point) {}

bool CPDFXFA_Widget::OnMouseWheel(Mask<FWL_EVENTFLAG> nFlags,
                                  const CFX_PointF& point,
                                  const CFX_Vector& delta) {}

bool CPDFXFA_Widget::OnRButtonDown(Mask<FWL_EVENTFLAG> nFlags,
                                   const CFX_PointF& point) {}

bool CPDFXFA_Widget::OnRButtonUp(Mask<FWL_EVENTFLAG> nFlags,
                                 const CFX_PointF& point) {}

bool CPDFXFA_Widget::OnChar(uint32_t nChar, Mask<FWL_EVENTFLAG> nFlags) {}

bool CPDFXFA_Widget::OnKeyDown(FWL_VKEYCODE nKeyCode,
                               Mask<FWL_EVENTFLAG> nFlags) {}

bool CPDFXFA_Widget::OnSetFocus(Mask<FWL_EVENTFLAG> nFlags) {}

bool CPDFXFA_Widget::OnKillFocus(Mask<FWL_EVENTFLAG> nFlags) {}

bool CPDFXFA_Widget::CanUndo() {}

bool CPDFXFA_Widget::CanRedo() {}

bool CPDFXFA_Widget::Undo() {}

bool CPDFXFA_Widget::Redo() {}

WideString CPDFXFA_Widget::GetText() {}

WideString CPDFXFA_Widget::GetSelectedText() {}

void CPDFXFA_Widget::ReplaceAndKeepSelection(const WideString& text) {}

void CPDFXFA_Widget::ReplaceSelection(const WideString& text) {}

bool CPDFXFA_Widget::SelectAllText() {}

bool CPDFXFA_Widget::SetIndexSelected(int index, bool selected) {}

bool CPDFXFA_Widget::IsIndexSelected(int index) {}

CXFA_FFDocView* CPDFXFA_Widget::GetDocView() {}

CXFA_FFWidgetHandler* CPDFXFA_Widget::GetWidgetHandler() {}