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 "V8TestInterfaceEventConstructor.h" | 8 #include "V8TestInterfaceEventConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
11 #include "bindings/core/v8/ExceptionState.h" | 11 #include "bindings/core/v8/ExceptionState.h" |
12 #include "bindings/core/v8/ScriptValue.h" | 12 #include "bindings/core/v8/ScriptValue.h" |
13 #include "bindings/core/v8/SerializedScriptValue.h" | 13 #include "bindings/core/v8/SerializedScriptValue.h" |
14 #include "bindings/core/v8/V8DOMConfiguration.h" | 14 #include "bindings/core/v8/V8DOMConfiguration.h" |
15 #include "bindings/core/v8/V8HiddenValue.h" | 15 #include "bindings/core/v8/V8HiddenValue.h" |
16 #include "bindings/core/v8/V8ObjectConstructor.h" | 16 #include "bindings/core/v8/V8ObjectConstructor.h" |
17 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" | 17 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" |
18 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 18 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
19 #include "core/dom/ContextFeatures.h" | 19 #include "core/dom/ContextFeatures.h" |
20 #include "core/dom/Document.h" | 20 #include "core/dom/Document.h" |
21 #include "core/frame/LocalDOMWindow.h" | 21 #include "core/frame/LocalDOMWindow.h" |
22 #include "core/frame/UseCounter.h" | 22 #include "core/frame/UseCounter.h" |
23 #include "platform/RuntimeEnabledFeatures.h" | 23 #include "platform/RuntimeEnabledFeatures.h" |
24 #include "platform/TraceEvent.h" | 24 #include "platform/TraceEvent.h" |
25 #include "wtf/GetPtr.h" | 25 #include "wtf/GetPtr.h" |
26 #include "wtf/RefPtr.h" | 26 #include "wtf/RefPtr.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace blink { |
29 | 29 |
30 static void initializeScriptWrappableForInterface(TestInterfaceEventConstructor*
object) | 30 static void initializeScriptWrappableForInterface(TestInterfaceEventConstructor*
object) |
31 { | 31 { |
32 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 32 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
33 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterfaceEventCo
nstructor::wrapperTypeInfo); | 33 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterfaceEventCo
nstructor::wrapperTypeInfo); |
34 else | 34 else |
35 ASSERT_NOT_REACHED(); | 35 ASSERT_NOT_REACHED(); |
36 } | 36 } |
37 | 37 |
38 } // namespace WebCore | 38 } // namespace blink |
39 | 39 |
40 void webCoreInitializeScriptWrappableForInterface(WebCore::TestInterfaceEventCon
structor* object) | 40 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceEventConst
ructor* object) |
41 { | 41 { |
42 WebCore::initializeScriptWrappableForInterface(object); | 42 blink::initializeScriptWrappableForInterface(object); |
43 } | 43 } |
44 | 44 |
45 namespace WebCore { | 45 namespace blink { |
46 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installPer
ContextEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype, Wi
llBeGarbageCollectedObject }; | 46 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installPer
ContextEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype, Wi
llBeGarbageCollectedObject }; |
47 | 47 |
48 namespace TestInterfaceEventConstructorV8Internal { | 48 namespace TestInterfaceEventConstructorV8Internal { |
49 | 49 |
50 template <typename T> void V8_USE(T) { } | 50 template <typename T> void V8_USE(T) { } |
51 | 51 |
52 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 52 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
53 { | 53 { |
54 v8::Handle<v8::Object> holder = info.Holder(); | 54 v8::Handle<v8::Object> holder = info.Holder(); |
55 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); | 55 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 fromInternalPointer(object)->deref(); | 417 fromInternalPointer(object)->deref(); |
418 #endif // !ENABLE(OILPAN) | 418 #endif // !ENABLE(OILPAN) |
419 } | 419 } |
420 | 420 |
421 template<> | 421 template<> |
422 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 422 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
423 { | 423 { |
424 return toV8(impl, creationContext, isolate); | 424 return toV8(impl, creationContext, isolate); |
425 } | 425 } |
426 | 426 |
427 } // namespace WebCore | 427 } // namespace blink |
OLD | NEW |