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