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