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 #ifndef V8TestInterfaceCustomConstructor_h | 7 #ifndef V8TestInterfaceCustomConstructor_h |
8 #define V8TestInterfaceCustomConstructor_h | 8 #define V8TestInterfaceCustomConstructor_h |
9 | 9 |
10 #include "bindings/tests/idls/TestInterfaceCustomConstructor.h" | 10 #include "bindings/tests/idls/TestInterfaceCustomConstructor.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceCustomConstructor
>(callbackInfo.GetReturnValue(), impl)) | 74 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceCustomConstructor
>(callbackInfo.GetReturnValue(), impl)) |
75 return; | 75 return; |
76 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 76 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
77 v8SetReturnValue(callbackInfo, wrapper); | 77 v8SetReturnValue(callbackInfo, wrapper); |
78 } | 78 } |
79 | 79 |
80 template<typename CallbackInfo> | 80 template<typename CallbackInfo> |
81 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceCustomConstructor* impl) | 81 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceCustomConstructor* impl) |
82 { | 82 { |
83 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); | 83 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld()); |
84 if (UNLIKELY(!impl)) { | 84 if (UNLIKELY(!impl)) { |
85 v8SetReturnValueNull(callbackInfo); | 85 v8SetReturnValueNull(callbackInfo); |
86 return; | 86 return; |
87 } | 87 } |
88 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceCusto
mConstructor>(callbackInfo.GetReturnValue(), impl)) | 88 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceCusto
mConstructor>(callbackInfo.GetReturnValue(), impl)) |
89 return; | 89 return; |
90 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); | 90 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
91 v8SetReturnValue(callbackInfo, wrapper); | 91 v8SetReturnValue(callbackInfo, wrapper); |
92 } | 92 } |
93 | 93 |
(...skipping 28 matching lines...) Expand all Loading... |
122 } | 122 } |
123 | 123 |
124 template<class CallbackInfo, class Wrappable> | 124 template<class CallbackInfo, class Wrappable> |
125 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceCustomConstructor> impl, Wrappable* wrappable) | 125 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceCustomConstructor> impl, Wrappable* wrappable) |
126 { | 126 { |
127 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 127 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
128 } | 128 } |
129 | 129 |
130 } | 130 } |
131 #endif // V8TestInterfaceCustomConstructor_h | 131 #endif // V8TestInterfaceCustomConstructor_h |
OLD | NEW |