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 "V8TestNode.h" | 8 #include "V8TestNode.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal
::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo
AllScripts, V8DOMConfiguration::OnInstance}, | 164 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal
::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo
AllScripts, V8DOMConfiguration::OnInstance}, |
165 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo
deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 165 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo
deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
166 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te
stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 166 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te
stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
167 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback
, TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 167 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback
, TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
168 }; | 168 }; |
169 | 169 |
170 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 170 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
171 { | 171 { |
172 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 172 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
173 if (!info.IsConstructCall()) { | 173 if (!info.IsConstructCall()) { |
174 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestNode"), info.GetIsolate()); | 174 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestNode")); |
175 return; | 175 return; |
176 } | 176 } |
177 | 177 |
178 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 178 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
179 v8SetReturnValue(info, info.Holder()); | 179 v8SetReturnValue(info, info.Holder()); |
180 return; | 180 return; |
181 } | 181 } |
182 | 182 |
183 TestNodeV8Internal::constructor(info); | 183 TestNodeV8Internal::constructor(info); |
184 } | 184 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 #endif | 243 #endif |
244 } | 244 } |
245 | 245 |
246 template<> | 246 template<> |
247 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) | 247 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) |
248 { | 248 { |
249 return toV8(impl, creationContext, isolate); | 249 return toV8(impl, creationContext, isolate); |
250 } | 250 } |
251 | 251 |
252 } // namespace blink | 252 } // namespace blink |
OLD | NEW |