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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 102 } |
103 | 103 |
104 void V8TestException::readonlyStringAttributeAttributeGetterCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) { | 104 void V8TestException::readonlyStringAttributeAttributeGetterCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) { |
105 TestExceptionV8Internal::readonlyStringAttributeAttributeGetter(info); | 105 TestExceptionV8Internal::readonlyStringAttributeAttributeGetter(info); |
106 } | 106 } |
107 | 107 |
108 void V8TestException::toStringMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) { | 108 void V8TestException::toStringMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) { |
109 TestExceptionV8Internal::toStringMethod(info); | 109 TestExceptionV8Internal::toStringMethod(info); |
110 } | 110 } |
111 | 111 |
112 const V8DOMConfiguration::AccessorConfiguration V8TestExceptionAccessors[] = { | 112 static const V8DOMConfiguration::AccessorConfiguration V8TestExceptionAccessors[
] = { |
113 {"readonlyUnsignedShortAttribute", V8TestException::readonlyUnsignedShortAtt
ributeAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, stat
ic_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V
8DOMConfiguration::CheckHolder}, | 113 {"readonlyUnsignedShortAttribute", V8TestException::readonlyUnsignedShortAtt
ributeAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::Proper
tyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder, V8DOMConfiguration::AllWorlds}, |
114 {"readonlyStringAttribute", V8TestException::readonlyStringAttributeAttribut
eGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Pr
opertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfigurat
ion::CheckHolder}, | 114 {"readonlyStringAttribute", V8TestException::readonlyStringAttributeAttribut
eGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v
8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder,
V8DOMConfiguration::AllWorlds}, |
115 }; | 115 }; |
116 | 116 |
117 const V8DOMConfiguration::MethodConfiguration V8TestExceptionMethods[] = { | 117 static const V8DOMConfiguration::MethodConfiguration V8TestExceptionMethods[] =
{ |
118 {"toString", V8TestException::toStringMethodCallback, 0, static_cast<v8::Pro
pertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnPrototype, V8DOMConfigurati
on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWo
rlds}, | 118 {"toString", V8TestException::toStringMethodCallback, 0, static_cast<v8::Pro
pertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnPrototype, V8DOMConfigurati
on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWo
rlds}, |
119 }; | 119 }; |
120 | 120 |
121 void V8TestException::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) { | 121 void V8TestException::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) { |
122 if (!info.IsConstructCall()) { | 122 if (!info.IsConstructCall()) { |
123 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestException")); | 123 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const
ructorNotCallableAsFunction("TestException")); |
124 return; | 124 return; |
125 } | 125 } |
126 | 126 |
127 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { | 127 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti
ngObject) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 TestException* V8TestException::toImplWithTypeCheck(v8::Isolate* isolate, v8::Lo
cal<v8::Value> value) { | 169 TestException* V8TestException::toImplWithTypeCheck(v8::Isolate* isolate, v8::Lo
cal<v8::Value> value) { |
170 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 170 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
171 } | 171 } |
172 | 172 |
173 TestException* NativeValueTraits<TestException>::nativeValue(v8::Isolate* isolat
e, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 173 TestException* NativeValueTraits<TestException>::nativeValue(v8::Isolate* isolat
e, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
174 return V8TestException::toImplWithTypeCheck(isolate, value); | 174 return V8TestException::toImplWithTypeCheck(isolate, value); |
175 } | 175 } |
176 | 176 |
177 } // namespace blink | 177 } // namespace blink |
OLD | NEW |