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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 231 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
232 { | 232 { |
233 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), info.GetIsolate()); | 233 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), info.GetIsolate()); |
234 if (info.Length() < 1) { | 234 if (info.Length() < 1) { |
235 exceptionState.throwTypeError("An event name must be provided."); | 235 exceptionState.throwTypeError("An event name must be provided."); |
236 exceptionState.throwIfNeeded(); | 236 exceptionState.throwIfNeeded(); |
237 return; | 237 return; |
238 } | 238 } |
239 | 239 |
240 TOSTRING_VOID(V8StringResource<>, type, info[0]); | 240 V8StringResource<> type(info[0]); |
| 241 if (!type.prepare()) |
| 242 return; |
241 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute; | 243 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute; |
242 TestInterfaceEventConstructorInit eventInit; | 244 TestInterfaceEventConstructorInit eventInit; |
243 if (info.Length() >= 2) { | 245 if (info.Length() >= 2) { |
244 Dictionary options(info[1], info.GetIsolate(), exceptionState); | 246 Dictionary options(info[1], info.GetIsolate(), exceptionState); |
245 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti
onState, info)) { | 247 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti
onState, info)) { |
246 exceptionState.throwIfNeeded(); | 248 exceptionState.throwIfNeeded(); |
247 return; | 249 return; |
248 } | 250 } |
249 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); | 251 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); |
250 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 252 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 } | 383 } |
382 | 384 |
383 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 385 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
384 { | 386 { |
385 #if !ENABLE(OILPAN) | 387 #if !ENABLE(OILPAN) |
386 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); | 388 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); |
387 #endif | 389 #endif |
388 } | 390 } |
389 | 391 |
390 } // namespace blink | 392 } // namespace blink |
OLD | NEW |