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

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

Issue 698023005: 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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 { 1074 {
1075 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1075 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1076 TestObjectV8Internal::windowAttributeAttributeGetter(info); 1076 TestObjectV8Internal::windowAttributeAttributeGetter(info);
1077 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1077 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1078 } 1078 }
1079 1079
1080 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 1080 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
1081 { 1081 {
1082 v8::Handle<v8::Object> holder = info.Holder(); 1082 v8::Handle<v8::Object> holder = info.Holder();
1083 TestObject* impl = V8TestObject::toImpl(holder); 1083 TestObject* impl = V8TestObject::toImpl(holder);
1084 DOMWindow* cppValue = toDOMWindow(v8Value, info.GetIsolate()); 1084 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value);
1085 impl->setWindowAttribute(WTF::getPtr(cppValue)); 1085 impl->setWindowAttribute(WTF::getPtr(cppValue));
1086 } 1086 }
1087 1087
1088 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1088 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1089 { 1089 {
1090 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1090 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1091 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); 1091 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info);
1092 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1092 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1093 } 1093 }
1094 1094
(...skipping 7308 matching lines...) Expand 10 before | Expand all | Expand 10 after
8403 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); 8403 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value());
8404 } 8404 }
8405 8405
8406 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu e>& info) 8406 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8407 { 8407 {
8408 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate()); 8408 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate());
8409 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8409 TestObject* impl = V8TestObject::toImpl(info.Holder());
8410 DOMWindow* arg1; 8410 DOMWindow* arg1;
8411 double arg2; 8411 double arg2;
8412 { 8412 {
8413 arg1 = toDOMWindow(info[0], info.GetIsolate()); 8413 arg1 = toDOMWindow(info.GetIsolate(), info[0]);
8414 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], ex ceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); 8414 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], ex ceptionState), exceptionState, info, ScriptState::current(info.GetIsolate()));
8415 } 8415 }
8416 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); 8416 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
8417 } 8417 }
8418 8418
8419 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu e>& info) 8419 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8420 { 8420 {
8421 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate()); 8421 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate());
8422 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8422 TestObject* impl = V8TestObject::toImpl(info.Holder());
8423 Document* arg1; 8423 Document* arg1;
(...skipping 3117 matching lines...) Expand 10 before | Expand all | Expand 10 after
11541 return false; 11541 return false;
11542 11542
11543 ScriptState::Scope scope(scriptState); 11543 ScriptState::Scope scope(scriptState);
11544 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11544 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11545 11545
11546 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11546 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11547 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11547 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11548 } 11548 }
11549 11549
11550 } // namespace blink 11550 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestNode.cpp ('k') | Source/bindings/tests/results/core/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698