| 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 "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/ScriptValue.h" | 12 #include "bindings/core/v8/ScriptValue.h" |
| 13 #include "bindings/core/v8/SerializedScriptValue.h" | 13 #include "bindings/core/v8/SerializedScriptValue.h" |
| 14 #include "bindings/core/v8/SerializedScriptValueFactory.h" |
| 14 #include "bindings/core/v8/V8DOMConfiguration.h" | 15 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 15 #include "bindings/core/v8/V8HiddenValue.h" | 16 #include "bindings/core/v8/V8HiddenValue.h" |
| 16 #include "bindings/core/v8/V8ObjectConstructor.h" | 17 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 17 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 18 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
| 18 #include "bindings/core/v8/V8Uint8Array.h" | 19 #include "bindings/core/v8/V8Uint8Array.h" |
| 19 #include "core/dom/ContextFeatures.h" | 20 #include "core/dom/ContextFeatures.h" |
| 20 #include "core/dom/Document.h" | 21 #include "core/dom/Document.h" |
| 21 #include "core/frame/LocalDOMWindow.h" | 22 #include "core/frame/LocalDOMWindow.h" |
| 22 #include "core/frame/UseCounter.h" | 23 #include "core/frame/UseCounter.h" |
| 23 #include "platform/RuntimeEnabledFeatures.h" | 24 #include "platform/RuntimeEnabledFeatures.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 } | 248 } |
| 248 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); | 249 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); |
| 249 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 250 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 250 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8At
omicString(info.GetIsolate(), "initializedByEventConstructorReadonlyAnyAttribute
"), initializedByEventConstructorReadonlyAnyAttribute); | 251 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8At
omicString(info.GetIsolate(), "initializedByEventConstructorReadonlyAnyAttribute
"), initializedByEventConstructorReadonlyAnyAttribute); |
| 251 } | 252 } |
| 252 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); | 253 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); |
| 253 if (exceptionState.throwIfNeeded()) | 254 if (exceptionState.throwIfNeeded()) |
| 254 return; | 255 return; |
| 255 if (DOMWrapperWorld::current(info.GetIsolate()).isIsolatedWorld()) { | 256 if (DOMWrapperWorld::current(info.GetIsolate()).isIsolatedWorld()) { |
| 256 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 257 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 257 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValue::createAndSwallowExceptions(info.GetIsolate(), initializ
edByEventConstructorReadonlyAnyAttribute)); | 258 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIs
olate(), initializedByEventConstructorReadonlyAnyAttribute)); |
| 258 } | 259 } |
| 259 | 260 |
| 260 v8::Handle<v8::Object> wrapper = info.Holder(); | 261 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 261 event->associateWithWrapper(&V8TestInterfaceEventConstructor::wrapperTypeInf
o, wrapper, info.GetIsolate()); | 262 event->associateWithWrapper(&V8TestInterfaceEventConstructor::wrapperTypeInf
o, wrapper, info.GetIsolate()); |
| 262 v8SetReturnValue(info, wrapper); | 263 v8SetReturnValue(info, wrapper); |
| 263 } | 264 } |
| 264 | 265 |
| 265 } // namespace TestInterfaceEventConstructorV8Internal | 266 } // namespace TestInterfaceEventConstructorV8Internal |
| 266 | 267 |
| 267 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventCons
tructorAttributes[] = { | 268 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventCons
tructorAttributes[] = { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 #endif | 388 #endif |
| 388 } | 389 } |
| 389 | 390 |
| 390 template<> | 391 template<> |
| 391 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 392 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 392 { | 393 { |
| 393 return toV8(impl, creationContext, isolate); | 394 return toV8(impl, creationContext, isolate); |
| 394 } | 395 } |
| 395 | 396 |
| 396 } // namespace blink | 397 } // namespace blink |
| OLD | NEW |