#include "fxjs/cjs_runtime.h"
#include <math.h>
#include <algorithm>
#include "core/fxcrt/check_op.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fxjs/cfx_globaldata.h"
#include "fxjs/cjs_annot.h"
#include "fxjs/cjs_app.h"
#include "fxjs/cjs_border.h"
#include "fxjs/cjs_color.h"
#include "fxjs/cjs_console.h"
#include "fxjs/cjs_display.h"
#include "fxjs/cjs_document.h"
#include "fxjs/cjs_event.h"
#include "fxjs/cjs_event_context.h"
#include "fxjs/cjs_field.h"
#include "fxjs/cjs_font.h"
#include "fxjs/cjs_global.h"
#include "fxjs/cjs_globalarrays.h"
#include "fxjs/cjs_globalconsts.h"
#include "fxjs/cjs_highlight.h"
#include "fxjs/cjs_icon.h"
#include "fxjs/cjs_object.h"
#include "fxjs/cjs_position.h"
#include "fxjs/cjs_publicmethods.h"
#include "fxjs/cjs_scalehow.h"
#include "fxjs/cjs_scalewhen.h"
#include "fxjs/cjs_style.h"
#include "fxjs/cjs_timerobj.h"
#include "fxjs/cjs_util.h"
#include "fxjs/cjs_zoomtype.h"
#include "fxjs/fxv8.h"
#include "fxjs/js_define.h"
#include "v8/include/v8-context.h"
#include "v8/include/v8-exception.h"
#include "v8/include/v8-isolate.h"
CJS_Runtime::CJS_Runtime(CPDFSDK_FormFillEnvironment* pFormFillEnv)
: … { … }
CJS_Runtime::~CJS_Runtime() { … }
void CJS_Runtime::DefineJSObjects() { … }
IJS_EventContext* CJS_Runtime::NewEventContext() { … }
void CJS_Runtime::ReleaseEventContext(IJS_EventContext* pContext) { … }
CJS_EventContext* CJS_Runtime::GetCurrentEventContext() const { … }
CFX_Timer::HandlerIface* CJS_Runtime::GetTimerHandler() const { … }
void CJS_Runtime::SetFormFillEnvToDocument() { … }
CPDFSDK_FormFillEnvironment* CJS_Runtime::GetFormFillEnv() const { … }
std::optional<IJS_Runtime::JS_Error> CJS_Runtime::ExecuteScript(
const WideString& script) { … }
bool CJS_Runtime::AddEventToSet(const FieldEvent& event) { … }
void CJS_Runtime::RemoveEventFromSet(const FieldEvent& event) { … }
CJS_Runtime* CJS_Runtime::AsCJSRuntime() { … }
v8::Local<v8::Value> CJS_Runtime::GetValueByNameFromGlobalObject(
ByteStringView utf8Name) { … }
bool CJS_Runtime::SetValueByNameInGlobalObject(ByteStringView utf8Name,
v8::Local<v8::Value> pValue) { … }
v8::Local<v8::Value> CJS_Runtime::MaybeCoerceToNumber(
v8::Local<v8::Value> value) { … }