| 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 "V8TestInterfaceGarbageCollected.h" | 8 #include "V8TestInterfaceGarbageCollected.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 if (UNLIKELY(info.Length() < 1)) { | 90 if (UNLIKELY(info.Length() < 1)) { |
| 91 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceGarbageCollected", 1, info.Length(), info.GetIsolate()), info.G
etIsolate()); | 91 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceGarbageCollected", 1, info.Length(), info.GetIsolate()), info.G
etIsolate()); |
| 92 return; | 92 return; |
| 93 } | 93 } |
| 94 V8StringResource<> str; | 94 V8StringResource<> str; |
| 95 { | 95 { |
| 96 TOSTRING_VOID_INTERNAL(str, info[0]); | 96 TOSTRING_VOID_INTERNAL(str, info[0]); |
| 97 } | 97 } |
| 98 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected::
create(str); | 98 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected::
create(str); |
| 99 v8::Handle<v8::Object> wrapper = info.Holder(); | 99 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 100 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im
pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, info.G
etIsolate()); | 100 impl->associateWithWrapper(&V8TestInterfaceGarbageCollected::wrapperTypeInfo
, wrapper, info.GetIsolate()); |
| 101 v8SetReturnValue(info, wrapper); | 101 v8SetReturnValue(info, wrapper); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace TestInterfaceGarbageCollectedV8Internal | 104 } // namespace TestInterfaceGarbageCollectedV8Internal |
| 105 | 105 |
| 106 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo
llectedAttributes[] = { | 106 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo
llectedAttributes[] = { |
| 107 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb
ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0
, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnI
nstance}, | 107 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb
ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0
, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnI
nstance}, |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle
ctedMethods[] = { | 110 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceGarbageColle
ctedMethods[] = { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 return new WrapperPersistent<TestInterfaceGarbageCollected>(internalPointer-
>toImpl<TestInterfaceGarbageCollected>()); | 185 return new WrapperPersistent<TestInterfaceGarbageCollected>(internalPointer-
>toImpl<TestInterfaceGarbageCollected>()); |
| 186 } | 186 } |
| 187 | 187 |
| 188 template<> | 188 template<> |
| 189 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 189 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 190 { | 190 { |
| 191 return toV8(impl, creationContext, isolate); | 191 return toV8(impl, creationContext, isolate); |
| 192 } | 192 } |
| 193 | 193 |
| 194 } // namespace blink | 194 } // namespace blink |
| OLD | NEW |