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 V8TestInterfaceNamedConstructor2_h | 7 #ifndef V8TestInterfaceNamedConstructor2_h |
8 #define V8TestInterfaceNamedConstructor2_h | 8 #define V8TestInterfaceNamedConstructor2_h |
9 | 9 |
10 #include "bindings/tests/idls/TestInterfaceNamedConstructor2.h" | 10 #include "bindings/tests/idls/TestInterfaceNamedConstructor2.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceNamedConstructor2
>(callbackInfo.GetReturnValue(), impl)) | 78 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceNamedConstructor2
>(callbackInfo.GetReturnValue(), impl)) |
79 return; | 79 return; |
80 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 80 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
81 v8SetReturnValue(callbackInfo, wrapper); | 81 v8SetReturnValue(callbackInfo, wrapper); |
82 } | 82 } |
83 | 83 |
84 template<typename CallbackInfo> | 84 template<typename CallbackInfo> |
85 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceNamedConstructor2* impl) | 85 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceNamedConstructor2* impl) |
86 { | 86 { |
87 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); | 87 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld()); |
88 if (UNLIKELY(!impl)) { | 88 if (UNLIKELY(!impl)) { |
89 v8SetReturnValueNull(callbackInfo); | 89 v8SetReturnValueNull(callbackInfo); |
90 return; | 90 return; |
91 } | 91 } |
92 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceNamed
Constructor2>(callbackInfo.GetReturnValue(), impl)) | 92 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceNamed
Constructor2>(callbackInfo.GetReturnValue(), impl)) |
93 return; | 93 return; |
94 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); | 94 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
95 v8SetReturnValue(callbackInfo, wrapper); | 95 v8SetReturnValue(callbackInfo, wrapper); |
96 } | 96 } |
97 | 97 |
(...skipping 28 matching lines...) Expand all Loading... |
126 } | 126 } |
127 | 127 |
128 template<class CallbackInfo, class Wrappable> | 128 template<class CallbackInfo, class Wrappable> |
129 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceNamedConstructor2> impl, Wrappable* wrappable) | 129 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceNamedConstructor2> impl, Wrappable* wrappable) |
130 { | 130 { |
131 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 131 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
132 } | 132 } |
133 | 133 |
134 } | 134 } |
135 #endif // V8TestInterfaceNamedConstructor2_h | 135 #endif // V8TestInterfaceNamedConstructor2_h |
OLD | NEW |