| 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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| 11 #include "V8Interface1.h" | 11 #include "bindings/tests/v8/V8TestInterface.h" |
| 12 #include "V8Interface2.h" | 12 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
| 13 #include "V8TestInterfaceEmpty.h" | |
| 14 #include "bindings/v8/ExceptionState.h" | 13 #include "bindings/v8/ExceptionState.h" |
| 15 #include "bindings/v8/V8DOMConfiguration.h" | 14 #include "bindings/v8/V8DOMConfiguration.h" |
| 16 #include "bindings/v8/V8GCController.h" | 15 #include "bindings/v8/V8GCController.h" |
| 17 #include "bindings/v8/V8HiddenValue.h" | 16 #include "bindings/v8/V8HiddenValue.h" |
| 18 #include "bindings/v8/V8ObjectConstructor.h" | 17 #include "bindings/v8/V8ObjectConstructor.h" |
| 19 #include "core/dom/ContextFeatures.h" | 18 #include "core/dom/ContextFeatures.h" |
| 20 #include "core/dom/Document.h" | 19 #include "core/dom/Document.h" |
| 21 #include "core/dom/Element.h" | 20 #include "core/dom/Element.h" |
| 22 #include "core/frame/DOMWindow.h" | 21 #include "core/frame/DOMWindow.h" |
| 23 #include "platform/TraceEvent.h" | 22 #include "platform/TraceEvent.h" |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 } | 483 } |
| 485 | 484 |
| 486 TestInterface2* V8TestInterface2::toNativeWithTypeCheck(v8::Isolate* isolate, v8
::Handle<v8::Value> value) | 485 TestInterface2* V8TestInterface2::toNativeWithTypeCheck(v8::Isolate* isolate, v8
::Handle<v8::Value> value) |
| 487 { | 486 { |
| 488 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 487 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
| 489 } | 488 } |
| 490 | 489 |
| 491 v8::Handle<v8::Object> wrap(TestInterface2* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 490 v8::Handle<v8::Object> wrap(TestInterface2* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
| 492 { | 491 { |
| 493 ASSERT(impl); | 492 ASSERT(impl); |
| 494 if (impl->isInterface1()) | 493 if (impl->isTestInterface()) |
| 495 return wrap(toInterface1(impl), creationContext, isolate); | 494 return wrap(toTestInterface(impl), creationContext, isolate); |
| 496 if (impl->isInterface2()) | 495 if (impl->isTestInterfaceEmpty()) |
| 497 return wrap(toInterface2(impl), creationContext, isolate); | 496 return wrap(toTestInterfaceEmpty(impl), creationContext, isolate); |
| 498 v8::Handle<v8::Object> wrapper = V8TestInterface2::createWrapper(impl, creat
ionContext, isolate); | 497 v8::Handle<v8::Object> wrapper = V8TestInterface2::createWrapper(impl, creat
ionContext, isolate); |
| 499 return wrapper; | 498 return wrapper; |
| 500 } | 499 } |
| 501 | 500 |
| 502 v8::Handle<v8::Object> V8TestInterface2::createWrapper(PassRefPtr<TestInterface2
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 501 v8::Handle<v8::Object> V8TestInterface2::createWrapper(PassRefPtr<TestInterface2
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 503 { | 502 { |
| 504 ASSERT(impl); | 503 ASSERT(impl); |
| 505 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface2>(impl.get(), isolate)
); | 504 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface2>(impl.get(), isolate)
); |
| 506 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 505 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 507 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 506 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 524 fromInternalPointer(object)->deref(); | 523 fromInternalPointer(object)->deref(); |
| 525 } | 524 } |
| 526 | 525 |
| 527 template<> | 526 template<> |
| 528 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 527 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 529 { | 528 { |
| 530 return toV8(impl, creationContext, isolate); | 529 return toV8(impl, creationContext, isolate); |
| 531 } | 530 } |
| 532 | 531 |
| 533 } // namespace WebCore | 532 } // namespace WebCore |
| OLD | NEW |