OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "V8TestInterface.h" | 7 #include "V8TestInterface.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/PrivateScriptRunner.h" | 10 #include "bindings/core/v8/PrivateScriptRunner.h" |
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1971 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 1971 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
1972 { | 1972 { |
1973 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); | 1973 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); |
1974 } | 1974 } |
1975 | 1975 |
1976 } // namespace TestInterfaceImplementationV8Internal | 1976 } // namespace TestInterfaceImplementationV8Internal |
1977 | 1977 |
1978 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr
iptWrappable, const v8::Persistent<v8::Object>& wrapper) | 1978 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr
iptWrappable, const v8::Persistent<v8::Object>& wrapper) |
1979 { | 1979 { |
1980 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp
lementation>(); | 1980 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp
lementation>(); |
1981 v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper)
; | |
1982 v8::Context::Scope scope(context->CreationContext()); | |
1983 TestInterfaceImplementation* referencedName = impl->referencedName(); | 1981 TestInterfaceImplementation* referencedName = impl->referencedName(); |
1984 if (referencedName) { | 1982 if (referencedName) { |
1985 if (DOMDataStore::containsWrapper(referencedName, isolate)) | 1983 DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, referencedName
, isolate); |
1986 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); | |
1987 } | 1984 } |
1988 } | 1985 } |
1989 | 1986 |
1990 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial | 1987 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
1991 // and does not depend on another global objects. | 1988 // and does not depend on another global objects. |
1992 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 1989 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
1993 #pragma clang diagnostic push | 1990 #pragma clang diagnostic push |
1994 #pragma clang diagnostic ignored "-Wglobal-constructors" | 1991 #pragma clang diagnostic ignored "-Wglobal-constructors" |
1995 #endif | 1992 #endif |
1996 const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttributes[] = { | 1993 const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttributes[] = { |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2369 { | 2366 { |
2370 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2367 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2371 } | 2368 } |
2372 | 2369 |
2373 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2370 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2374 { | 2371 { |
2375 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2372 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2376 } | 2373 } |
2377 | 2374 |
2378 } // namespace blink | 2375 } // namespace blink |
OLD | NEW |