Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp

Issue 1873323002: Have bindings layer assume and insist that all interface types are GCed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "V8TestInterfaceEventInitConstructor.h" 7 #include "V8TestInterfaceEventInitConstructor.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/V8DOMConfiguration.h" 10 #include "bindings/core/v8/V8DOMConfiguration.h"
11 #include "bindings/core/v8/V8ObjectConstructor.h" 11 #include "bindings/core/v8/V8ObjectConstructor.h"
12 #include "bindings/core/v8/V8TestInterfaceEventInit.h" 12 #include "bindings/core/v8/V8TestInterfaceEventInit.h"
13 #include "core/dom/Document.h" 13 #include "core/dom/Document.h"
14 #include "core/frame/LocalDOMWindow.h" 14 #include "core/frame/LocalDOMWindow.h"
15 #include "platform/RuntimeEnabledFeatures.h" 15 #include "platform/RuntimeEnabledFeatures.h"
16 #include "wtf/GetPtr.h" 16 #include "wtf/GetPtr.h"
17 #include "wtf/RefPtr.h" 17 #include "wtf/RefPtr.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial 21 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
22 // and does not depend on another global objects. 22 // and does not depend on another global objects.
23 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 23 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
24 #pragma clang diagnostic push 24 #pragma clang diagnostic push
25 #pragma clang diagnostic ignored "-Wglobal-constructors" 25 #pragma clang diagnostic ignored "-Wglobal-constructors"
26 #endif 26 #endif
27 const WrapperTypeInfo V8TestInterfaceEventInitConstructor::wrapperTypeInfo = { g in::kEmbedderBlink, V8TestInterfaceEventInitConstructor::domTemplate, V8TestInte rfaceEventInitConstructor::refObject, V8TestInterfaceEventInitConstructor::deref Object, V8TestInterfaceEventInitConstructor::trace, 0, 0, V8TestInterfaceEventIn itConstructor::preparePrototypeAndInterfaceObject, V8TestInterfaceEventInitConst ructor::installConditionallyEnabledProperties, "TestInterfaceEventInitConstructo r", &V8Event::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrap perTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperT ypeInfo::Independent, WrapperTypeInfo::GarbageCollectedObject }; 27 const WrapperTypeInfo V8TestInterfaceEventInitConstructor::wrapperTypeInfo = { g in::kEmbedderBlink, V8TestInterfaceEventInitConstructor::domTemplate, V8TestInte rfaceEventInitConstructor::trace, 0, 0, V8TestInterfaceEventInitConstructor::pre parePrototypeAndInterfaceObject, V8TestInterfaceEventInitConstructor::installCon ditionallyEnabledProperties, "TestInterfaceEventInitConstructor", &V8Event::wrap perTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Objec tClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Independe nt };
28 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 28 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
29 #pragma clang diagnostic pop 29 #pragma clang diagnostic pop
30 #endif 30 #endif
31 31
32 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eEventInitConstructor.h. 32 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eEventInitConstructor.h.
33 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 33 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
34 // bindings/core/v8/ScriptWrappable.h. 34 // bindings/core/v8/ScriptWrappable.h.
35 const WrapperTypeInfo& TestInterfaceEventInitConstructor::s_wrapperTypeInfo = V8 TestInterfaceEventInitConstructor::wrapperTypeInfo; 35 const WrapperTypeInfo& TestInterfaceEventInitConstructor::s_wrapperTypeInfo = V8 TestInterfaceEventInitConstructor::wrapperTypeInfo;
36 36
37 namespace TestInterfaceEventInitConstructorV8Internal { 37 namespace TestInterfaceEventInitConstructorV8Internal {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return; 76 return;
77 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { 77 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) {
78 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit' ) is not an object."); 78 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit' ) is not an object.");
79 exceptionState.throwIfNeeded(); 79 exceptionState.throwIfNeeded();
80 return; 80 return;
81 } 81 }
82 V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testInterfa ceEventInit, exceptionState); 82 V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testInterfa ceEventInit, exceptionState);
83 if (exceptionState.throwIfNeeded()) 83 if (exceptionState.throwIfNeeded())
84 return; 84 return;
85 } 85 }
86 RawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEventInitConst ructor::create(type, testInterfaceEventInit); 86 TestInterfaceEventInitConstructor* impl = TestInterfaceEventInitConstructor: :create(type, testInterfaceEventInit);
87 v8::Local<v8::Object> wrapper = info.Holder(); 87 v8::Local<v8::Object> wrapper = info.Holder();
88 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEven tInitConstructor::wrapperTypeInfo, wrapper); 88 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEven tInitConstructor::wrapperTypeInfo, wrapper);
89 v8SetReturnValue(info, wrapper); 89 v8SetReturnValue(info, wrapper);
90 } 90 }
91 91
92 } // namespace TestInterfaceEventInitConstructorV8Internal 92 } // namespace TestInterfaceEventInitConstructorV8Internal
93 93
94 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitConstruc torAccessors[] = { 94 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitConstruc torAccessors[] = {
95 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cas t<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 95 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cas t<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
96 }; 96 };
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 v8::Local<v8::Object> V8TestInterfaceEventInitConstructor::findInstanceInPrototy peChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) 145 v8::Local<v8::Object> V8TestInterfaceEventInitConstructor::findInstanceInPrototy peChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate)
146 { 146 {
147 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 147 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
148 } 148 }
149 149
150 TestInterfaceEventInitConstructor* V8TestInterfaceEventInitConstructor::toImplWi thTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) 150 TestInterfaceEventInitConstructor* V8TestInterfaceEventInitConstructor::toImplWi thTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value)
151 { 151 {
152 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0; 152 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
153 } 153 }
154 154
155 void V8TestInterfaceEventInitConstructor::refObject(ScriptWrappable* scriptWrapp able)
156 {
157 }
158
159 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra ppable)
160 {
161 }
162
163 } // namespace blink 155 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698