| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..358381f2ccb1a992d395c9a972ab479b7e88cfc8
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp
|
| @@ -0,0 +1,417 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
|
| +
|
| +#include "V8TestInterfaceSecureContext.h"
|
| +
|
| +#include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/V8DOMConfiguration.h"
|
| +#include "bindings/core/v8/V8ObjectConstructor.h"
|
| +#include "core/dom/Document.h"
|
| +#include "platform/RuntimeEnabledFeatures.h"
|
| +#include "wtf/GetPtr.h"
|
| +#include "wtf/RefPtr.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// Suppress warning: global constructors, because struct WrapperTypeInfo is trivial
|
| +// and does not depend on another global objects.
|
| +#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wglobal-constructors"
|
| +#endif
|
| +const WrapperTypeInfo V8TestInterfaceSecureContext::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceSecureContext::domTemplate, V8TestInterfaceSecureContext::trace, V8TestInterfaceSecureContext::traceWrappers, 0, 0, V8TestInterfaceSecureContext::preparePrototypeAndInterfaceObject, nullptr, "TestInterfaceSecureContext", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independent };
|
| +#if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
|
| +#pragma clang diagnostic pop
|
| +#endif
|
| +
|
| +// This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfaceSecureContext.h.
|
| +// For details, see the comment of DEFINE_WRAPPERTYPEINFO in
|
| +// bindings/core/v8/ScriptWrappable.h.
|
| +const WrapperTypeInfo& TestInterfaceSecureContext::s_wrapperTypeInfo = V8TestInterfaceSecureContext::wrapperTypeInfo;
|
| +
|
| +namespace TestInterfaceSecureContextV8Internal {
|
| +
|
| +static void secureContextAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + v8SetReturnValueFast(info, WTF::getPtr(impl->secureContextAttribute()), impl);
|
| +}
|
| +
|
| +static void secureContextAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextAttributeAttributeGetter(info);
|
| +}
|
| +
|
| +static void secureContextAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "secureContextAttribute", "TestInterfaceSecureContext", holder, info.GetIsolate());
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + bool* cppValue = V8bool::toImplWithTypeCheck(info.GetIsolate(), v8Value);
|
| + if (!cppValue) {
|
| + exceptionState.throwTypeError("The provided value is not of type 'bool'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| + impl->setSecureContextAttribute(cppValue);
|
| +}
|
| +
|
| +static void secureContextAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| + TestInterfaceSecureContextV8Internal::secureContextAttributeAttributeSetter(v8Value, info);
|
| +}
|
| +
|
| +static void secureContextRuntimeEnabledAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + v8SetReturnValueFast(info, WTF::getPtr(impl->secureContextRuntimeEnabledAttribute()), impl);
|
| +}
|
| +
|
| +static void secureContextRuntimeEnabledAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledAttributeAttributeGetter(info);
|
| +}
|
| +
|
| +static void secureContextRuntimeEnabledAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "secureContextRuntimeEnabledAttribute", "TestInterfaceSecureContext", holder, info.GetIsolate());
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + bool* cppValue = V8bool::toImplWithTypeCheck(info.GetIsolate(), v8Value);
|
| + if (!cppValue) {
|
| + exceptionState.throwTypeError("The provided value is not of type 'bool'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| + impl->setSecureContextRuntimeEnabledAttribute(cppValue);
|
| +}
|
| +
|
| +static void secureContextRuntimeEnabledAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| + TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledAttributeAttributeSetter(v8Value, info);
|
| +}
|
| +
|
| +static void secureContextWindowExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + v8SetReturnValueFast(info, WTF::getPtr(impl->secureContextWindowExposedAttribute()), impl);
|
| +}
|
| +
|
| +static void secureContextWindowExposedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWindowExposedAttributeAttributeGetter(info);
|
| +}
|
| +
|
| +static void secureContextWindowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "secureContextWindowExposedAttribute", "TestInterfaceSecureContext", holder, info.GetIsolate());
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + bool* cppValue = V8bool::toImplWithTypeCheck(info.GetIsolate(), v8Value);
|
| + if (!cppValue) {
|
| + exceptionState.throwTypeError("The provided value is not of type 'bool'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| + impl->setSecureContextWindowExposedAttribute(cppValue);
|
| +}
|
| +
|
| +static void secureContextWindowExposedAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| + TestInterfaceSecureContextV8Internal::secureContextWindowExposedAttributeAttributeSetter(v8Value, info);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + v8SetReturnValueFast(info, WTF::getPtr(impl->secureContextWorkerExposedAttribute()), impl);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWorkerExposedAttributeAttributeGetter(info);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "secureContextWorkerExposedAttribute", "TestInterfaceSecureContext", holder, info.GetIsolate());
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + bool* cppValue = V8bool::toImplWithTypeCheck(info.GetIsolate(), v8Value);
|
| + if (!cppValue) {
|
| + exceptionState.throwTypeError("The provided value is not of type 'bool'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| + impl->setSecureContextWorkerExposedAttribute(cppValue);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| + TestInterfaceSecureContextV8Internal::secureContextWorkerExposedAttributeAttributeSetter(v8Value, info);
|
| +}
|
| +
|
| +static void secureContextWindowExposedRuntimeEnabledAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + v8SetReturnValueFast(info, WTF::getPtr(impl->secureContextWindowExposedRuntimeEnabledAttribute()), impl);
|
| +}
|
| +
|
| +static void secureContextWindowExposedRuntimeEnabledAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledAttributeAttributeGetter(info);
|
| +}
|
| +
|
| +static void secureContextWindowExposedRuntimeEnabledAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "secureContextWindowExposedRuntimeEnabledAttribute", "TestInterfaceSecureContext", holder, info.GetIsolate());
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + bool* cppValue = V8bool::toImplWithTypeCheck(info.GetIsolate(), v8Value);
|
| + if (!cppValue) {
|
| + exceptionState.throwTypeError("The provided value is not of type 'bool'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| + impl->setSecureContextWindowExposedRuntimeEnabledAttribute(cppValue);
|
| +}
|
| +
|
| +static void secureContextWindowExposedRuntimeEnabledAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| + TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledAttributeAttributeSetter(v8Value, info);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedRuntimeEnabledAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + v8SetReturnValueFast(info, WTF::getPtr(impl->secureContextWorkerExposedRuntimeEnabledAttribute()), impl);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGetter(info);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + ExceptionState exceptionState(ExceptionState::SetterContext, "secureContextWorkerExposedRuntimeEnabledAttribute", "TestInterfaceSecureContext", holder, info.GetIsolate());
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(holder);
|
| + bool* cppValue = V8bool::toImplWithTypeCheck(info.GetIsolate(), v8Value);
|
| + if (!cppValue) {
|
| + exceptionState.throwTypeError("The provided value is not of type 'bool'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| + impl->setSecureContextWorkerExposedRuntimeEnabledAttribute(cppValue);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Value> v8Value = info[0];
|
| + TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetter(v8Value, info);
|
| +}
|
| +
|
| +static void secureContextMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
|
| + impl->secureContextMethod();
|
| +}
|
| +
|
| +static void secureContextMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextMethodMethod(info);
|
| +}
|
| +
|
| +static void secureContextRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
|
| + impl->secureContextRuntimeEnabledMethod();
|
| +}
|
| +
|
| +static void secureContextRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledMethodMethod(info);
|
| +}
|
| +
|
| +static void secureContextWindowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
|
| + impl->secureContextWindowExposedMethod();
|
| +}
|
| +
|
| +static void secureContextWindowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWindowExposedMethodMethod(info);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
|
| + impl->secureContextWorkerExposedMethod();
|
| +}
|
| +
|
| +static void secureContextWorkerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWorkerExposedMethodMethod(info);
|
| +}
|
| +
|
| +static void secureContextWindowExposedRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
|
| + impl->secureContextWindowExposedRuntimeEnabledMethod();
|
| +}
|
| +
|
| +static void secureContextWindowExposedRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledMethodMethod(info);
|
| +}
|
| +
|
| +static void secureContextWorkerExposedRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
|
| + impl->secureContextWorkerExposedRuntimeEnabledMethod();
|
| +}
|
| +
|
| +static void secureContextWorkerExposedRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledMethodMethod(info);
|
| +}
|
| +
|
| +} // namespace TestInterfaceSecureContextV8Internal
|
| +
|
| +static void installV8TestInterfaceSecureContextTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate)
|
| +{
|
| + // Initialize the interface object's template.
|
| + V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterfaceSecureContext::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate>(), V8TestInterfaceSecureContext::internalFieldCount);
|
| + v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate);
|
| + ALLOW_UNUSED_LOCAL(signature);
|
| + v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTemplate();
|
| + ALLOW_UNUSED_LOCAL(instanceTemplate);
|
| + v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->PrototypeTemplate();
|
| + ALLOW_UNUSED_LOCAL(prototypeTemplate);
|
| + // Register DOM constants, attributes and operations.
|
| +}
|
| +
|
| +v8::Local<v8::FunctionTemplate> V8TestInterfaceSecureContext::domTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world)
|
| +{
|
| + return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceSecureContextTemplate);
|
| +}
|
| +
|
| +
|
| +bool V8TestInterfaceSecureContext::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
|
| +{
|
| + return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value);
|
| +}
|
| +
|
| +v8::Local<v8::Object> V8TestInterfaceSecureContext::findInstanceInPrototypeChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
|
| +{
|
| + return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperTypeInfo, v8Value);
|
| +}
|
| +
|
| +TestInterfaceSecureContext* V8TestInterfaceSecureContext::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
|
| +{
|
| + return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)) : nullptr;
|
| +}
|
| +
|
| +void V8TestInterfaceSecureContext::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate)
|
| +{
|
| + v8::Isolate* isolate = context->GetIsolate();
|
| + ExecutionContext* executionContext = toExecutionContext(context);
|
| + v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate);
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextAttribute", TestInterfaceSecureContextV8Internal::secureContextAttributeAttributeGetterCallback, TestInterfaceSecureContextV8Internal::secureContextAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
|
| + V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
|
| + }
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
|
| + const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextRuntimeEnabledAttribute", TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledAttributeAttributeGetterCallback, TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
|
| + V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isDocument())) {
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWindowExposedAttribute", TestInterfaceSecureContextV8Internal::secureContextWindowExposedAttributeAttributeGetterCallback, TestInterfaceSecureContextV8Internal::secureContextWindowExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
|
| + V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isWorkerGlobalScope())) {
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWorkerExposedAttribute", TestInterfaceSecureContextV8Internal::secureContextWorkerExposedAttributeAttributeGetterCallback, TestInterfaceSecureContextV8Internal::secureContextWorkerExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
|
| + V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isDocument())) {
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
|
| + const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWindowExposedRuntimeEnabledAttribute", TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledAttributeAttributeGetterCallback, TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
|
| + V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
|
| + }
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isWorkerGlobalScope())) {
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
|
| + const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWorkerExposedRuntimeEnabledAttribute", TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
|
| + V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration);
|
| + }
|
| + }
|
| + }
|
| + v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate);
|
| + ExecutionContext* executionContext = toExecutionContext(prototypeObject->CreationContext());
|
| + ASSERT(executionContext);
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodConfiguration = {"secureContextMethod", TestInterfaceSecureContextV8Internal::secureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
|
| + V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextMethodMethodConfiguration);
|
| + }
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
|
| + const V8DOMConfiguration::MethodConfiguration secureContextRuntimeEnabledMethodMethodConfiguration = {"secureContextRuntimeEnabledMethod", TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
|
| + V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextRuntimeEnabledMethodMethodConfiguration);
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (executionContext && (executionContext->isDocument())) {
|
| + const V8DOMConfiguration::MethodConfiguration secureContextWindowExposedMethodMethodConfiguration = {"secureContextWindowExposedMethod", TestInterfaceSecureContextV8Internal::secureContextWindowExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
|
| + V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextWindowExposedMethodMethodConfiguration);
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (executionContext && (executionContext->isWorkerGlobalScope())) {
|
| + const V8DOMConfiguration::MethodConfiguration secureContextWorkerExposedMethodMethodConfiguration = {"secureContextWorkerExposedMethod", TestInterfaceSecureContextV8Internal::secureContextWorkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
|
| + V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedMethodMethodConfiguration);
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (executionContext && (executionContext->isDocument())) {
|
| + if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
|
| + const V8DOMConfiguration::MethodConfiguration secureContextWindowExposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWindowExposedRuntimeEnabledMethod", TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
|
| + V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextWindowExposedRuntimeEnabledMethodMethodConfiguration);
|
| + }
|
| + }
|
| + }
|
| + if (executionContext && (executionContext->isSecureContext())) {
|
| + if (executionContext && (executionContext->isWorkerGlobalScope())) {
|
| + if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
|
| + const V8DOMConfiguration::MethodConfiguration secureContextWorkerExposedRuntimeEnabledMethodMethodConfiguration = {"secureContextWorkerExposedRuntimeEnabledMethod", TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
|
| + V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextWorkerExposedRuntimeEnabledMethodMethodConfiguration);
|
| + }
|
| + }
|
| + }
|
| +}
|
| +
|
| +} // namespace blink
|
|
|