| 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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 exceptionState.throwIfNeeded(); | 265 exceptionState.throwIfNeeded(); |
| 266 return; | 266 return; |
| 267 } | 267 } |
| 268 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); | 268 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); |
| 269 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 269 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 270 V8HiddenValue::setHiddenValue(isolate, info.Holder(), v8AtomicString
(isolate, "initializedByEventConstructorReadonlyAnyAttribute"), initializedByEve
ntConstructorReadonlyAnyAttribute); | 270 V8HiddenValue::setHiddenValue(isolate, info.Holder(), v8AtomicString
(isolate, "initializedByEventConstructorReadonlyAnyAttribute"), initializedByEve
ntConstructorReadonlyAnyAttribute); |
| 271 } | 271 } |
| 272 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); | 272 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); |
| 273 if (exceptionState.throwIfNeeded()) | 273 if (exceptionState.throwIfNeeded()) |
| 274 return; | 274 return; |
| 275 if (DOMWrapperWorld::current(isolate).isIsolatedWorld()) { | 275 if (DOMWrapperWorld::current(isolate)->isIsolatedWorld()) { |
| 276 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 276 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 277 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValue::createAndSwallowExceptions(initializedByEventConstructo
rReadonlyAnyAttribute, isolate)); | 277 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValue::createAndSwallowExceptions(initializedByEventConstructo
rReadonlyAnyAttribute, isolate)); |
| 278 } | 278 } |
| 279 | 279 |
| 280 v8::Handle<v8::Object> wrapper = info.Holder(); | 280 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 281 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(ev
ent.release(), &V8TestInterfaceEventConstructor::wrapperTypeInfo, wrapper, isola
te, WrapperConfiguration::Independent); | 281 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(ev
ent.release(), &V8TestInterfaceEventConstructor::wrapperTypeInfo, wrapper, isola
te, WrapperConfiguration::Independent); |
| 282 v8SetReturnValue(info, wrapper); | 282 v8SetReturnValue(info, wrapper); |
| 283 } | 283 } |
| 284 | 284 |
| 285 } // namespace TestInterfaceEventConstructorV8Internal | 285 } // namespace TestInterfaceEventConstructorV8Internal |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 #endif // !ENABLE(OILPAN) | 427 #endif // !ENABLE(OILPAN) |
| 428 } | 428 } |
| 429 | 429 |
| 430 template<> | 430 template<> |
| 431 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 431 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 432 { | 432 { |
| 433 return toV8(impl, creationContext, isolate); | 433 return toV8(impl, creationContext, isolate); |
| 434 } | 434 } |
| 435 | 435 |
| 436 } // namespace WebCore | 436 } // namespace WebCore |
| OLD | NEW |