| 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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 75 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 76 TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGet
ter(info); | 76 TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGet
ter(info); |
| 77 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 77 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 78 } | 78 } |
| 79 | 79 |
| 80 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 80 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 81 { | 81 { |
| 82 v8::Local<v8::Object> holder = info.Holder(); | 82 v8::Local<v8::Object> holder = info.Holder(); |
| 83 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); | 83 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
| 84 EventListener* cppValue(impl->eventHandlerAttribute()); | 84 EventListener* cppValue(impl->eventHandlerAttribute()); |
| 85 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe
ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v
8::Value>(v8::Null(info.GetIsolate()))); | 85 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen
er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8:
:Value>(v8::Null(info.GetIsolate()))); |
| 86 } | 86 } |
| 87 | 87 |
| 88 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 88 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 89 { | 89 { |
| 90 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 91 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info); | 91 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info); |
| 92 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 92 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 93 } | 93 } |
| 94 | 94 |
| 95 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 95 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 } | 338 } |
| 339 | 339 |
| 340 void V8TestInterfaceNode::derefObject(ScriptWrappable* scriptWrappable) | 340 void V8TestInterfaceNode::derefObject(ScriptWrappable* scriptWrappable) |
| 341 { | 341 { |
| 342 #if !ENABLE(OILPAN) | 342 #if !ENABLE(OILPAN) |
| 343 scriptWrappable->toImpl<TestInterfaceNode>()->deref(); | 343 scriptWrappable->toImpl<TestInterfaceNode>()->deref(); |
| 344 #endif | 344 #endif |
| 345 } | 345 } |
| 346 | 346 |
| 347 } // namespace blink | 347 } // namespace blink |
| OLD | NEW |