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 "V8TestInterfaceNotScriptWrappable.h" | 8 #include "V8TestInterfaceNotScriptWrappable.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 v8::Handle<v8::Object> V8TestInterfaceNotScriptWrappable::createWrapper(PassRefP
tr<TestInterfaceNotScriptWrappable> impl, v8::Handle<v8::Object> creationContext
, v8::Isolate* isolate) | 134 v8::Handle<v8::Object> V8TestInterfaceNotScriptWrappable::createWrapper(PassRefP
tr<TestInterfaceNotScriptWrappable> impl, v8::Handle<v8::Object> creationContext
, v8::Isolate* isolate) |
135 { | 135 { |
136 ASSERT(impl); | 136 ASSERT(impl); |
137 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNotScriptWrappable>(imp
l.get(), isolate)); | 137 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNotScriptWrappable>(imp
l.get(), isolate)); |
138 | 138 |
139 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, impl->toScriptWrappableBase(), isolate); | 139 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, impl->toScriptWrappableBase(), isolate); |
140 if (UNLIKELY(wrapper.IsEmpty())) | 140 if (UNLIKELY(wrapper.IsEmpty())) |
141 return wrapper; | 141 return wrapper; |
142 | 142 |
143 installConditionallyEnabledProperties(wrapper, isolate); | 143 installConditionallyEnabledProperties(wrapper, isolate); |
144 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNotScriptWrappable>(
impl, &wrapperTypeInfo, wrapper, isolate); | 144 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNotScriptWrappable>(
isolate, impl, &wrapperTypeInfo, wrapper); |
145 return wrapper; | 145 return wrapper; |
146 } | 146 } |
147 | 147 |
148 void V8TestInterfaceNotScriptWrappable::refObject(ScriptWrappableBase* scriptWra
ppableBase) | 148 void V8TestInterfaceNotScriptWrappable::refObject(ScriptWrappableBase* scriptWra
ppableBase) |
149 { | 149 { |
150 scriptWrappableBase->toImpl<TestInterfaceNotScriptWrappable>()->ref(); | 150 scriptWrappableBase->toImpl<TestInterfaceNotScriptWrappable>()->ref(); |
151 } | 151 } |
152 | 152 |
153 void V8TestInterfaceNotScriptWrappable::derefObject(ScriptWrappableBase* scriptW
rappableBase) | 153 void V8TestInterfaceNotScriptWrappable::derefObject(ScriptWrappableBase* scriptW
rappableBase) |
154 { | 154 { |
155 scriptWrappableBase->toImpl<TestInterfaceNotScriptWrappable>()->deref(); | 155 scriptWrappableBase->toImpl<TestInterfaceNotScriptWrappable>()->deref(); |
156 } | 156 } |
157 | 157 |
158 template<> | 158 template<> |
159 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNotScriptWrappable* impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) | 159 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNotScriptWrappable* impl, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate* isolate) |
160 { | 160 { |
161 return toV8(impl, creationContext, isolate); | 161 return toV8(impl, creationContext, isolate); |
162 } | 162 } |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
OLD | NEW |