Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cjs_runtimestub.cpp
Go to the documentation of this file.
1// Copyright 2015 The PDFium Authors
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 "fxjs/cjs_runtimestub.h"
8
9#include "fxjs/cjs_event_context_stub.h"
10
11CJS_RuntimeStub::CJS_RuntimeStub(CPDFSDK_FormFillEnvironment* pFormFillEnv)
13
14CJS_RuntimeStub::~CJS_RuntimeStub() = default;
15
16IJS_EventContext* CJS_RuntimeStub::NewEventContext() {
17 if (!m_pContext)
18 m_pContext = std::make_unique<CJS_EventContextStub>();
19 return m_pContext.get();
20}
21
22void CJS_RuntimeStub::ReleaseEventContext(IJS_EventContext* pContext) {}
23
24CPDFSDK_FormFillEnvironment* CJS_RuntimeStub::GetFormFillEnv() const {
25 return m_pFormFillEnv;
26}
27
28CJS_Runtime* CJS_RuntimeStub::AsCJSRuntime() {
29 return nullptr;
30}
31
33 const WideString& script) {
34 return absl::nullopt;
35}
void ReleaseEventContext(IJS_EventContext *pContext) override
IJS_EventContext * NewEventContext() override
absl::optional< IJS_Runtime::JS_Error > ExecuteScript(const WideString &script) override
CPDFSDK_FormFillEnvironment * GetFormFillEnv() const override
CJS_RuntimeStub(CPDFSDK_FormFillEnvironment *pFormFillEnv)
CJS_Runtime * AsCJSRuntime() override
~CJS_RuntimeStub() override