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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 { | 174 { |
175 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create(); | 175 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create(); |
176 v8::Local<v8::Object> wrapper = info.Holder(); | 176 v8::Local<v8::Object> wrapper = info.Holder(); |
177 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo,
wrapper); | 177 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo,
wrapper); |
178 v8SetReturnValue(info, wrapper); | 178 v8SetReturnValue(info, wrapper); |
179 } | 179 } |
180 | 180 |
181 } // namespace TestNodeV8Internal | 181 } // namespace TestNodeV8Internal |
182 | 182 |
183 static const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = { | 183 static const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = { |
184 {"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::OnPrototype, V8DOMConfiguration::CheckHolder}, | 184 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal
::hrefAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAtt
ribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::
OnPrototype, V8DOMConfiguration::CheckHolder}, |
185 {"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::OnPrototype, V8DOMConfiguratio
n::CheckHolder}, | 185 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo
deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_ca
st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
186 {"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::OnPrototype, V8DOMConfig
uration::CheckHolder}, | 186 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te
stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
187 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback
, TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOM
Configuration::CheckHolder}, | 187 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback
, TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, v8::DEFAUL
T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
188 }; | 188 }; |
189 | 189 |
190 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 190 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
191 { | 191 { |
192 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 192 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
193 if (!info.IsConstructCall()) { | 193 if (!info.IsConstructCall()) { |
194 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestNode")); | 194 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestNode")); |
195 return; | 195 return; |
196 } | 196 } |
197 | 197 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 } | 251 } |
252 | 252 |
253 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) | 253 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) |
254 { | 254 { |
255 #if !ENABLE(OILPAN) | 255 #if !ENABLE(OILPAN) |
256 scriptWrappable->toImpl<TestNode>()->deref(); | 256 scriptWrappable->toImpl<TestNode>()->deref(); |
257 #endif | 257 #endif |
258 } | 258 } |
259 | 259 |
260 } // namespace blink | 260 } // namespace blink |
OLD | NEW |