| 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" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 if (info.Length() < 1) { | 235 if (info.Length() < 1) { |
| 236 exceptionState.throwTypeError("An event name must be provided."); | 236 exceptionState.throwTypeError("An event name must be provided."); |
| 237 exceptionState.throwIfNeeded(); | 237 exceptionState.throwIfNeeded(); |
| 238 return; | 238 return; |
| 239 } | 239 } |
| 240 | 240 |
| 241 TOSTRING_VOID(V8StringResource<>, type, info[0]); | 241 TOSTRING_VOID(V8StringResource<>, type, info[0]); |
| 242 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute; | 242 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute; |
| 243 TestInterfaceEventConstructorInit eventInit; | 243 TestInterfaceEventConstructorInit eventInit; |
| 244 if (info.Length() >= 2) { | 244 if (info.Length() >= 2) { |
| 245 TONATIVE_VOID(Dictionary, options, Dictionary(info[1], info.GetIsolate()
)); | 245 Dictionary options(info[1], info.GetIsolate()); |
| 246 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti
onState, info)) { | 246 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti
onState, info)) { |
| 247 exceptionState.throwIfNeeded(); | 247 exceptionState.throwIfNeeded(); |
| 248 return; | 248 return; |
| 249 } | 249 } |
| 250 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); | 250 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); |
| 251 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 251 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 252 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8At
omicString(info.GetIsolate(), "initializedByEventConstructorReadonlyAnyAttribute
"), initializedByEventConstructorReadonlyAnyAttribute); | 252 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8At
omicString(info.GetIsolate(), "initializedByEventConstructorReadonlyAnyAttribute
"), initializedByEventConstructorReadonlyAnyAttribute); |
| 253 } | 253 } |
| 254 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); | 254 RefPtrWillBeRawPtr<TestInterfaceEventConstructor> event = TestInterfaceEvent
Constructor::create(type, eventInit, exceptionState); |
| 255 if (exceptionState.throwIfNeeded()) | 255 if (exceptionState.throwIfNeeded()) |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 #endif | 398 #endif |
| 399 } | 399 } |
| 400 | 400 |
| 401 template<> | 401 template<> |
| 402 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 402 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 403 { | 403 { |
| 404 return toV8(impl, creationContext, isolate); | 404 return toV8(impl, creationContext, isolate); |
| 405 } | 405 } |
| 406 | 406 |
| 407 } // namespace blink | 407 } // namespace blink |
| OLD | NEW |