chromium/third_party/pdfium/fxjs/cjs_event_context.cpp

// Copyright 2017 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 "fxjs/cjs_event_context.h"

#include "core/fpdfdoc/cpdf_formfield.h"
#include "core/fxcrt/autorestorer.h"
#include "core/fxcrt/check.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fxjs/cjs_field.h"
#include "fxjs/cjs_runtime.h"
#include "fxjs/js_define.h"
#include "fxjs/js_resources.h"
#include "v8/include/v8-context.h"
#include "v8/include/v8-isolate.h"

CJS_EventContext::CJS_EventContext(CJS_Runtime* pRuntime)
    :{}

CJS_EventContext::~CJS_EventContext() = default;

std::optional<IJS_Runtime::JS_Error> CJS_EventContext::RunScript(
    const WideString& script) {}

CJS_Field* CJS_EventContext::SourceField() {}

CJS_Field* CJS_EventContext::TargetField() {}

void CJS_EventContext::OnDoc_Open(const WideString& strTargetName) {}

void CJS_EventContext::OnDoc_WillPrint() {}

void CJS_EventContext::OnDoc_DidPrint() {}

void CJS_EventContext::OnDoc_WillSave() {}

void CJS_EventContext::OnDoc_DidSave() {}

void CJS_EventContext::OnDoc_WillClose() {}

void CJS_EventContext::OnPage_Open() {}

void CJS_EventContext::OnPage_Close() {}

void CJS_EventContext::OnPage_InView() {}

void CJS_EventContext::OnPage_OutView() {}

void CJS_EventContext::OnField_MouseEnter(bool bModifier,
                                          bool bShift,
                                          CPDF_FormField* pTarget) {}

void CJS_EventContext::OnField_MouseExit(bool bModifier,
                                         bool bShift,
                                         CPDF_FormField* pTarget) {}

void CJS_EventContext::OnField_MouseDown(bool bModifier,
                                         bool bShift,
                                         CPDF_FormField* pTarget) {}

void CJS_EventContext::OnField_MouseUp(bool bModifier,
                                       bool bShift,
                                       CPDF_FormField* pTarget) {}

void CJS_EventContext::OnField_Focus(bool bModifier,
                                     bool bShift,
                                     CPDF_FormField* pTarget,
                                     WideString* pValue) {}

void CJS_EventContext::OnField_Blur(bool bModifier,
                                    bool bShift,
                                    CPDF_FormField* pTarget,
                                    WideString* pValue) {}

void CJS_EventContext::OnField_Keystroke(WideString* strChange,
                                         const WideString& strChangeEx,
                                         bool KeyDown,
                                         bool bModifier,
                                         int* pSelEnd,
                                         int* pSelStart,
                                         bool bShift,
                                         CPDF_FormField* pTarget,
                                         WideString* pValue,
                                         bool bWillCommit,
                                         bool bFieldFull,
                                         bool* pbRc) {}

void CJS_EventContext::OnField_Validate(WideString* strChange,
                                        const WideString& strChangeEx,
                                        bool bKeyDown,
                                        bool bModifier,
                                        bool bShift,
                                        CPDF_FormField* pTarget,
                                        WideString* pValue,
                                        bool* pbRc) {}

void CJS_EventContext::OnField_Calculate(CPDF_FormField* pSource,
                                         CPDF_FormField* pTarget,
                                         WideString* pValue,
                                         bool* pRc) {}

void CJS_EventContext::OnField_Format(CPDF_FormField* pTarget,
                                      WideString* pValue) {}

void CJS_EventContext::OnExternal_Exec() {}

void CJS_EventContext::Initialize(Kind kind) {}

void CJS_EventContext::Destroy() {}

bool CJS_EventContext::IsUserGesture() const {}

WideString& CJS_EventContext::Change() {}

ByteStringView CJS_EventContext::Name() const {}

ByteStringView CJS_EventContext::Type() const {}

bool& CJS_EventContext::Rc() {}

int CJS_EventContext::SelEnd() const {}

int CJS_EventContext::SelStart() const {}

void CJS_EventContext::SetSelEnd(int value) {}

void CJS_EventContext::SetSelStart(int value) {}