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 "V8SVGTestInterface.h" | 7 #include "V8SVGTestInterface.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/V8DOMConfiguration.h" | 10 #include "bindings/core/v8/V8DOMConfiguration.h" |
11 #include "bindings/core/v8/V8ObjectConstructor.h" | 11 #include "bindings/core/v8/V8ObjectConstructor.h" |
12 #include "core/SVGNames.h" | 12 #include "core/SVGNames.h" |
13 #include "core/dom/Document.h" | 13 #include "core/dom/Document.h" |
14 #include "core/dom/custom/CustomElementProcessingStack.h" | 14 #include "core/dom/custom/V0CustomElementProcessingStack.h" |
15 #include "wtf/GetPtr.h" | 15 #include "wtf/GetPtr.h" |
16 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 20 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
21 // and does not depend on another global objects. | 21 // and does not depend on another global objects. |
22 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 22 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
23 #pragma clang diagnostic push | 23 #pragma clang diagnostic push |
24 #pragma clang diagnostic ignored "-Wglobal-constructors" | 24 #pragma clang diagnostic ignored "-Wglobal-constructors" |
(...skipping 22 matching lines...) Expand all Loading... |
47 SVGTestInterfaceV8Internal::typeAttributeGetter(info); | 47 SVGTestInterfaceV8Internal::typeAttributeGetter(info); |
48 } | 48 } |
49 | 49 |
50 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function
CallbackInfo<v8::Value>& info) | 50 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function
CallbackInfo<v8::Value>& info) |
51 { | 51 { |
52 v8::Local<v8::Object> holder = info.Holder(); | 52 v8::Local<v8::Object> holder = info.Holder(); |
53 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); | 53 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); |
54 V8StringResource<> cppValue = v8Value; | 54 V8StringResource<> cppValue = v8Value; |
55 if (!cppValue.prepare()) | 55 if (!cppValue.prepare()) |
56 return; | 56 return; |
57 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 57 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
58 impl->setAttribute(SVGNames::typeAttr, cppValue); | 58 impl->setAttribute(SVGNames::typeAttr, cppValue); |
59 } | 59 } |
60 | 60 |
61 static void typeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 61 static void typeAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
62 { | 62 { |
63 v8::Local<v8::Value> v8Value = info[0]; | 63 v8::Local<v8::Value> v8Value = info[0]; |
64 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 64 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
65 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info); | 65 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info); |
66 } | 66 } |
67 | 67 |
68 } // namespace SVGTestInterfaceV8Internal | 68 } // namespace SVGTestInterfaceV8Internal |
69 | 69 |
70 const V8DOMConfiguration::AccessorConfiguration V8SVGTestInterfaceAccessors[] =
{ | 70 const V8DOMConfiguration::AccessorConfiguration V8SVGTestInterfaceAccessors[] =
{ |
71 {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInt
erfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO
MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 71 {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInt
erfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO
MConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
72 }; | 72 }; |
73 | 73 |
74 static void installV8SVGTestInterfaceTemplate(v8::Isolate* isolate, const DOMWra
pperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) | 74 static void installV8SVGTestInterfaceTemplate(v8::Isolate* isolate, const DOMWra
pperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) |
(...skipping 24 matching lines...) Expand all Loading... |
99 { | 99 { |
100 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 100 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
101 } | 101 } |
102 | 102 |
103 SVGTestInterface* V8SVGTestInterface::toImplWithTypeCheck(v8::Isolate* isolate,
v8::Local<v8::Value> value) | 103 SVGTestInterface* V8SVGTestInterface::toImplWithTypeCheck(v8::Isolate* isolate,
v8::Local<v8::Value> value) |
104 { | 104 { |
105 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 105 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
106 } | 106 } |
107 | 107 |
108 } // namespace blink | 108 } // namespace blink |
OLD | NEW |