| 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 "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.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/V8DOMConfiguration.h" | 12 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 13 #include "bindings/core/v8/V8HiddenValue.h" | 13 #include "bindings/core/v8/V8HiddenValue.h" |
| 14 #include "bindings/core/v8/V8ObjectConstructor.h" | 14 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 15 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 15 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
| 16 #include "core/dom/ContextFeatures.h" | 16 #include "core/dom/ContextFeatures.h" |
| 17 #include "core/dom/Document.h" | 17 #include "core/dom/Document.h" |
| 18 #include "core/frame/LocalDOMWindow.h" | 18 #include "core/frame/LocalDOMWindow.h" |
| 19 #include "core/frame/UseCounter.h" | 19 #include "core/frame/UseCounter.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(TestInterfaceConstructor* obje
ct) | 27 static void initializeScriptWrappableForInterface(TestInterfaceConstructor* obje
ct) |
| 28 { | 28 { |
| 29 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 29 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
| 30 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterfaceConstru
ctor::wrapperTypeInfo); | 30 ScriptWrappable::fromObject(object)->setTypeInfo(&V8TestInterfaceConstru
ctor::wrapperTypeInfo); |
| 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::TestInterfaceConstruc
tor* object) | 37 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceConstructo
r* object) |
| 38 { | 38 { |
| 39 WebCore::initializeScriptWrappableForInterface(object); | 39 blink::initializeScriptWrappableForInterface(object); |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace blink { |
| 43 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
derefObject, 0, 0, 0, V8TestInterfaceConstructor::installPerContextEnabledMethod
s, 0, WrapperTypeObjectPrototype, RefCountedObject }; | 43 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
derefObject, 0, 0, 0, V8TestInterfaceConstructor::installPerContextEnabledMethod
s, 0, WrapperTypeObjectPrototype, RefCountedObject }; |
| 44 | 44 |
| 45 namespace TestInterfaceConstructorV8Internal { | 45 namespace TestInterfaceConstructorV8Internal { |
| 46 | 46 |
| 47 template <typename T> void V8_USE(T) { } | 47 template <typename T> void V8_USE(T) { } |
| 48 | 48 |
| 49 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) | 49 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 50 { | 50 { |
| 51 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); | 51 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); |
| 52 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 52 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 { | 378 { |
| 379 fromInternalPointer(object)->deref(); | 379 fromInternalPointer(object)->deref(); |
| 380 } | 380 } |
| 381 | 381 |
| 382 template<> | 382 template<> |
| 383 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 383 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 384 { | 384 { |
| 385 return toV8(impl, creationContext, isolate); | 385 return toV8(impl, creationContext, isolate); |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace WebCore | 388 } // namespace blink |
| OLD | NEW |