| 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 "V8TestInterfaceEventTarget.h" | 7 #include "V8TestInterfaceEventTarget.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/GeneratedCodeHelper.h" | 10 #include "bindings/core/v8/GeneratedCodeHelper.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 { | 65 { |
| 66 if (!info.IsConstructCall()) { | 66 if (!info.IsConstructCall()) { |
| 67 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Name")); | 67 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("Name")); |
| 68 return; | 68 return; |
| 69 } | 69 } |
| 70 | 70 |
| 71 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 71 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
| 72 v8SetReturnValue(info, info.Holder()); | 72 v8SetReturnValue(info, info.Holder()); |
| 73 return; | 73 return; |
| 74 } | 74 } |
| 75 |
| 75 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 76 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
| 76 TestInterfaceEventTarget* impl = TestInterfaceEventTarget::createForJSConstr
uctor(document); | 77 TestInterfaceEventTarget* impl = TestInterfaceEventTarget::createForJSConstr
uctor(document); |
| 77 v8::Local<v8::Object> wrapper = info.Holder(); | 78 v8::Local<v8::Object> wrapper = info.Holder(); |
| 78 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEven
tTargetConstructor::wrapperTypeInfo, wrapper); | 79 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEven
tTargetConstructor::wrapperTypeInfo, wrapper); |
| 79 v8SetReturnValue(info, wrapper); | 80 v8SetReturnValue(info, wrapper); |
| 80 } | 81 } |
| 81 | 82 |
| 82 v8::Local<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempla
te(v8::Isolate* isolate, const DOMWrapperWorld& world) | 83 v8::Local<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempla
te(v8::Isolate* isolate, const DOMWrapperWorld& world) |
| 83 { | 84 { |
| 84 static int domTemplateKey; // This address is used for a key to look up the
dom template. | 85 static int domTemplateKey; // This address is used for a key to look up the
dom template. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 { | 124 { |
| 124 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 125 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 125 } | 126 } |
| 126 | 127 |
| 127 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Local<v8::Value> value) | 128 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Local<v8::Value> value) |
| 128 { | 129 { |
| 129 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 130 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
| 130 } | 131 } |
| 131 | 132 |
| 132 } // namespace blink | 133 } // namespace blink |
| OLD | NEW |