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 "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 { | 1715 { |
1716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1716 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1717 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); | 1717 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); |
1718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1718 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1719 } | 1719 } |
1720 | 1720 |
1721 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1721 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1722 { | 1722 { |
1723 v8::Handle<v8::Object> holder = info.Holder(); | 1723 v8::Handle<v8::Object> holder = info.Holder(); |
1724 TestObject* impl = V8TestObject::toImpl(holder); | 1724 TestObject* impl = V8TestObject::toImpl(holder); |
1725 moveEventListenerToNewWrapper(holder, impl->eventHandlerAttribute(), v8Value
, V8TestObject::eventListenerCacheIndex, info.GetIsolate()); | 1725 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA
ttribute(), v8Value, V8TestObject::eventListenerCacheIndex); |
1726 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS
tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); | 1726 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS
tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); |
1727 } | 1727 } |
1728 | 1728 |
1729 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1729 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1730 { | 1730 { |
1731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1732 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); | 1732 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); |
1733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1734 } | 1734 } |
1735 | 1735 |
(...skipping 9427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11163 return false; | 11163 return false; |
11164 | 11164 |
11165 ScriptState::Scope scope(scriptState); | 11165 ScriptState::Scope scope(scriptState); |
11166 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11166 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11167 | 11167 |
11168 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11168 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11169 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11169 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11170 } | 11170 } |
11171 | 11171 |
11172 } // namespace blink | 11172 } // namespace blink |
OLD | NEW |