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/tests/v8/V8TestInterfaceEmpty.h" | 10 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 { | 87 { |
88 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 88 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
89 TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGet
ter(info); | 89 TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGet
ter(info); |
90 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
91 } | 91 } |
92 | 92 |
93 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 93 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
94 { | 94 { |
95 v8::Handle<v8::Object> holder = info.Holder(); | 95 v8::Handle<v8::Object> holder = info.Holder(); |
96 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); | 96 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); |
97 EventListener* v8Value = impl->eventHandlerAttribute(); | 97 EventListener* cppValue(impl->eventHandlerAttribute()); |
98 v8SetReturnValue(info, v8Value ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(v8Value)->getListenerObject(impl->executionContext())) : v8::Handle<v8:
:Value>(v8::Null(info.GetIsolate()))); | 98 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe
ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v
8::Value>(v8::Null(info.GetIsolate()))); |
99 } | 99 } |
100 | 100 |
101 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 101 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
102 { | 102 { |
103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
104 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info); | 104 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info); |
105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
106 } | 106 } |
107 | 107 |
108 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 108 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 #endif // !ENABLE(OILPAN) | 385 #endif // !ENABLE(OILPAN) |
386 } | 386 } |
387 | 387 |
388 template<> | 388 template<> |
389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
390 { | 390 { |
391 return toV8(impl, creationContext, isolate); | 391 return toV8(impl, creationContext, isolate); |
392 } | 392 } |
393 | 393 |
394 } // namespace WebCore | 394 } // namespace WebCore |
OLD | NEW |