| 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" |
| 11 #include "bindings/core/v8/V8AbstractEventListener.h" | 11 #include "bindings/core/v8/V8AbstractEventListener.h" |
| 12 #include "bindings/core/v8/V8DOMConfiguration.h" | 12 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 13 #include "bindings/core/v8/V8EventListenerList.h" | 13 #include "bindings/core/v8/V8EventListenerList.h" |
| 14 #include "bindings/core/v8/V8HiddenValue.h" | 14 #include "bindings/core/v8/V8HiddenValue.h" |
| 15 #include "bindings/core/v8/V8ObjectConstructor.h" | 15 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 16 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
| 17 #include "core/HTMLNames.h" | 17 #include "core/HTMLNames.h" |
| 18 #include "core/dom/ContextFeatures.h" | 18 #include "core/dom/ContextFeatures.h" |
| 19 #include "core/dom/Document.h" | 19 #include "core/dom/Document.h" |
| 20 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 20 #include "core/dom/custom/CustomElementProcessingStack.h" |
| 21 #include "platform/RuntimeEnabledFeatures.h" | 21 #include "platform/RuntimeEnabledFeatures.h" |
| 22 #include "platform/TraceEvent.h" | 22 #include "platform/TraceEvent.h" |
| 23 #include "wtf/GetPtr.h" | 23 #include "wtf/GetPtr.h" |
| 24 #include "wtf/RefPtr.h" | 24 #include "wtf/RefPtr.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 27 | 27 |
| 28 static void initializeScriptWrappableForInterface(TestInterfaceNode* impl) | 28 static void initializeScriptWrappableForInterface(TestInterfaceNode* impl) |
| 29 { | 29 { |
| 30 impl->setTypeInfo(&V8TestInterfaceNode::wrapperTypeInfo); | 30 impl->setTypeInfo(&V8TestInterfaceNode::wrapperTypeInfo); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 { | 163 { |
| 164 v8::Handle<v8::Object> holder = info.Holder(); | 164 v8::Handle<v8::Object> holder = info.Holder(); |
| 165 Element* impl = V8Element::toNative(holder); | 165 Element* impl = V8Element::toNative(holder); |
| 166 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 166 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 167 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); | 167 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); |
| 168 } | 168 } |
| 169 | 169 |
| 170 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 170 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 171 { | 171 { |
| 172 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 172 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 173 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 173 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 174 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); | 174 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); |
| 175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 176 } | 176 } |
| 177 | 177 |
| 178 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 178 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 179 { | 179 { |
| 180 v8::Handle<v8::Object> holder = info.Holder(); | 180 v8::Handle<v8::Object> holder = info.Holder(); |
| 181 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); | 181 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); |
| 182 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); | 182 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); |
| 183 } | 183 } |
| 184 | 184 |
| 185 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 185 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 186 { | 186 { |
| 187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 188 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); | 188 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); |
| 189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 190 } | 190 } |
| 191 | 191 |
| 192 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 192 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
| 193 { | 193 { |
| 194 v8::Handle<v8::Object> holder = info.Holder(); | 194 v8::Handle<v8::Object> holder = info.Holder(); |
| 195 Element* impl = V8Element::toNative(holder); | 195 Element* impl = V8Element::toNative(holder); |
| 196 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 196 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 197 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); | 197 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); |
| 198 } | 198 } |
| 199 | 199 |
| 200 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 200 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 201 { | 201 { |
| 202 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 202 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 203 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 203 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 204 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); | 204 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); |
| 205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 206 } | 206 } |
| 207 | 207 |
| 208 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 208 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 209 { | 209 { |
| 210 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); | 210 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); |
| 211 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyMethod()), im
pl); | 211 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyMethod()), im
pl); |
| 212 } | 212 } |
| 213 | 213 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 #endif | 399 #endif |
| 400 } | 400 } |
| 401 | 401 |
| 402 template<> | 402 template<> |
| 403 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 403 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
| 404 { | 404 { |
| 405 return toV8(impl, creationContext, isolate); | 405 return toV8(impl, creationContext, isolate); |
| 406 } | 406 } |
| 407 | 407 |
| 408 } // namespace blink | 408 } // namespace blink |
| OLD | NEW |