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 "V8SVGTestInterface.h" | 8 #include "V8SVGTestInterface.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 static const V8DOMConfiguration::AttributeConfiguration V8SVGTestInterfaceAttrib
utes[] = { | 67 static const V8DOMConfiguration::AttributeConfiguration V8SVGTestInterfaceAttrib
utes[] = { |
68 {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInt
erfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 68 {"type", SVGTestInterfaceV8Internal::typeAttributeGetterCallback, SVGTestInt
erfaceV8Internal::typeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
69 }; | 69 }; |
70 | 70 |
71 static void installV8SVGTestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> f
unctionTemplate, v8::Isolate* isolate) | 71 static void installV8SVGTestInterfaceTemplate(v8::Handle<v8::FunctionTemplate> f
unctionTemplate, v8::Isolate* isolate) |
72 { | 72 { |
73 functionTemplate->ReadOnlyPrototype(); | 73 functionTemplate->ReadOnlyPrototype(); |
74 | 74 |
75 v8::Local<v8::Signature> defaultSignature; | 75 v8::Local<v8::Signature> defaultSignature; |
76 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "SVGTestInterface", v8::Local<v8::FunctionTemplate>(), V8SVGTestInterface::
internalFieldCount, | 76 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "SVGTestInterface", v8::Local<v8::FunctionTemplate>(), V8SVGTestIn
terface::internalFieldCount, |
77 V8SVGTestInterfaceAttributes, WTF_ARRAY_LENGTH(V8SVGTestInterfaceAttribu
tes), | 77 V8SVGTestInterfaceAttributes, WTF_ARRAY_LENGTH(V8SVGTestInterfaceAttribu
tes), |
78 0, 0, | 78 0, 0, |
79 0, 0, | 79 0, 0); |
80 isolate); | |
81 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 80 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
82 ALLOW_UNUSED_LOCAL(instanceTemplate); | 81 ALLOW_UNUSED_LOCAL(instanceTemplate); |
83 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 82 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
84 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 83 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
85 | 84 |
86 // Custom toString template | 85 // Custom toString template |
87 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 86 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
88 } | 87 } |
89 | 88 |
90 v8::Handle<v8::FunctionTemplate> V8SVGTestInterface::domTemplate(v8::Isolate* is
olate) | 89 v8::Handle<v8::FunctionTemplate> V8SVGTestInterface::domTemplate(v8::Isolate* is
olate) |
(...skipping 26 matching lines...) Expand all Loading... |
117 scriptWrappable->toImpl<SVGTestInterface>()->deref(); | 116 scriptWrappable->toImpl<SVGTestInterface>()->deref(); |
118 } | 117 } |
119 | 118 |
120 template<> | 119 template<> |
121 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 120 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
122 { | 121 { |
123 return toV8(impl, creationContext, isolate); | 122 return toV8(impl, creationContext, isolate); |
124 } | 123 } |
125 | 124 |
126 } // namespace blink | 125 } // namespace blink |
OLD | NEW |