| 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* object) | 28 static void initializeScriptWrappableForInterface(TestInterfaceNode* object) |
| 29 { | 29 { |
| 30 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 30 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 { | 165 { |
| 166 v8::Handle<v8::Object> holder = info.Holder(); | 166 v8::Handle<v8::Object> holder = info.Holder(); |
| 167 Element* impl = V8Element::toNative(holder); | 167 Element* impl = V8Element::toNative(holder); |
| 168 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 168 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 169 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); | 169 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); |
| 170 } | 170 } |
| 171 | 171 |
| 172 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 172 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 173 { | 173 { |
| 174 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 174 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 175 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 175 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 176 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); | 176 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); |
| 177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 178 } | 178 } |
| 179 | 179 |
| 180 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 180 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 181 { | 181 { |
| 182 v8::Handle<v8::Object> holder = info.Holder(); | 182 v8::Handle<v8::Object> holder = info.Holder(); |
| 183 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); | 183 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); |
| 184 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); | 184 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); |
| 185 } | 185 } |
| 186 | 186 |
| 187 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 187 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 188 { | 188 { |
| 189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 190 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); | 190 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); |
| 191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 192 } | 192 } |
| 193 | 193 |
| 194 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 194 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
| 195 { | 195 { |
| 196 v8::Handle<v8::Object> holder = info.Holder(); | 196 v8::Handle<v8::Object> holder = info.Holder(); |
| 197 Element* impl = V8Element::toNative(holder); | 197 Element* impl = V8Element::toNative(holder); |
| 198 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); | 198 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 199 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); | 199 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); |
| 200 } | 200 } |
| 201 | 201 |
| 202 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 202 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 203 { | 203 { |
| 204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 205 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 205 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 206 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); | 206 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); |
| 207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 208 } | 208 } |
| 209 | 209 |
| 210 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 210 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 211 { | 211 { |
| 212 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); | 212 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); |
| 213 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyMethod()), im
pl); | 213 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyMethod()), im
pl); |
| 214 } | 214 } |
| 215 | 215 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 #endif | 403 #endif |
| 404 } | 404 } |
| 405 | 405 |
| 406 template<> | 406 template<> |
| 407 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 407 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
| 408 { | 408 { |
| 409 return toV8(impl, creationContext, isolate); | 409 return toV8(impl, creationContext, isolate); |
| 410 } | 410 } |
| 411 | 411 |
| 412 } // namespace blink | 412 } // namespace blink |
| OLD | NEW |