| 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 "V8TestInterfaceNode.h" | 7 #include "V8TestInterfaceNode.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/V8AbstractEventListener.h" | 10 #include "bindings/core/v8/V8AbstractEventListener.h" |
| 11 #include "bindings/core/v8/V8DOMConfiguration.h" | 11 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 12 #include "bindings/core/v8/V8EventListenerList.h" | 12 #include "bindings/core/v8/V8EventListenerList.h" |
| 13 #include "bindings/core/v8/V8ObjectConstructor.h" | 13 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 14 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 14 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
| 15 #include "core/HTMLNames.h" | 15 #include "core/HTMLNames.h" |
| 16 #include "core/dom/Document.h" | 16 #include "core/dom/Document.h" |
| 17 #include "core/dom/custom/CustomElementProcessingStack.h" | 17 #include "core/dom/custom/V0CustomElementProcessingStack.h" |
| 18 #include "wtf/GetPtr.h" | 18 #include "wtf/GetPtr.h" |
| 19 #include "wtf/RefPtr.h" | 19 #include "wtf/RefPtr.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 23 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 24 // and does not depend on another global objects. | 24 // and does not depend on another global objects. |
| 25 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 25 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 26 #pragma clang diagnostic push | 26 #pragma clang diagnostic push |
| 27 #pragma clang diagnostic ignored "-Wglobal-constructors" | 27 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 Element* impl = V8Element::toImpl(holder); | 174 Element* impl = V8Element::toImpl(holder); |
| 175 V8StringResource<> cppValue = v8Value; | 175 V8StringResource<> cppValue = v8Value; |
| 176 if (!cppValue.prepare()) | 176 if (!cppValue.prepare()) |
| 177 return; | 177 return; |
| 178 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); | 178 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); |
| 179 } | 179 } |
| 180 | 180 |
| 181 static void reflectStringAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 181 static void reflectStringAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 182 { | 182 { |
| 183 v8::Local<v8::Value> v8Value = info[0]; | 183 v8::Local<v8::Value> v8Value = info[0]; |
| 184 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 184 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 185 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); | 185 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value,
info); |
| 186 } | 186 } |
| 187 | 187 |
| 188 static void reflectUrlStringAttributeAttributeGetter(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 188 static void reflectUrlStringAttributeAttributeGetter(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 189 { | 189 { |
| 190 v8::Local<v8::Object> holder = info.Holder(); | 190 v8::Local<v8::Object> holder = info.Holder(); |
| 191 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); | 191 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); |
| 192 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); | 192 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri
ngattributeAttr), info.GetIsolate()); |
| 193 } | 193 } |
| 194 | 194 |
| 195 static void reflectUrlStringAttributeAttributeGetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 195 static void reflectUrlStringAttributeAttributeGetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 196 { | 196 { |
| 197 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); | 197 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); |
| 198 } | 198 } |
| 199 | 199 |
| 200 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::FunctionCallbackInfo<v8::Value>& info) | 200 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::FunctionCallbackInfo<v8::Value>& info) |
| 201 { | 201 { |
| 202 v8::Local<v8::Object> holder = info.Holder(); | 202 v8::Local<v8::Object> holder = info.Holder(); |
| 203 Element* impl = V8Element::toImpl(holder); | 203 Element* impl = V8Element::toImpl(holder); |
| 204 V8StringResource<> cppValue = v8Value; | 204 V8StringResource<> cppValue = v8Value; |
| 205 if (!cppValue.prepare()) | 205 if (!cppValue.prepare()) |
| 206 return; | 206 return; |
| 207 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); | 207 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); |
| 208 } | 208 } |
| 209 | 209 |
| 210 static void reflectUrlStringAttributeAttributeSetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 210 static void reflectUrlStringAttributeAttributeSetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 211 { | 211 { |
| 212 v8::Local<v8::Value> v8Value = info[0]; | 212 v8::Local<v8::Value> v8Value = info[0]; |
| 213 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 213 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 214 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); | 214 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu
e, info); |
| 215 } | 215 } |
| 216 | 216 |
| 217 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 217 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 218 { | 218 { |
| 219 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 219 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
| 220 v8SetReturnValueFast(info, impl->testInterfaceEmptyMethod(), impl); | 220 v8SetReturnValueFast(info, impl->testInterfaceEmptyMethod(), impl); |
| 221 } | 221 } |
| 222 | 222 |
| 223 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 223 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 { | 350 { |
| 351 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 351 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 352 } | 352 } |
| 353 | 353 |
| 354 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) | 354 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) |
| 355 { | 355 { |
| 356 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 356 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
| 357 } | 357 } |
| 358 | 358 |
| 359 } // namespace blink | 359 } // namespace blink |
| OLD | NEW |