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

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

Issue 1109323002: [bindings] Support passing of ScriptState for namedPropertyQuery form of getter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ScriptState changes Created 5 years, 7 months 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
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12110 matching lines...) Expand 10 before | Expand all | Expand 10 after
12121 TestObjectV8Internal::namedPropertySetter(name, v8Value, info); 12121 TestObjectV8Internal::namedPropertySetter(name, v8Value, info);
12122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 12122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
12123 } 12123 }
12124 12124
12125 static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb ackInfo<v8::Integer>& info) 12125 static void namedPropertyQuery(v8::Local<v8::Name> name, const v8::PropertyCallb ackInfo<v8::Integer>& info)
12126 { 12126 {
12127 TestObject* impl = V8TestObject::toImpl(info.Holder()); 12127 TestObject* impl = V8TestObject::toImpl(info.Holder());
12128 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>()); 12128 AtomicString propertyName = toCoreAtomicString(name.As<v8::String>());
12129 v8::String::Utf8Value namedProperty(name); 12129 v8::String::Utf8Value namedProperty(name);
12130 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestObject", info.Holder(), info.GetIsolate()); 12130 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestObject", info.Holder(), info.GetIsolate());
12131 bool result = impl->namedPropertyQuery(propertyName, exceptionState); 12131 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
12132 bool result = impl->namedPropertyQuery(scriptState, propertyName, exceptionS tate);
12132 if (exceptionState.throwIfNeeded()) 12133 if (exceptionState.throwIfNeeded())
12133 return; 12134 return;
12134 if (!result) 12135 if (!result)
12135 return; 12136 return;
12136 v8SetReturnValueInt(info, v8::None); 12137 v8SetReturnValueInt(info, v8::None);
12137 } 12138 }
12138 12139
12139 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope rtyCallbackInfo<v8::Integer>& info) 12140 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope rtyCallbackInfo<v8::Integer>& info)
12140 { 12141 {
12141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 12142 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
13292 return false; 13293 return false;
13293 13294
13294 ScriptState::Scope scope(scriptState); 13295 ScriptState::Scope scope(scriptState);
13295 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13296 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13296 13297
13297 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13298 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13298 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13299 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13299 } 13300 }
13300 13301
13301 } // namespace blink 13302 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698