blob: 16a1a1b8e0e77c38128cd82afe8b90f620ffc7eb [file] [log] [blame]
// Copyright 2018 PDFium Authors. All rights reserved.
// 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/xfa/fxjse.h"
#include "fxjs/xfa/cfxjse_context.h"
namespace pdfium {
namespace fxjse {
const char kFuncTag[] = "function descriptor tag";
const char kClassTag[] = "class descriptor tag";
} // namespace fxjse
} // namespace pdfium
// static
CFXJSE_HostObject* CFXJSE_HostObject::FromV8(v8::Local<v8::Value> arg) {
if (arg.IsEmpty() || !arg->IsObject())
return nullptr;
return FXJSE_RetrieveObjectBinding(arg.As<v8::Object>());
}
CFXJSE_HostObject::CFXJSE_HostObject() = default;
CFXJSE_HostObject::~CFXJSE_HostObject() = default;
CFXJSE_FormCalcContext* CFXJSE_HostObject::AsFormCalcContext() {
return nullptr;
}
CJX_Object* CFXJSE_HostObject::AsCJXObject() {
return nullptr;
}