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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 {"implementedAsInitializedByEventConstructorReadonlyStringAttribute", TestIn
terfaceEventConstructorV8Internal::implementedAsInitializedByEventConstructorRea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, | 292 {"implementedAsInitializedByEventConstructorReadonlyStringAttribute", TestIn
terfaceEventConstructorV8Internal::implementedAsInitializedByEventConstructorRea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, |
293 {"deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribut
e", TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, | 293 {"deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribut
e", TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, |
294 }; | 294 }; |
295 | 295 |
296 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&
eventInit, const Dictionary& options, ExceptionState& exceptionState, const v8::
FunctionCallbackInfo<v8::Value>& info, const String& forEventName) | 296 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit&
eventInit, const Dictionary& options, ExceptionState& exceptionState, const v8::
FunctionCallbackInfo<v8::Value>& info, const String& forEventName) |
297 { | 297 { |
298 Dictionary::ConversionContext conversionContext(forEventName.isEmpty() ? Str
ing("TestInterfaceEventConstructor") : forEventName, "", exceptionState); | 298 Dictionary::ConversionContext conversionContext(forEventName.isEmpty() ? Str
ing("TestInterfaceEventConstructor") : forEventName, "", exceptionState); |
299 if (!initializeEvent(eventInit, options, exceptionState, info, forEventName.
isEmpty() ? String("TestInterfaceEventConstructor") : forEventName)) | 299 if (!initializeEvent(eventInit, options, exceptionState, info, forEventName.
isEmpty() ? String("TestInterfaceEventConstructor") : forEventName)) |
300 return false; | 300 return false; |
301 | 301 |
302 if (!options.convert(conversionContext.setConversionType("DOMString", false)
, "initializedByEventConstructorReadonlyStringAttribute", eventInit.initializedB
yEventConstructorReadonlyStringAttribute)) | 302 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"DOMString", false), "initializedByEventConstructorReadonlyStringAttribute", eve
ntInit.initializedByEventConstructorReadonlyStringAttribute)) |
303 return false; | 303 return false; |
304 if (!options.convert(conversionContext.setConversionType("boolean", false),
"initializedByEventConstructorReadonlyBooleanAttribute", eventInit.initializedBy
EventConstructorReadonlyBooleanAttribute)) | 304 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"boolean", false), "initializedByEventConstructorReadonlyBooleanAttribute", even
tInit.initializedByEventConstructorReadonlyBooleanAttribute)) |
305 return false; | 305 return false; |
306 if (!options.convert(conversionContext.setConversionType("long", false), "in
itializedByEventConstructorReadonlyLongAttribute", eventInit.initializedByEventC
onstructorReadonlyLongAttribute)) | 306 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"long", false), "initializedByEventConstructorReadonlyLongAttribute", eventInit.
initializedByEventConstructorReadonlyLongAttribute)) |
307 return false; | 307 return false; |
308 if (!options.convert(conversionContext.setConversionType("Uint8Array", false
), "initializedByEventConstructorReadonlyUint8ArrayAttribute", eventInit.initial
izedByEventConstructorReadonlyUint8ArrayAttribute)) | 308 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"Uint8Array", false), "initializedByEventConstructorReadonlyUint8ArrayAttribute"
, eventInit.initializedByEventConstructorReadonlyUint8ArrayAttribute)) |
309 return false; | 309 return false; |
310 if (!options.convert(conversionContext.setConversionType("TestInterfaceEmpty
", false), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute", e
ventInit.initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute)) | 310 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty", false), "initializedByEventConstructorReadonlyTestInterfac
eEmptyAttribute", eventInit.initializedByEventConstructorReadonlyTestInterfaceEm
ptyAttribute)) |
311 return false; | 311 return false; |
312 if (!options.convert(conversionContext.setConversionType("TestInterfaceEmpty
[]", false), "initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttrib
ute", eventInit.initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttr
ibute)) | 312 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty[]", false), "initializedByEventConstructorReadonlyTestInterf
aceEmptyArrayAttribute", eventInit.initializedByEventConstructorReadonlyTestInte
rfaceEmptyArrayAttribute)) |
313 return false; | 313 return false; |
314 if (!options.convert(conversionContext.setConversionType("TestInterfaceEmpty
", true), "initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttrib
ute", eventInit.initializedByEventConstructorReadonlyNullableTestInterfaceEmptyA
ttribute)) | 314 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty", true), "initializedByEventConstructorReadonlyNullableTestI
nterfaceEmptyAttribute", eventInit.initializedByEventConstructorReadonlyNullable
TestInterfaceEmptyAttribute)) |
315 return false; | 315 return false; |
316 if (options.convert(conversionContext.setConversionType("DOMString", false),
"deprecatedInitializedByEventConstructorReadonlyStringAttribute", eventInit.dep
recatedInitializedByEventConstructorReadonlyStringAttribute)) { | 316 if (DictionaryHelper::convert(options, conversionContext.setConversionType("
DOMString", false), "deprecatedInitializedByEventConstructorReadonlyStringAttrib
ute", eventInit.deprecatedInitializedByEventConstructorReadonlyStringAttribute))
{ |
317 if (options.hasProperty("deprecatedInitializedByEventConstructorReadonly
StringAttribute")) | 317 if (options.hasProperty("deprecatedInitializedByEventConstructorReadonly
StringAttribute")) |
318 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate
()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); | 318 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate
()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); |
319 } else { | 319 } else { |
320 return false; | 320 return false; |
321 } | 321 } |
322 if (!options.convert(conversionContext.setConversionType("DOMString", false)
, "implementedAsInitializedByEventConstructorReadonlyStringAttribute", eventInit
.implementedAsName)) | 322 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"DOMString", false), "implementedAsInitializedByEventConstructorReadonlyStringAt
tribute", eventInit.implementedAsName)) |
323 return false; | 323 return false; |
324 if (options.convert(conversionContext.setConversionType("DOMString", false),
"deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribute",
eventInit.deprecatedImplementedAsName)) { | 324 if (DictionaryHelper::convert(options, conversionContext.setConversionType("
DOMString", false), "deprecatedImplementedAsInitializedByEventConstructorReadonl
yStringAttribute", eventInit.deprecatedImplementedAsName)) { |
325 if (options.hasProperty("deprecatedImplementedAsInitializedByEventConstr
uctorReadonlyStringAttribute")) | 325 if (options.hasProperty("deprecatedImplementedAsInitializedByEventConstr
uctorReadonlyStringAttribute")) |
326 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate
()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); | 326 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate
()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); |
327 } else { | 327 } else { |
328 return false; | 328 return false; |
329 } | 329 } |
330 return true; | 330 return true; |
331 } | 331 } |
332 | 332 |
333 void V8TestInterfaceEventConstructor::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 333 void V8TestInterfaceEventConstructor::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
334 { | 334 { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 #endif // !ENABLE(OILPAN) | 419 #endif // !ENABLE(OILPAN) |
420 } | 420 } |
421 | 421 |
422 template<> | 422 template<> |
423 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 423 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
424 { | 424 { |
425 return toV8(impl, creationContext, isolate); | 425 return toV8(impl, creationContext, isolate); |
426 } | 426 } |
427 | 427 |
428 } // namespace WebCore | 428 } // namespace WebCore |
OLD | NEW |