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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface2.cpp

Issue 709743002: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
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 "V8TestInterface2.h" 8 #include "V8TestInterface2.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, 432 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts},
433 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 433 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
434 {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallb ack, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 434 {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallb ack, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
435 {"toString", TestInterface2V8Internal::toStringMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 435 {"toString", TestInterface2V8Internal::toStringMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
436 }; 436 };
437 437
438 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 438 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
439 { 439 {
440 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 440 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
441 if (!info.IsConstructCall()) { 441 if (!info.IsConstructCall()) {
442 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab leAsFunction("TestInterface2"), info.GetIsolate()); 442 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterface2"));
443 return; 443 return;
444 } 444 }
445 445
446 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 446 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
447 v8SetReturnValue(info, info.Holder()); 447 v8SetReturnValue(info, info.Holder());
448 return; 448 return;
449 } 449 }
450 450
451 TestInterface2V8Internal::constructor(info); 451 TestInterface2V8Internal::constructor(info);
452 } 452 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 scriptWrappableBase->toImpl<TestInterface2>()->deref(); 509 scriptWrappableBase->toImpl<TestInterface2>()->deref();
510 } 510 }
511 511
512 template<> 512 template<>
513 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 513 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
514 { 514 {
515 return toV8(impl, creationContext, isolate); 515 return toV8(impl, creationContext, isolate);
516 } 516 }
517 517
518 } // namespace blink 518 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698