| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } // namespace TestInterfaceEventInitConstructorV8Internal | 103 } // namespace TestInterfaceEventInitConstructorV8Internal |
| 104 | 104 |
| 105 void V8TestInterfaceEventInitConstructor::readonlyStringAttributeAttributeGetter
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) { | 105 void V8TestInterfaceEventInitConstructor::readonlyStringAttributeAttributeGetter
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 106 TestInterfaceEventInitConstructorV8Internal::readonlyStringAttributeAttributeG
etter(info); | 106 TestInterfaceEventInitConstructorV8Internal::readonlyStringAttributeAttributeG
etter(info); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void V8TestInterfaceEventInitConstructor::isTrustedAttributeGetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) { | 109 void V8TestInterfaceEventInitConstructor::isTrustedAttributeGetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) { |
| 110 TestInterfaceEventInitConstructorV8Internal::isTrustedAttributeGetter(info); | 110 TestInterfaceEventInitConstructorV8Internal::isTrustedAttributeGetter(info); |
| 111 } | 111 } |
| 112 | 112 |
| 113 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitConstruc
torAccessors[] = { | 113 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitC
onstructorAccessors[] = { |
| 114 {"readonlyStringAttribute", V8TestInterfaceEventInitConstructor::readonlyStr
ingAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr
, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnProtot
ype, V8DOMConfiguration::CheckHolder}, | 114 {"readonlyStringAttribute", V8TestInterfaceEventInitConstructor::readonlyStr
ingAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::
PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder, V8DOMConfiguration::AllWorlds}, |
| 115 {"isTrusted", V8TestInterfaceEventInitConstructor::isTrustedAttributeGetterC
allback, nullptr, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAt
tribute>(v8::DontDelete | v8::ReadOnly), V8DOMConfiguration::OnInstance, V8DOMCo
nfiguration::CheckHolder}, | 115 {"isTrusted", V8TestInterfaceEventInitConstructor::isTrustedAttributeGetterC
allback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::DontD
elete | v8::ReadOnly), V8DOMConfiguration::OnInstance, V8DOMConfiguration::Check
Holder, V8DOMConfiguration::AllWorlds}, |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 void V8TestInterfaceEventInitConstructor::constructorCallback(const v8::Function
CallbackInfo<v8::Value>& info) { | 118 void V8TestInterfaceEventInitConstructor::constructorCallback(const v8::Function
CallbackInfo<v8::Value>& info) { |
| 119 if (!info.IsConstructCall()) { | 119 if (!info.IsConstructCall()) { |
| 120 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterfaceEventInitConstructor")); | 120 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestInterfaceEventInitConstructor")); |
| 121 return; | 121 return; |
| 122 } | 122 } |
| 123 | 123 |
| 124 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { | 124 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { |
| 125 v8SetReturnValue(info, info.Holder()); | 125 v8SetReturnValue(info, info.Holder()); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 TestInterfaceEventInitConstructor* V8TestInterfaceEventInitConstructor::toImplWi
thTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { | 161 TestInterfaceEventInitConstructor* V8TestInterfaceEventInitConstructor::toImplWi
thTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { |
| 162 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 162 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 163 } | 163 } |
| 164 | 164 |
| 165 TestInterfaceEventInitConstructor* NativeValueTraits<TestInterfaceEventInitConst
ructor>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, Exception
State& exceptionState) { | 165 TestInterfaceEventInitConstructor* NativeValueTraits<TestInterfaceEventInitConst
ructor>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, Exception
State& exceptionState) { |
| 166 return V8TestInterfaceEventInitConstructor::toImplWithTypeCheck(isolate, value
); | 166 return V8TestInterfaceEventInitConstructor::toImplWithTypeCheck(isolate, value
); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| OLD | NEW |