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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // Custom toString template | 87 // Custom toString template |
88 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 88 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
89 } | 89 } |
90 | 90 |
91 v8::Local<v8::FunctionTemplate> V8TestInterfaceEventTarget::domTemplate(v8::Isol
ate* isolate) | 91 v8::Local<v8::FunctionTemplate> V8TestInterfaceEventTarget::domTemplate(v8::Isol
ate* isolate) |
92 { | 92 { |
93 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceEventTargetTemplate); | 93 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceEventTargetTemplate); |
94 } | 94 } |
95 | 95 |
96 bool V8TestInterfaceEventTarget::hasInstance(v8::Handle<v8::Value> v8Value, v8::
Isolate* isolate) | 96 bool V8TestInterfaceEventTarget::hasInstance(v8::Local<v8::Value> v8Value, v8::I
solate* isolate) |
97 { | 97 { |
98 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 98 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
99 } | 99 } |
100 | 100 |
101 v8::Handle<v8::Object> V8TestInterfaceEventTarget::findInstanceInPrototypeChain(
v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 101 v8::Local<v8::Object> V8TestInterfaceEventTarget::findInstanceInPrototypeChain(v
8::Local<v8::Value> v8Value, v8::Isolate* isolate) |
102 { | 102 { |
103 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 103 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
104 } | 104 } |
105 | 105 |
106 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Handle<v8::Value> value) | 106 TestInterfaceEventTarget* V8TestInterfaceEventTarget::toImplWithTypeCheck(v8::Is
olate* isolate, v8::Local<v8::Value> value) |
107 { | 107 { |
108 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; | 108 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
109 } | 109 } |
110 | 110 |
111 void V8TestInterfaceEventTarget::refObject(ScriptWrappable* scriptWrappable) | 111 void V8TestInterfaceEventTarget::refObject(ScriptWrappable* scriptWrappable) |
112 { | 112 { |
113 #if !ENABLE(OILPAN) | 113 #if !ENABLE(OILPAN) |
114 scriptWrappable->toImpl<TestInterfaceEventTarget>()->ref(); | 114 scriptWrappable->toImpl<TestInterfaceEventTarget>()->ref(); |
115 #endif | 115 #endif |
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 |