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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceWillBeGarbageCollected.cpp

Issue 1085453003: IDL: Add support for [Unscopeable] on attributes and methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixes Created 5 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 "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceWillBeGarbageCollected.h" 8 #include "V8TestInterfaceWillBeGarbageCollected.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
11 #include "bindings/core/v8/V8DOMConfiguration.h" 11 #include "bindings/core/v8/V8DOMConfiguration.h"
12 #include "bindings/core/v8/V8ObjectConstructor.h" 12 #include "bindings/core/v8/V8ObjectConstructor.h"
13 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" 13 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h"
14 #include "core/dom/ContextFeatures.h" 14 #include "core/dom/ContextFeatures.h"
15 #include "core/dom/Document.h" 15 #include "core/dom/Document.h"
16 #include "core/frame/LocalDOMWindow.h" 16 #include "core/frame/LocalDOMWindow.h"
17 #include "platform/RuntimeEnabledFeatures.h" 17 #include "platform/RuntimeEnabledFeatures.h"
18 #include "platform/TraceEvent.h" 18 #include "platform/TraceEvent.h"
19 #include "wtf/GetPtr.h" 19 #include "wtf/GetPtr.h"
20 #include "wtf/RefPtr.h" 20 #include "wtf/RefPtr.h"
21 21
22 namespace blink { 22 namespace blink {
23 23
24 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte d::derefObject, V8TestInterfaceWillBeGarbageCollected::trace, 0, 0, V8TestInterf aceWillBeGarbageCollected::installConditionallyEnabledMethods, V8TestInterfaceWi llBeGarbageCollected::installConditionallyEnabledProperties, "TestInterfaceWillB eGarbageCollected", &V8EventTarget::wrapperTypeInfo, WrapperTypeInfo::WrapperTyp eObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEv entTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollected Object }; 24 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollected::domTemplate, V8Test InterfaceWillBeGarbageCollected::refObject, V8TestInterfaceWillBeGarbageCollecte d::derefObject, V8TestInterfaceWillBeGarbageCollected::trace, 0, 0, V8TestInterf aceWillBeGarbageCollected::preparePrototypeObject, V8TestInterfaceWillBeGarbageC ollected::installConditionallyEnabledProperties, "TestInterfaceWillBeGarbageColl ected", &V8EventTarget::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectProto type, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarget, W rapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject };
25 25
26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eWillBeGarbageCollected.h. 26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eWillBeGarbageCollected.h.
27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
28 // bindings/core/v8/ScriptWrappable.h. 28 // bindings/core/v8/ScriptWrappable.h.
29 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo = V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo; 29 const WrapperTypeInfo& TestInterfaceWillBeGarbageCollected::s_wrapperTypeInfo = V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo;
30 30
31 namespace TestInterfaceWillBeGarbageCollectedV8Internal { 31 namespace TestInterfaceWillBeGarbageCollectedV8Internal {
32 32
33 static void attr1AttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info ) 33 static void attr1AttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info )
34 { 34 {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC ollected::wrapperTypeInfo, wrapper); 98 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC ollected::wrapperTypeInfo, wrapper);
99 v8SetReturnValue(info, wrapper); 99 v8SetReturnValue(info, wrapper);
100 } 100 }
101 101
102 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal 102 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal
103 103
104 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarb ageCollectedAccessors[] = { 104 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceWillBeGarb ageCollectedAccessors[] = {
105 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING), stat ic_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::ExposedToAll Scripts}, 105 {"attr1", TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeGette rCallback, TestInterfaceWillBeGarbageCollectedV8Internal::attr1AttributeSetterCa llback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING), stat ic_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::ExposedToAll Scripts},
106 }; 106 };
107 107
108 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra ce, 0, 0, V8TestInterfaceWillBeGarbageCollected::installConditionallyEnabledMeth ods, V8TestInterfaceWillBeGarbageCollected::installConditionallyEnabledPropertie s, "TestInterfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectP rototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarge t, WrapperTypeInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject } ; 108 const WrapperTypeInfo V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperT ypeInfo = { gin::kEmbedderBlink, V8TestInterfaceWillBeGarbageCollectedConstructo r::domTemplate, V8TestInterfaceWillBeGarbageCollected::refObject, V8TestInterfac eWillBeGarbageCollected::derefObject, V8TestInterfaceWillBeGarbageCollected::tra ce, 0, 0, V8TestInterfaceWillBeGarbageCollected::preparePrototypeObject, V8TestI nterfaceWillBeGarbageCollected::installConditionallyEnabledProperties, "TestInte rfaceWillBeGarbageCollected", 0, WrapperTypeInfo::WrapperTypeObjectPrototype, Wr apperTypeInfo::ObjectClassId, WrapperTypeInfo::InheritFromEventTarget, WrapperTy peInfo::Independent, WrapperTypeInfo::WillBeGarbageCollectedObject };
109 109
110 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 110 static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
111 { 111 {
112 if (!info.IsConstructCall()) { 112 if (!info.IsConstructCall()) {
113 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterface")); 113 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterface"));
114 return; 114 return;
115 } 115 }
116 116
117 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 117 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
118 v8SetReturnValue(info, info.Holder()); 118 v8SetReturnValue(info, info.Holder());
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 220 }
221 221
222 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable) 222 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable)
223 { 223 {
224 #if !ENABLE(OILPAN) 224 #if !ENABLE(OILPAN)
225 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); 225 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref();
226 #endif 226 #endif
227 } 227 }
228 228
229 } // namespace blink 229 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698