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 "V8TestTypedefs.h" | 8 #include "V8TestTypedefs.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/tests/v8/V8TestCallbackInterface.h" | 14 #include "bindings/tests/v8/V8TestCallbackInterface.h" |
15 #include "bindings/tests/v8/V8TestInterface.h" | 15 #include "bindings/tests/v8/V8TestInterface.h" |
16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
17 #include "core/dom/ContextFeatures.h" | 17 #include "core/dom/ContextFeatures.h" |
18 #include "core/dom/Document.h" | 18 #include "core/dom/Document.h" |
19 #include "core/frame/LocalDOMWindow.h" | 19 #include "core/frame/LocalDOMWindow.h" |
20 #include "platform/RuntimeEnabledFeatures.h" | 20 #include "platform/RuntimeEnabledFeatures.h" |
21 #include "platform/TraceEvent.h" | 21 #include "platform/TraceEvent.h" |
22 #include "wtf/GetPtr.h" | 22 #include "wtf/GetPtr.h" |
23 #include "wtf/RefPtr.h" | 23 #include "wtf/RefPtr.h" |
24 | 24 |
25 namespace WebCore { | 25 namespace blink { |
26 | 26 |
27 static void initializeScriptWrappableForInterface(TestTypedefs* object) | 27 static void initializeScriptWrappableForInterface(TestTypedefs* object) |
28 { | 28 { |
29 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 29 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
30 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestTypedefs::wrappe
rTypeInfo); | 30 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestTypedefs::wrappe
rTypeInfo); |
31 else | 31 else |
32 ASSERT_NOT_REACHED(); | 32 ASSERT_NOT_REACHED(); |
33 } | 33 } |
34 | 34 |
35 } // namespace WebCore | 35 } // namespace blink |
36 | 36 |
37 void webCoreInitializeScriptWrappableForInterface(WebCore::TestTypedefs* object) | 37 void webCoreInitializeScriptWrappableForInterface(blink::TestTypedefs* object) |
38 { | 38 { |
39 WebCore::initializeScriptWrappableForInterface(object); | 39 blink::initializeScriptWrappableForInterface(object); |
40 } | 40 } |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V
8TestTypedefs::domTemplate, V8TestTypedefs::derefObject, 0, 0, 0, V8TestTypedefs
::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype, RefCountedObje
ct }; | 43 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V
8TestTypedefs::domTemplate, V8TestTypedefs::derefObject, 0, 0, 0, V8TestTypedefs
::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype, RefCountedObje
ct }; |
44 | 44 |
45 namespace TestTypedefsV8Internal { | 45 namespace TestTypedefsV8Internal { |
46 | 46 |
47 template <typename T> void V8_USE(T) { } | 47 template <typename T> void V8_USE(T) { } |
48 | 48 |
49 static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 49 static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
50 { | 50 { |
51 v8::Handle<v8::Object> holder = info.Holder(); | 51 v8::Handle<v8::Object> holder = info.Holder(); |
52 TestTypedefs* impl = V8TestTypedefs::toNative(holder); | 52 TestTypedefs* impl = V8TestTypedefs::toNative(holder); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 { | 384 { |
385 fromInternalPointer(object)->deref(); | 385 fromInternalPointer(object)->deref(); |
386 } | 386 } |
387 | 387 |
388 template<> | 388 template<> |
389 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 389 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, 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 |