Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: Source/bindings/tests/results/V8SupportTestInterface.cpp

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 static void Node14AttributeSetterCallback(v8::Local<v8::String> name, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 285 static void Node14AttributeSetterCallback(v8::Local<v8::String> name, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
286 { 286 {
287 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 287 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
288 SupportTestInterfaceV8Internal::Node14AttributeSetter(name, jsValue, info); 288 SupportTestInterfaceV8Internal::Node14AttributeSetter(name, jsValue, info);
289 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 289 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
290 } 290 }
291 #endif // ENABLE(Condition11) || ENABLE(Condition12) 291 #endif // ENABLE(Condition11) || ENABLE(Condition12)
292 292
293 #if ENABLE(Condition11) || ENABLE(Condition12) 293 #if ENABLE(Condition11) || ENABLE(Condition12)
294 294
295 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& args) 295 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
296 { 296 {
297 SupportTestInterface* imp = V8SupportTestInterface::toNative(args.Holder()); 297 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
298 SupportTestPartialInterface::supplementalMethod1(imp); 298 SupportTestPartialInterface::supplementalMethod1(imp);
299 } 299 }
300 300
301 #endif // ENABLE(Condition11) || ENABLE(Condition12) 301 #endif // ENABLE(Condition11) || ENABLE(Condition12)
302 302
303 #if ENABLE(Condition11) || ENABLE(Condition12) 303 #if ENABLE(Condition11) || ENABLE(Condition12)
304 304
305 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args) 305 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
306 { 306 {
307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
308 SupportTestInterfaceV8Internal::supplementalMethod1Method(args); 308 SupportTestInterfaceV8Internal::supplementalMethod1Method(info);
309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
310 } 310 }
311 311
312 #endif // ENABLE(Condition11) || ENABLE(Condition12) 312 #endif // ENABLE(Condition11) || ENABLE(Condition12)
313 313
314 #if ENABLE(Condition11) || ENABLE(Condition12) 314 #if ENABLE(Condition11) || ENABLE(Condition12)
315 315
316 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& args) 316 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
317 { 317 {
318 if (UNLIKELY(args.Length() < 2)) { 318 if (UNLIKELY(info.Length() < 2)) {
319 throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2", "SupportTestInterface", ExceptionMessages::notEnoughArguments(2, args.Length()) ), args.GetIsolate()); 319 throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2", "SupportTestInterface", ExceptionMessages::notEnoughArguments(2, info.Length()) ), info.GetIsolate());
320 return; 320 return;
321 } 321 }
322 SupportTestInterface* imp = V8SupportTestInterface::toNative(args.Holder()); 322 SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder());
323 ExceptionState es(args.GetIsolate()); 323 ExceptionState es(info.GetIsolate());
324 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); 324 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
325 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(args[1])) : 0); 325 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(info[1], info.Ge tIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(info[1])) : 0);
326 ExecutionContext* scriptContext = getExecutionContext(); 326 ExecutionContext* scriptContext = getExecutionContext();
327 RefPtr<TestObj> result = SupportTestPartialInterface::supplementalMethod2(sc riptContext, imp, strArg, objArg, es); 327 RefPtr<TestObj> result = SupportTestPartialInterface::supplementalMethod2(sc riptContext, imp, strArg, objArg, es);
328 if (es.throwIfNeeded()) 328 if (es.throwIfNeeded())
329 return; 329 return;
330 v8SetReturnValue(args, result.release()); 330 v8SetReturnValue(info, result.release());
331 } 331 }
332 332
333 #endif // ENABLE(Condition11) || ENABLE(Condition12) 333 #endif // ENABLE(Condition11) || ENABLE(Condition12)
334 334
335 #if ENABLE(Condition11) || ENABLE(Condition12) 335 #if ENABLE(Condition11) || ENABLE(Condition12)
336 336
337 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args) 337 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
338 { 338 {
339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
340 SupportTestInterfaceV8Internal::supplementalMethod2Method(args); 340 SupportTestInterfaceV8Internal::supplementalMethod2Method(info);
341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
342 } 342 }
343 343
344 #endif // ENABLE(Condition11) || ENABLE(Condition12) 344 #endif // ENABLE(Condition11) || ENABLE(Condition12)
345 345
346 #if ENABLE(Condition11) || ENABLE(Condition12) 346 #if ENABLE(Condition11) || ENABLE(Condition12)
347 347
348 static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args) 348 static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
349 { 349 {
350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
351 V8SupportTestInterface::supplementalMethod3MethodCustom(args); 351 V8SupportTestInterface::supplementalMethod3MethodCustom(info);
352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
353 } 353 }
354 354
355 #endif // ENABLE(Condition11) || ENABLE(Condition12) 355 #endif // ENABLE(Condition11) || ENABLE(Condition12)
356 356
357 #if ENABLE(Condition11) || ENABLE(Condition12) 357 #if ENABLE(Condition11) || ENABLE(Condition12)
358 358
359 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& args) 359 static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
360 { 360 {
361 SupportTestPartialInterface::supplementalMethod4(); 361 SupportTestPartialInterface::supplementalMethod4();
362 } 362 }
363 363
364 #endif // ENABLE(Condition11) || ENABLE(Condition12) 364 #endif // ENABLE(Condition11) || ENABLE(Condition12)
365 365
366 #if ENABLE(Condition11) || ENABLE(Condition12) 366 #if ENABLE(Condition11) || ENABLE(Condition12)
367 367
368 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args) 368 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
369 { 369 {
370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
371 SupportTestInterfaceV8Internal::supplementalMethod4Method(args); 371 SupportTestInterfaceV8Internal::supplementalMethod4Method(info);
372 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 372 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
373 } 373 }
374 374
375 #endif // ENABLE(Condition11) || ENABLE(Condition12) 375 #endif // ENABLE(Condition11) || ENABLE(Condition12)
376 376
377 } // namespace SupportTestInterfaceV8Internal 377 } // namespace SupportTestInterfaceV8Internal
378 378
379 static const V8DOMConfiguration::AttributeConfiguration V8SupportTestInterfaceAt tributes[] = { 379 static const V8DOMConfiguration::AttributeConfiguration V8SupportTestInterfaceAt tributes[] = {
380 #if ENABLE(Condition11) || ENABLE(Condition12) 380 #if ENABLE(Condition11) || ENABLE(Condition12)
381 {"supplementalStr1", SupportTestInterfaceV8Internal::supplementalStr1Attribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 381 {"supplementalStr1", SupportTestInterfaceV8Internal::supplementalStr1Attribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 V8DOMWrapper::associateObjectWithWrapper<V8SupportTestInterface>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 507 V8DOMWrapper::associateObjectWithWrapper<V8SupportTestInterface>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
508 return wrapper; 508 return wrapper;
509 } 509 }
510 510
511 void V8SupportTestInterface::derefObject(void* object) 511 void V8SupportTestInterface::derefObject(void* object)
512 { 512 {
513 fromInternalPointer(object)->deref(); 513 fromInternalPointer(object)->deref();
514 } 514 }
515 515
516 } // namespace WebCore 516 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8Float64Array.cpp ('k') | Source/bindings/tests/results/V8TestActiveDOMObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698