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. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 void V8TestNode::hrefByteStringAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) { | 182 void V8TestNode::hrefByteStringAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) { |
183 TestNodeV8Internal::hrefByteStringAttributeGetter(info); | 183 TestNodeV8Internal::hrefByteStringAttributeGetter(info); |
184 } | 184 } |
185 | 185 |
186 void V8TestNode::hrefByteStringAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) { | 186 void V8TestNode::hrefByteStringAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) { |
187 v8::Local<v8::Value> v8Value = info[0]; | 187 v8::Local<v8::Value> v8Value = info[0]; |
188 | 188 |
189 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info); | 189 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info); |
190 } | 190 } |
191 | 191 |
192 const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = { | 192 static const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = { |
193 {"href", V8TestNode::hrefAttributeGetterCallback, V8TestNode::hrefAttributeS
etterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r}, | 193 {"href", V8TestNode::hrefAttributeGetterCallback, V8TestNode::hrefAttributeS
etterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurat
ion::AllWorlds}, |
194 {"hrefThrows", V8TestNode::hrefThrowsAttributeGetterCallback, V8TestNode::hr
efThrowsAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigu
ration::CheckHolder}, | 194 {"hrefThrows", V8TestNode::hrefThrowsAttributeGetterCallback, V8TestNode::hr
efThrowsAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde
r, V8DOMConfiguration::AllWorlds}, |
195 {"hrefCallWith", V8TestNode::hrefCallWithAttributeGetterCallback, V8TestNode
::hrefCallWithAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder}, | 195 {"hrefCallWith", V8TestNode::hrefCallWithAttributeGetterCallback, V8TestNode
::hrefCallWithAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder, V8DOMConfiguration::AllWorlds}, |
196 {"hrefByteString", V8TestNode::hrefByteStringAttributeGetterCallback, V8Test
Node::hrefByteStringAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, | 196 {"hrefByteString", V8TestNode::hrefByteStringAttributeGetterCallback, V8Test
Node::hrefByteStringAttributeSetterCallback, nullptr, nullptr, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder, V8DOMConfiguration::AllWorlds}, |
197 }; | 197 }; |
198 | 198 |
199 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) { | 199 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
200 if (!info.IsConstructCall()) { | 200 if (!info.IsConstructCall()) { |
201 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestNode")); | 201 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestNode")); |
202 return; | 202 return; |
203 } | 203 } |
204 | 204 |
205 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { | 205 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { |
206 v8SetReturnValue(info, info.Holder()); | 206 v8SetReturnValue(info, info.Holder()); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 TestNode* V8TestNode::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Va
lue> value) { | 242 TestNode* V8TestNode::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Va
lue> value) { |
243 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 243 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
244 } | 244 } |
245 | 245 |
246 TestNode* NativeValueTraits<TestNode>::nativeValue(v8::Isolate* isolate, v8::Loc
al<v8::Value> value, ExceptionState& exceptionState) { | 246 TestNode* NativeValueTraits<TestNode>::nativeValue(v8::Isolate* isolate, v8::Loc
al<v8::Value> value, ExceptionState& exceptionState) { |
247 return V8TestNode::toImplWithTypeCheck(isolate, value); | 247 return V8TestNode::toImplWithTypeCheck(isolate, value); |
248 } | 248 } |
249 | 249 |
250 } // namespace blink | 250 } // namespace blink |
OLD | NEW |