| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 249 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 250 { | 250 { |
| 251 v8::Isolate* isolate = info.GetIsolate(); | 251 v8::Isolate* isolate = info.GetIsolate(); |
| 252 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), isolate); | 252 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), isolate); |
| 253 if (info.Length() < 1) { | 253 if (info.Length() < 1) { |
| 254 exceptionState.throwTypeError("An event name must be provided."); | 254 exceptionState.throwTypeError("An event name must be provided."); |
| 255 exceptionState.throwIfNeeded(); | 255 exceptionState.throwIfNeeded(); |
| 256 return; | 256 return; |
| 257 } | 257 } |
| 258 | 258 |
| 259 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, info[0]); | 259 TOSTRING_VOID(V8StringResource<>, type, info[0]); |
| 260 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute; | 260 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute; |
| 261 TestInterfaceEventConstructorInit eventInit; | 261 TestInterfaceEventConstructorInit eventInit; |
| 262 if (info.Length() >= 2) { | 262 if (info.Length() >= 2) { |
| 263 V8TRYCATCH_VOID(Dictionary, options, Dictionary(info[1], isolate)); | 263 TONATIVE_VOID(Dictionary, options, Dictionary(info[1], isolate)); |
| 264 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti
onState, info)) { | 264 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti
onState, info)) { |
| 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()) |
| (...skipping 153 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 |