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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 186 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
187 { | 187 { |
188 v8::Handle<v8::Object> holder = info.Holder(); | 188 v8::Handle<v8::Object> holder = info.Holder(); |
189 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 189 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
190 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); | 190 v8SetReturnValueString(info, impl->deprecatedInitializedByEventConstructorRe
adonlyStringAttribute(), info.GetIsolate()); |
191 } | 191 } |
192 | 192 |
193 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 193 static void deprecatedInitializedByEventConstructorReadonlyStringAttributeAttrib
uteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
194 { | 194 { |
195 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 195 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
196 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 196 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::initializedByEventConstructorReado
nlyStringAttribute); |
197 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); | 197 TestInterfaceEventConstructorV8Internal::deprecatedInitializedByEventConstru
ctorReadonlyStringAttributeAttributeGetter(info); |
198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
199 } | 199 } |
200 | 200 |
201 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 201 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
202 { | 202 { |
203 v8::Handle<v8::Object> holder = info.Holder(); | 203 v8::Handle<v8::Object> holder = info.Holder(); |
204 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 204 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
205 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); | 205 v8SetReturnValueString(info, impl->implementedAsName(), info.GetIsolate()); |
206 } | 206 } |
207 | 207 |
208 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) | 208 static void implementedAsInitializedByEventConstructorReadonlyStringAttributeAtt
ributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::V
alue>& info) |
209 { | 209 { |
210 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 210 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
211 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); | 211 TestInterfaceEventConstructorV8Internal::implementedAsInitializedByEventCons
tructorReadonlyStringAttributeAttributeGetter(info); |
212 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 212 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
213 } | 213 } |
214 | 214 |
215 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 215 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
216 { | 216 { |
217 v8::Handle<v8::Object> holder = info.Holder(); | 217 v8::Handle<v8::Object> holder = info.Holder(); |
218 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); | 218 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toImp
l(holder); |
219 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); | 219 v8SetReturnValueString(info, impl->deprecatedImplementedAsName(), info.GetIs
olate()); |
220 } | 220 } |
221 | 221 |
222 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) | 222 static void deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAt
tributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallback
Info<v8::Value>& info) |
223 { | 223 { |
224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
225 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::initializedByEventConstructorReadonlyStringAttribute); | 225 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::initializedByEventConstructorReado
nlyStringAttribute); |
226 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); | 226 TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB
yEventConstructorReadonlyStringAttributeAttributeGetter(info); |
227 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 227 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
228 } | 228 } |
229 | 229 |
230 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 230 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
231 { | 231 { |
232 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), info.GetIsolate()); | 232 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceEventConstructor", info.Holder(), info.GetIsolate()); |
233 if (info.Length() < 1) { | 233 if (info.Length() < 1) { |
234 exceptionState.throwTypeError("An event name must be provided."); | 234 exceptionState.throwTypeError("An event name must be provided."); |
235 exceptionState.throwIfNeeded(); | 235 exceptionState.throwIfNeeded(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"Uint8Array", false), "initializedByEventConstructorReadonlyUint8ArrayAttribute"
, eventInit.initializedByEventConstructorReadonlyUint8ArrayAttribute)) | 294 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"Uint8Array", false), "initializedByEventConstructorReadonlyUint8ArrayAttribute"
, eventInit.initializedByEventConstructorReadonlyUint8ArrayAttribute)) |
295 return false; | 295 return false; |
296 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty", false), "initializedByEventConstructorReadonlyTestInterfac
eEmptyAttribute", eventInit.initializedByEventConstructorReadonlyTestInterfaceEm
ptyAttribute)) | 296 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty", false), "initializedByEventConstructorReadonlyTestInterfac
eEmptyAttribute", eventInit.initializedByEventConstructorReadonlyTestInterfaceEm
ptyAttribute)) |
297 return false; | 297 return false; |
298 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty[]", false), "initializedByEventConstructorReadonlyTestInterf
aceEmptyArrayAttribute", eventInit.initializedByEventConstructorReadonlyTestInte
rfaceEmptyArrayAttribute)) | 298 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty[]", false), "initializedByEventConstructorReadonlyTestInterf
aceEmptyArrayAttribute", eventInit.initializedByEventConstructorReadonlyTestInte
rfaceEmptyArrayAttribute)) |
299 return false; | 299 return false; |
300 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty", true), "initializedByEventConstructorReadonlyNullableTestI
nterfaceEmptyAttribute", eventInit.initializedByEventConstructorReadonlyNullable
TestInterfaceEmptyAttribute)) | 300 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"TestInterfaceEmpty", true), "initializedByEventConstructorReadonlyNullableTestI
nterfaceEmptyAttribute", eventInit.initializedByEventConstructorReadonlyNullable
TestInterfaceEmptyAttribute)) |
301 return false; | 301 return false; |
302 if (DictionaryHelper::convert(options, conversionContext.setConversionType("
DOMString", false), "deprecatedInitializedByEventConstructorReadonlyStringAttrib
ute", eventInit.deprecatedInitializedByEventConstructorReadonlyStringAttribute))
{ | 302 if (DictionaryHelper::convert(options, conversionContext.setConversionType("
DOMString", false), "deprecatedInitializedByEventConstructorReadonlyStringAttrib
ute", eventInit.deprecatedInitializedByEventConstructorReadonlyStringAttribute))
{ |
303 if (options.hasProperty("deprecatedInitializedByEventConstructorReadonly
StringAttribute")) | 303 if (options.hasProperty("deprecatedInitializedByEventConstructorReadonly
StringAttribute")) |
304 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate
()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); | 304 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::initializedByEventConstruc
torReadonlyStringAttribute); |
305 } else { | 305 } else { |
306 return false; | 306 return false; |
307 } | 307 } |
308 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"DOMString", false), "implementedAsInitializedByEventConstructorReadonlyStringAt
tribute", eventInit.implementedAsName)) | 308 if (!DictionaryHelper::convert(options, conversionContext.setConversionType(
"DOMString", false), "implementedAsInitializedByEventConstructorReadonlyStringAt
tribute", eventInit.implementedAsName)) |
309 return false; | 309 return false; |
310 if (DictionaryHelper::convert(options, conversionContext.setConversionType("
DOMString", false), "deprecatedImplementedAsInitializedByEventConstructorReadonl
yStringAttribute", eventInit.deprecatedImplementedAsName)) { | 310 if (DictionaryHelper::convert(options, conversionContext.setConversionType("
DOMString", false), "deprecatedImplementedAsInitializedByEventConstructorReadonl
yStringAttribute", eventInit.deprecatedImplementedAsName)) { |
311 if (options.hasProperty("deprecatedImplementedAsInitializedByEventConstr
uctorReadonlyStringAttribute")) | 311 if (options.hasProperty("deprecatedImplementedAsInitializedByEventConstr
uctorReadonlyStringAttribute")) |
312 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate
()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); | 312 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), ca
llingExecutionContext(info.GetIsolate()), UseCounter::initializedByEventConstruc
torReadonlyStringAttribute); |
313 } else { | 313 } else { |
314 return false; | 314 return false; |
315 } | 315 } |
316 return true; | 316 return true; |
317 } | 317 } |
318 | 318 |
319 void V8TestInterfaceEventConstructor::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 319 void V8TestInterfaceEventConstructor::constructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
320 { | 320 { |
321 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 321 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
322 if (!info.IsConstructCall()) { | 322 if (!info.IsConstructCall()) { |
(...skipping 75 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 |