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 "config.h" | 7 #include "config.h" |
8 #include "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.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/V8HiddenValue.h" | 12 #include "bindings/core/v8/V8HiddenValue.h" |
13 #include "bindings/core/v8/V8ObjectConstructor.h" | 13 #include "bindings/core/v8/V8ObjectConstructor.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 V8TestInterfaceNamedConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceNamedConstructor::domTemplate, V8TestInterfaceNam
edConstructor::refObject, V8TestInterfaceNamedConstructor::derefObject, V8TestIn
terfaceNamedConstructor::createPersistentHandle, V8TestInterfaceNamedConstructor
::toActiveDOMObject, 0, 0, V8TestInterfaceNamedConstructor::installConditionally
EnabledMethods, V8TestInterfaceNamedConstructor::installConditionallyEnabledProp
erties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectC
lassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; | 24 const WrapperTypeInfo V8TestInterfaceNamedConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceNamedConstructor::domTemplate, V8TestInterfaceNam
edConstructor::refObject, V8TestInterfaceNamedConstructor::derefObject, V8TestIn
terfaceNamedConstructor::trace, V8TestInterfaceNamedConstructor::toActiveDOMObje
ct, 0, 0, V8TestInterfaceNamedConstructor::installConditionallyEnabledMethods, V
8TestInterfaceNamedConstructor::installConditionallyEnabledProperties, 0, Wrappe
rTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTy
peInfo::Dependent, WrapperTypeInfo::RefCountedObject }; |
25 | 25 |
26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eNamedConstructor.h. | 26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eNamedConstructor.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& TestInterfaceNamedConstructor::s_wrapperTypeInfo = V8Test
InterfaceNamedConstructor::wrapperTypeInfo; | 29 const WrapperTypeInfo& TestInterfaceNamedConstructor::s_wrapperTypeInfo = V8Test
InterfaceNamedConstructor::wrapperTypeInfo; |
30 | 30 |
31 namespace TestInterfaceNamedConstructorV8Internal { | 31 namespace TestInterfaceNamedConstructorV8Internal { |
32 | 32 |
33 static void TestInterfaceNamedConstructorConstructorGetter(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 33 static void TestInterfaceNamedConstructorConstructorGetter(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
34 { | 34 { |
(...skipping 15 matching lines...) Expand all Loading... |
50 { | 50 { |
51 TestInterfaceNamedConstructorV8Internal::TestInterfaceNamedConstructorForceS
etAttributeOnThis(name, v8Value, info); | 51 TestInterfaceNamedConstructorV8Internal::TestInterfaceNamedConstructorForceS
etAttributeOnThis(name, v8Value, info); |
52 } | 52 } |
53 | 53 |
54 } // namespace TestInterfaceNamedConstructorV8Internal | 54 } // namespace TestInterfaceNamedConstructorV8Internal |
55 | 55 |
56 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons
tructorAttributes[] = { | 56 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons
tructorAttributes[] = { |
57 {"testNamedConstructorConstructorAttribute", TestInterfaceNamedConstructorV8
Internal::TestInterfaceNamedConstructorConstructorGetter, TestInterfaceNamedCons
tructorV8Internal::TestInterfaceNamedConstructorForceSetAttributeOnThisCallback,
0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstructor::wrapperTypeInfo), s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns
tance}, | 57 {"testNamedConstructorConstructorAttribute", TestInterfaceNamedConstructorV8
Internal::TestInterfaceNamedConstructorConstructorGetter, TestInterfaceNamedCons
tructorV8Internal::TestInterfaceNamedConstructorForceSetAttributeOnThisCallback,
0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstructor::wrapperTypeInfo), s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns
tance}, |
58 }; | 58 }; |
59 | 59 |
60 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf
o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla
te, V8TestInterfaceNamedConstructor::refObject, V8TestInterfaceNamedConstructor:
:derefObject, V8TestInterfaceNamedConstructor::createPersistentHandle, V8TestInt
erfaceNamedConstructor::toActiveDOMObject, 0, 0, V8TestInterfaceNamedConstructor
::installConditionallyEnabledMethods, V8TestInterfaceNamedConstructor::installCo
nditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, Wr
apperTypeInfo::ObjectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCo
untedObject }; | 60 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf
o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla
te, V8TestInterfaceNamedConstructor::refObject, V8TestInterfaceNamedConstructor:
:derefObject, V8TestInterfaceNamedConstructor::trace, V8TestInterfaceNamedConstr
uctor::toActiveDOMObject, 0, 0, V8TestInterfaceNamedConstructor::installConditio
nallyEnabledMethods, V8TestInterfaceNamedConstructor::installConditionallyEnable
dProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Ob
jectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; |
61 | 61 |
62 static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 62 static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
63 { | 63 { |
64 if (!info.IsConstructCall()) { | 64 if (!info.IsConstructCall()) { |
65 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("Audio"), info.GetIsolate()); | 65 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("Audio"), info.GetIsolate()); |
66 return; | 66 return; |
67 } | 67 } |
68 | 68 |
69 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 69 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
70 v8SetReturnValue(info, info.Holder()); | 70 v8SetReturnValue(info, info.Holder()); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 void V8TestInterfaceNamedConstructor::refObject(ScriptWrappableBase* internalPoi
nter) | 183 void V8TestInterfaceNamedConstructor::refObject(ScriptWrappableBase* internalPoi
nter) |
184 { | 184 { |
185 internalPointer->toImpl<TestInterfaceNamedConstructor>()->ref(); | 185 internalPointer->toImpl<TestInterfaceNamedConstructor>()->ref(); |
186 } | 186 } |
187 | 187 |
188 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappableBase* internalP
ointer) | 188 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappableBase* internalP
ointer) |
189 { | 189 { |
190 internalPointer->toImpl<TestInterfaceNamedConstructor>()->deref(); | 190 internalPointer->toImpl<TestInterfaceNamedConstructor>()->deref(); |
191 } | 191 } |
192 | 192 |
193 WrapperPersistentNode* V8TestInterfaceNamedConstructor::createPersistentHandle(S
criptWrappableBase* internalPointer) | |
194 { | |
195 ASSERT_NOT_REACHED(); | |
196 return 0; | |
197 } | |
198 | |
199 template<> | 193 template<> |
200 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 194 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
201 { | 195 { |
202 return toV8(impl, creationContext, isolate); | 196 return toV8(impl, creationContext, isolate); |
203 } | 197 } |
204 | 198 |
205 } // namespace blink | 199 } // namespace blink |
OLD | NEW |