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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
11 #include "bindings/core/v8/V8AbstractEventListener.h" | 11 #include "bindings/core/v8/V8AbstractEventListener.h" |
12 #include "bindings/core/v8/V8DOMConfiguration.h" | 12 #include "bindings/core/v8/V8DOMConfiguration.h" |
13 #include "bindings/core/v8/V8EventListenerList.h" | 13 #include "bindings/core/v8/V8EventListenerList.h" |
14 #include "bindings/core/v8/V8HiddenValue.h" | 14 #include "bindings/core/v8/V8HiddenValue.h" |
15 #include "bindings/core/v8/V8ObjectConstructor.h" | 15 #include "bindings/core/v8/V8ObjectConstructor.h" |
16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
17 #include "core/HTMLNames.h" | 17 #include "core/HTMLNames.h" |
18 #include "core/dom/ContextFeatures.h" | 18 #include "core/dom/ContextFeatures.h" |
19 #include "core/dom/Document.h" | 19 #include "core/dom/Document.h" |
20 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 20 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
21 #include "platform/RuntimeEnabledFeatures.h" | 21 #include "platform/RuntimeEnabledFeatures.h" |
22 #include "platform/TraceEvent.h" | 22 #include "platform/TraceEvent.h" |
23 #include "wtf/GetPtr.h" | 23 #include "wtf/GetPtr.h" |
24 #include "wtf/RefPtr.h" | 24 #include "wtf/RefPtr.h" |
25 | 25 |
26 namespace WebCore { | 26 namespace blink { |
27 | 27 |
28 static void initializeScriptWrappableForInterface(TestInterfaceNode* object) | 28 static void initializeScriptWrappableForInterface(TestInterfaceNode* object) |
29 { | 29 { |
30 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 30 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
31 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterfaceNode::w
rapperTypeInfo); | 31 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterfaceNode::w
rapperTypeInfo); |
32 else | 32 else |
33 ASSERT_NOT_REACHED(); | 33 ASSERT_NOT_REACHED(); |
34 } | 34 } |
35 | 35 |
36 } // namespace WebCore | 36 } // namespace blink |
37 | 37 |
38 void webCoreInitializeScriptWrappableForInterface(WebCore::TestInterfaceNode* ob
ject) | 38 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceNode* obje
ct) |
39 { | 39 { |
40 WebCore::initializeScriptWrappableForInterface(object); | 40 blink::initializeScriptWrappableForInterface(object); |
41 } | 41 } |
42 | 42 |
43 namespace WebCore { | 43 namespace blink { |
44 const WrapperTypeInfo V8TestInterfaceNode::wrapperTypeInfo = { gin::kEmbedderBli
nk, V8TestInterfaceNode::domTemplate, V8TestInterfaceNode::derefObject, 0, V8Tes
tInterfaceNode::toEventTarget, 0, V8TestInterfaceNode::installPerContextEnabledM
ethods, &V8Node::wrapperTypeInfo, WrapperTypeObjectPrototype, WillBeGarbageColle
ctedObject }; | 44 const WrapperTypeInfo V8TestInterfaceNode::wrapperTypeInfo = { gin::kEmbedderBli
nk, V8TestInterfaceNode::domTemplate, V8TestInterfaceNode::derefObject, 0, V8Tes
tInterfaceNode::toEventTarget, 0, V8TestInterfaceNode::installPerContextEnabledM
ethods, &V8Node::wrapperTypeInfo, WrapperTypeObjectPrototype, WillBeGarbageColle
ctedObject }; |
45 | 45 |
46 namespace TestInterfaceNodeV8Internal { | 46 namespace TestInterfaceNodeV8Internal { |
47 | 47 |
48 template <typename T> void V8_USE(T) { } | 48 template <typename T> void V8_USE(T) { } |
49 | 49 |
50 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 50 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
51 { | 51 { |
52 v8::Handle<v8::Object> holder = info.Holder(); | 52 v8::Handle<v8::Object> holder = info.Holder(); |
53 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); | 53 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 fromInternalPointer(object)->deref(); | 384 fromInternalPointer(object)->deref(); |
385 #endif // !ENABLE(OILPAN) | 385 #endif // !ENABLE(OILPAN) |
386 } | 386 } |
387 | 387 |
388 template<> | 388 template<> |
389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
390 { | 390 { |
391 return toV8(impl, creationContext, isolate); | 391 return toV8(impl, creationContext, isolate); |
392 } | 392 } |
393 | 393 |
394 } // namespace WebCore | 394 } // namespace blink |
OLD | NEW |