| 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 "V8TestInterfaceEventTarget.h" | 8 #include "V8TestInterfaceEventTarget.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return; | 57 return; |
| 58 } | 58 } |
| 59 | 59 |
| 60 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 60 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
| 61 v8SetReturnValue(info, info.Holder()); | 61 v8SetReturnValue(info, info.Holder()); |
| 62 return; | 62 return; |
| 63 } | 63 } |
| 64 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 64 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
| 65 RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget
::createForJSConstructor(document); | 65 RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget
::createForJSConstructor(document); |
| 66 v8::Handle<v8::Object> wrapper = info.Holder(); | 66 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 67 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventTarget>(impl.re
lease(), &V8TestInterfaceEventTargetConstructor::wrapperTypeInfo, wrapper, info.
GetIsolate()); | 67 impl.get()->associateWithWrapper(&V8TestInterfaceEventTargetConstructor::wra
pperTypeInfo, wrapper, info.GetIsolate()); |
| 68 v8SetReturnValue(info, wrapper); | 68 v8SetReturnValue(info, wrapper); |
| 69 } | 69 } |
| 70 | 70 |
| 71 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempl
ate(v8::Isolate* isolate) | 71 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempl
ate(v8::Isolate* isolate) |
| 72 { | 72 { |
| 73 static int domTemplateKey; // This address is used for a key to look up the
dom template. | 73 static int domTemplateKey; // This address is used for a key to look up the
dom template. |
| 74 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 74 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 75 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); | 75 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); |
| 76 if (!result.IsEmpty()) | 76 if (!result.IsEmpty()) |
| 77 return result; | 77 return result; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 #endif | 153 #endif |
| 154 } | 154 } |
| 155 | 155 |
| 156 template<> | 156 template<> |
| 157 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 157 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 158 { | 158 { |
| 159 return toV8(impl, creationContext, isolate); | 159 return toV8(impl, creationContext, isolate); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |