| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate"); | 63 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate"); |
| 64 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceEventTargetConstr
uctorCallback); | 64 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceEventTargetConstr
uctorCallback); |
| 65 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate(); | 65 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate(); |
| 66 instanceTemplate->SetInternalFieldCount(V8TestInterfaceEventTarget::internal
FieldCount); | 66 instanceTemplate->SetInternalFieldCount(V8TestInterfaceEventTarget::internal
FieldCount); |
| 67 result->SetClassName(v8AtomicString(isolate, "TestInterfaceEventTarget")); | 67 result->SetClassName(v8AtomicString(isolate, "TestInterfaceEventTarget")); |
| 68 result->Inherit(V8TestInterfaceEventTarget::domTemplate(isolate)); | 68 result->Inherit(V8TestInterfaceEventTarget::domTemplate(isolate)); |
| 69 data->setDOMTemplate(&domTemplateKey, result); | 69 data->setDOMTemplate(&domTemplateKey, result); |
| 70 return result; | 70 return result; |
| 71 } | 71 } |
| 72 | 72 |
| 73 static void installV8TestInterfaceEventTargetTemplate(v8::Handle<v8::FunctionTem
plate> functionTemplate, v8::Isolate* isolate) | 73 static void installV8TestInterfaceEventTargetTemplate(v8::Local<v8::FunctionTemp
late> functionTemplate, v8::Isolate* isolate) |
| 74 { | 74 { |
| 75 functionTemplate->ReadOnlyPrototype(); | 75 functionTemplate->ReadOnlyPrototype(); |
| 76 | 76 |
| 77 v8::Local<v8::Signature> defaultSignature; | 77 v8::Local<v8::Signature> defaultSignature; |
| 78 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceEventTarget", V8EventTarget::domTemplate(isolate), V
8TestInterfaceEventTarget::internalFieldCount, | 78 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceEventTarget", V8EventTarget::domTemplate(isolate), V
8TestInterfaceEventTarget::internalFieldCount, |
| 79 0, 0, | 79 0, 0, |
| 80 0, 0, | 80 0, 0, |
| 81 0, 0); | 81 0, 0); |
| 82 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 82 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 83 ALLOW_UNUSED_LOCAL(instanceTemplate); | 83 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 | 117 |
| 118 void V8TestInterfaceEventTarget::derefObject(ScriptWrappable* scriptWrappable) | 118 void V8TestInterfaceEventTarget::derefObject(ScriptWrappable* scriptWrappable) |
| 119 { | 119 { |
| 120 #if !ENABLE(OILPAN) | 120 #if !ENABLE(OILPAN) |
| 121 scriptWrappable->toImpl<TestInterfaceEventTarget>()->deref(); | 121 scriptWrappable->toImpl<TestInterfaceEventTarget>()->deref(); |
| 122 #endif | 122 #endif |
| 123 } | 123 } |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| OLD | NEW |