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 "V8TestInterfaceNotScriptWrappable.h" | 8 #include "V8TestInterfaceNotScriptWrappable.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 "bindings/core/v8/V8TestInterfaceNotScriptWrappable.h" | 14 #include "bindings/core/v8/V8TestInterfaceNotScriptWrappable.h" |
15 #include "core/dom/ContextFeatures.h" | 15 #include "core/dom/ContextFeatures.h" |
16 #include "core/dom/Document.h" | 16 #include "core/dom/Document.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 V8TestInterfaceNotScriptWrappable::wrapperTypeInfo = { gin
::kEmbedderBlink, V8TestInterfaceNotScriptWrappable::domTemplate, V8TestInterfac
eNotScriptWrappable::refObject, V8TestInterfaceNotScriptWrappable::derefObject,
V8TestInterfaceNotScriptWrappable::createPersistentHandle, 0, 0, 0, V8TestInterf
aceNotScriptWrappable::installConditionallyEnabledMethods, V8TestInterfaceNotScr
iptWrappable::installConditionallyEnabledProperties, 0, WrapperTypeInfo::Wrapper
TypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Independen
t, WrapperTypeInfo::RefCountedObject }; | 24 const WrapperTypeInfo V8TestInterfaceNotScriptWrappable::wrapperTypeInfo = { gin
::kEmbedderBlink, V8TestInterfaceNotScriptWrappable::domTemplate, V8TestInterfac
eNotScriptWrappable::refObject, V8TestInterfaceNotScriptWrappable::derefObject,
V8TestInterfaceNotScriptWrappable::trace, 0, 0, 0, V8TestInterfaceNotScriptWrapp
able::installConditionallyEnabledMethods, V8TestInterfaceNotScriptWrappable::ins
tallConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperTypeObjectPrototy
pe, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Independent, WrapperTypeInf
o::RefCountedObject }; |
25 | 25 |
26 namespace TestInterfaceNotScriptWrappableV8Internal { | 26 namespace TestInterfaceNotScriptWrappableV8Internal { |
27 | 27 |
28 static void attr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) | 28 static void attr1AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) |
29 { | 29 { |
30 v8::Handle<v8::Object> holder = info.Holder(); | 30 v8::Handle<v8::Object> holder = info.Holder(); |
31 TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::t
oImpl(holder); | 31 TestInterfaceNotScriptWrappable* impl = V8TestInterfaceNotScriptWrappable::t
oImpl(holder); |
32 v8SetReturnValueFast(info, WTF::getPtr(impl->attr1()), impl); | 32 v8SetReturnValueFast(info, WTF::getPtr(impl->attr1()), impl); |
33 } | 33 } |
34 | 34 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 void V8TestInterfaceNotScriptWrappable::refObject(ScriptWrappableBase* internalP
ointer) | 149 void V8TestInterfaceNotScriptWrappable::refObject(ScriptWrappableBase* internalP
ointer) |
150 { | 150 { |
151 internalPointer->toImpl<TestInterfaceNotScriptWrappable>()->ref(); | 151 internalPointer->toImpl<TestInterfaceNotScriptWrappable>()->ref(); |
152 } | 152 } |
153 | 153 |
154 void V8TestInterfaceNotScriptWrappable::derefObject(ScriptWrappableBase* interna
lPointer) | 154 void V8TestInterfaceNotScriptWrappable::derefObject(ScriptWrappableBase* interna
lPointer) |
155 { | 155 { |
156 internalPointer->toImpl<TestInterfaceNotScriptWrappable>()->deref(); | 156 internalPointer->toImpl<TestInterfaceNotScriptWrappable>()->deref(); |
157 } | 157 } |
158 | 158 |
159 WrapperPersistentNode* V8TestInterfaceNotScriptWrappable::createPersistentHandle
(ScriptWrappableBase* internalPointer) | |
160 { | |
161 ASSERT_NOT_REACHED(); | |
162 return 0; | |
163 } | |
164 | |
165 template<> | 159 template<> |
166 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNotScriptWrappable* impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) | 160 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNotScriptWrappable* impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) |
167 { | 161 { |
168 return toV8(impl, creationContext, isolate); | 162 return toV8(impl, creationContext, isolate); |
169 } | 163 } |
170 | 164 |
171 } // namespace blink | 165 } // namespace blink |
OLD | NEW |